mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-08-22 08:56:38 +00:00
2303 lines
76 KiB
Go
2303 lines
76 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: v1/service.proto
|
|
|
|
package v1
|
|
|
|
import (
|
|
types "github.com/garethgeorge/backrest/gen/go/types"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type DoRepoTaskRequest_Task int32
|
|
|
|
const (
|
|
DoRepoTaskRequest_TASK_NONE DoRepoTaskRequest_Task = 0
|
|
DoRepoTaskRequest_TASK_INDEX_SNAPSHOTS DoRepoTaskRequest_Task = 1
|
|
DoRepoTaskRequest_TASK_PRUNE DoRepoTaskRequest_Task = 2
|
|
DoRepoTaskRequest_TASK_CHECK DoRepoTaskRequest_Task = 3
|
|
DoRepoTaskRequest_TASK_STATS DoRepoTaskRequest_Task = 4
|
|
DoRepoTaskRequest_TASK_UNLOCK DoRepoTaskRequest_Task = 5
|
|
DoRepoTaskRequest_TASK_FORGET DoRepoTaskRequest_Task = 6
|
|
)
|
|
|
|
// Enum value maps for DoRepoTaskRequest_Task.
|
|
var (
|
|
DoRepoTaskRequest_Task_name = map[int32]string{
|
|
0: "TASK_NONE",
|
|
1: "TASK_INDEX_SNAPSHOTS",
|
|
2: "TASK_PRUNE",
|
|
3: "TASK_CHECK",
|
|
4: "TASK_STATS",
|
|
5: "TASK_UNLOCK",
|
|
6: "TASK_FORGET",
|
|
}
|
|
DoRepoTaskRequest_Task_value = map[string]int32{
|
|
"TASK_NONE": 0,
|
|
"TASK_INDEX_SNAPSHOTS": 1,
|
|
"TASK_PRUNE": 2,
|
|
"TASK_CHECK": 3,
|
|
"TASK_STATS": 4,
|
|
"TASK_UNLOCK": 5,
|
|
"TASK_FORGET": 6,
|
|
}
|
|
)
|
|
|
|
func (x DoRepoTaskRequest_Task) Enum() *DoRepoTaskRequest_Task {
|
|
p := new(DoRepoTaskRequest_Task)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x DoRepoTaskRequest_Task) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (DoRepoTaskRequest_Task) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_v1_service_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (DoRepoTaskRequest_Task) Type() protoreflect.EnumType {
|
|
return &file_v1_service_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x DoRepoTaskRequest_Task) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use DoRepoTaskRequest_Task.Descriptor instead.
|
|
func (DoRepoTaskRequest_Task) EnumDescriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{8, 0}
|
|
}
|
|
|
|
type BackupRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // plan_id - named 'value' for curl script backwards compatibility
|
|
DryRun bool `protobuf:"varint,2,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"` // optional, simulate backup without creating snapshot
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *BackupRequest) Reset() {
|
|
*x = BackupRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *BackupRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*BackupRequest) ProtoMessage() {}
|
|
|
|
func (x *BackupRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use BackupRequest.ProtoReflect.Descriptor instead.
|
|
func (*BackupRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *BackupRequest) GetValue() string {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *BackupRequest) GetDryRun() bool {
|
|
if x != nil {
|
|
return x.DryRun
|
|
}
|
|
return false
|
|
}
|
|
|
|
// ScheduleTaskResponse is returned by RPCs that schedule a task for later execution.
|
|
type ScheduleTaskResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OperationId int64 `protobuf:"varint,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"` // ID of the scheduled operation, or 0 when no operation was created for the task.
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ScheduleTaskResponse) Reset() {
|
|
*x = ScheduleTaskResponse{}
|
|
mi := &file_v1_service_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ScheduleTaskResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ScheduleTaskResponse) ProtoMessage() {}
|
|
|
|
func (x *ScheduleTaskResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ScheduleTaskResponse.ProtoReflect.Descriptor instead.
|
|
func (*ScheduleTaskResponse) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ScheduleTaskResponse) GetOperationId() int64 {
|
|
if x != nil {
|
|
return x.OperationId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// OpSelector is a message that can be used to select operations e.g. by query.
|
|
type OpSelector struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
|
|
InstanceId *string `protobuf:"bytes,6,opt,name=instance_id,json=instanceId,proto3,oneof" json:"instance_id,omitempty"`
|
|
OriginalInstanceKeyid *string `protobuf:"bytes,8,opt,name=original_instance_keyid,json=originalInstanceKeyid,proto3,oneof" json:"original_instance_keyid,omitempty"`
|
|
RepoGuid *string `protobuf:"bytes,7,opt,name=repo_guid,json=repoGuid,proto3,oneof" json:"repo_guid,omitempty"`
|
|
PlanId *string `protobuf:"bytes,3,opt,name=plan_id,json=planId,proto3,oneof" json:"plan_id,omitempty"`
|
|
SnapshotId *string `protobuf:"bytes,4,opt,name=snapshot_id,json=snapshotId,proto3,oneof" json:"snapshot_id,omitempty"`
|
|
FlowId *int64 `protobuf:"varint,5,opt,name=flow_id,json=flowId,proto3,oneof" json:"flow_id,omitempty"`
|
|
ModnoGte *int64 `protobuf:"varint,9,opt,name=modno_gte,json=modnoGte,proto3,oneof" json:"modno_gte,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OpSelector) Reset() {
|
|
*x = OpSelector{}
|
|
mi := &file_v1_service_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OpSelector) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OpSelector) ProtoMessage() {}
|
|
|
|
func (x *OpSelector) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OpSelector.ProtoReflect.Descriptor instead.
|
|
func (*OpSelector) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *OpSelector) GetIds() []int64 {
|
|
if x != nil {
|
|
return x.Ids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *OpSelector) GetInstanceId() string {
|
|
if x != nil && x.InstanceId != nil {
|
|
return *x.InstanceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OpSelector) GetOriginalInstanceKeyid() string {
|
|
if x != nil && x.OriginalInstanceKeyid != nil {
|
|
return *x.OriginalInstanceKeyid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OpSelector) GetRepoGuid() string {
|
|
if x != nil && x.RepoGuid != nil {
|
|
return *x.RepoGuid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OpSelector) GetPlanId() string {
|
|
if x != nil && x.PlanId != nil {
|
|
return *x.PlanId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OpSelector) GetSnapshotId() string {
|
|
if x != nil && x.SnapshotId != nil {
|
|
return *x.SnapshotId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OpSelector) GetFlowId() int64 {
|
|
if x != nil && x.FlowId != nil {
|
|
return *x.FlowId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OpSelector) GetModnoGte() int64 {
|
|
if x != nil && x.ModnoGte != nil {
|
|
return *x.ModnoGte
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetupSftpRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
|
|
Port string `protobuf:"bytes,2,opt,name=port,proto3" json:"port,omitempty"`
|
|
Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
|
|
Password *string `protobuf:"bytes,4,opt,name=password,proto3,oneof" json:"password,omitempty"` // If not provided, we only generate the key and add host to known_hosts
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetupSftpRequest) Reset() {
|
|
*x = SetupSftpRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetupSftpRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetupSftpRequest) ProtoMessage() {}
|
|
|
|
func (x *SetupSftpRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetupSftpRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetupSftpRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *SetupSftpRequest) GetHost() string {
|
|
if x != nil {
|
|
return x.Host
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetupSftpRequest) GetPort() string {
|
|
if x != nil {
|
|
return x.Port
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetupSftpRequest) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetupSftpRequest) GetPassword() string {
|
|
if x != nil && x.Password != nil {
|
|
return *x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SetupSftpResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
|
|
KeyPath string `protobuf:"bytes,2,opt,name=key_path,json=keyPath,proto3" json:"key_path,omitempty"`
|
|
KnownHostsPath string `protobuf:"bytes,3,opt,name=known_hosts_path,json=knownHostsPath,proto3" json:"known_hosts_path,omitempty"`
|
|
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetupSftpResponse) Reset() {
|
|
*x = SetupSftpResponse{}
|
|
mi := &file_v1_service_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetupSftpResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetupSftpResponse) ProtoMessage() {}
|
|
|
|
func (x *SetupSftpResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetupSftpResponse.ProtoReflect.Descriptor instead.
|
|
func (*SetupSftpResponse) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *SetupSftpResponse) GetPublicKey() string {
|
|
if x != nil {
|
|
return x.PublicKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetupSftpResponse) GetKeyPath() string {
|
|
if x != nil {
|
|
return x.KeyPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetupSftpResponse) GetKnownHostsPath() string {
|
|
if x != nil {
|
|
return x.KnownHostsPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetupSftpResponse) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CheckRepoExistsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Repo *Repo `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CheckRepoExistsRequest) Reset() {
|
|
*x = CheckRepoExistsRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CheckRepoExistsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CheckRepoExistsRequest) ProtoMessage() {}
|
|
|
|
func (x *CheckRepoExistsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CheckRepoExistsRequest.ProtoReflect.Descriptor instead.
|
|
func (*CheckRepoExistsRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *CheckRepoExistsRequest) GetRepo() *Repo {
|
|
if x != nil {
|
|
return x.Repo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CheckRepoExistsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"`
|
|
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
|
HostKeyUntrusted bool `protobuf:"varint,5,opt,name=host_key_untrusted,json=hostKeyUntrusted,proto3" json:"host_key_untrusted,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CheckRepoExistsResponse) Reset() {
|
|
*x = CheckRepoExistsResponse{}
|
|
mi := &file_v1_service_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CheckRepoExistsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CheckRepoExistsResponse) ProtoMessage() {}
|
|
|
|
func (x *CheckRepoExistsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CheckRepoExistsResponse.ProtoReflect.Descriptor instead.
|
|
func (*CheckRepoExistsResponse) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *CheckRepoExistsResponse) GetExists() bool {
|
|
if x != nil {
|
|
return x.Exists
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CheckRepoExistsResponse) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CheckRepoExistsResponse) GetHostKeyUntrusted() bool {
|
|
if x != nil {
|
|
return x.HostKeyUntrusted
|
|
}
|
|
return false
|
|
}
|
|
|
|
type AddRepoRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Repo *Repo `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AddRepoRequest) Reset() {
|
|
*x = AddRepoRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AddRepoRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AddRepoRequest) ProtoMessage() {}
|
|
|
|
func (x *AddRepoRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AddRepoRequest.ProtoReflect.Descriptor instead.
|
|
func (*AddRepoRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *AddRepoRequest) GetRepo() *Repo {
|
|
if x != nil {
|
|
return x.Repo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DoRepoTaskRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
|
|
Task DoRepoTaskRequest_Task `protobuf:"varint,2,opt,name=task,proto3,enum=v1.DoRepoTaskRequest_Task" json:"task,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DoRepoTaskRequest) Reset() {
|
|
*x = DoRepoTaskRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DoRepoTaskRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DoRepoTaskRequest) ProtoMessage() {}
|
|
|
|
func (x *DoRepoTaskRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DoRepoTaskRequest.ProtoReflect.Descriptor instead.
|
|
func (*DoRepoTaskRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *DoRepoTaskRequest) GetRepoId() string {
|
|
if x != nil {
|
|
return x.RepoId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DoRepoTaskRequest) GetTask() DoRepoTaskRequest_Task {
|
|
if x != nil {
|
|
return x.Task
|
|
}
|
|
return DoRepoTaskRequest_TASK_NONE
|
|
}
|
|
|
|
type ClearHistoryRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Selector *OpSelector `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
|
|
OnlyFailed bool `protobuf:"varint,2,opt,name=only_failed,json=onlyFailed,proto3" json:"only_failed,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ClearHistoryRequest) Reset() {
|
|
*x = ClearHistoryRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ClearHistoryRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ClearHistoryRequest) ProtoMessage() {}
|
|
|
|
func (x *ClearHistoryRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ClearHistoryRequest.ProtoReflect.Descriptor instead.
|
|
func (*ClearHistoryRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *ClearHistoryRequest) GetSelector() *OpSelector {
|
|
if x != nil {
|
|
return x.Selector
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ClearHistoryRequest) GetOnlyFailed() bool {
|
|
if x != nil {
|
|
return x.OnlyFailed
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ForgetRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
|
|
PlanId string `protobuf:"bytes,2,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"`
|
|
SnapshotId string `protobuf:"bytes,3,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ForgetRequest) Reset() {
|
|
*x = ForgetRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ForgetRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ForgetRequest) ProtoMessage() {}
|
|
|
|
func (x *ForgetRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ForgetRequest.ProtoReflect.Descriptor instead.
|
|
func (*ForgetRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *ForgetRequest) GetRepoId() string {
|
|
if x != nil {
|
|
return x.RepoId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ForgetRequest) GetPlanId() string {
|
|
if x != nil {
|
|
return x.PlanId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ForgetRequest) GetSnapshotId() string {
|
|
if x != nil {
|
|
return x.SnapshotId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListSnapshotsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
|
|
PlanId string `protobuf:"bytes,2,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSnapshotsRequest) Reset() {
|
|
*x = ListSnapshotsRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSnapshotsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSnapshotsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListSnapshotsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListSnapshotsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListSnapshotsRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *ListSnapshotsRequest) GetRepoId() string {
|
|
if x != nil {
|
|
return x.RepoId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListSnapshotsRequest) GetPlanId() string {
|
|
if x != nil {
|
|
return x.PlanId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetOperationsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Selector *OpSelector `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
|
|
LastN int64 `protobuf:"varint,2,opt,name=last_n,json=lastN,proto3" json:"last_n,omitempty"` // limit to the last n operations
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetOperationsRequest) Reset() {
|
|
*x = GetOperationsRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetOperationsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetOperationsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetOperationsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetOperationsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetOperationsRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *GetOperationsRequest) GetSelector() *OpSelector {
|
|
if x != nil {
|
|
return x.Selector
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetOperationsRequest) GetLastN() int64 {
|
|
if x != nil {
|
|
return x.LastN
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RestoreSnapshotRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PlanId string `protobuf:"bytes,1,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"`
|
|
RepoId string `protobuf:"bytes,5,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
|
|
SnapshotId string `protobuf:"bytes,2,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"`
|
|
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
|
|
Target string `protobuf:"bytes,4,opt,name=target,proto3" json:"target,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RestoreSnapshotRequest) Reset() {
|
|
*x = RestoreSnapshotRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RestoreSnapshotRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RestoreSnapshotRequest) ProtoMessage() {}
|
|
|
|
func (x *RestoreSnapshotRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RestoreSnapshotRequest.ProtoReflect.Descriptor instead.
|
|
func (*RestoreSnapshotRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *RestoreSnapshotRequest) GetPlanId() string {
|
|
if x != nil {
|
|
return x.PlanId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RestoreSnapshotRequest) GetRepoId() string {
|
|
if x != nil {
|
|
return x.RepoId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RestoreSnapshotRequest) GetSnapshotId() string {
|
|
if x != nil {
|
|
return x.SnapshotId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RestoreSnapshotRequest) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RestoreSnapshotRequest) GetTarget() string {
|
|
if x != nil {
|
|
return x.Target
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListSnapshotFilesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
|
|
SnapshotId string `protobuf:"bytes,2,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"`
|
|
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSnapshotFilesRequest) Reset() {
|
|
*x = ListSnapshotFilesRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSnapshotFilesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSnapshotFilesRequest) ProtoMessage() {}
|
|
|
|
func (x *ListSnapshotFilesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListSnapshotFilesRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListSnapshotFilesRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *ListSnapshotFilesRequest) GetRepoId() string {
|
|
if x != nil {
|
|
return x.RepoId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListSnapshotFilesRequest) GetSnapshotId() string {
|
|
if x != nil {
|
|
return x.SnapshotId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListSnapshotFilesRequest) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListSnapshotFilesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
Entries []*LsEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListSnapshotFilesResponse) Reset() {
|
|
*x = ListSnapshotFilesResponse{}
|
|
mi := &file_v1_service_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListSnapshotFilesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListSnapshotFilesResponse) ProtoMessage() {}
|
|
|
|
func (x *ListSnapshotFilesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListSnapshotFilesResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListSnapshotFilesResponse) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *ListSnapshotFilesResponse) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListSnapshotFilesResponse) GetEntries() []*LsEntry {
|
|
if x != nil {
|
|
return x.Entries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type LogDataRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LogDataRequest) Reset() {
|
|
*x = LogDataRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LogDataRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LogDataRequest) ProtoMessage() {}
|
|
|
|
func (x *LogDataRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use LogDataRequest.ProtoReflect.Descriptor instead.
|
|
func (*LogDataRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *LogDataRequest) GetRef() string {
|
|
if x != nil {
|
|
return x.Ref
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetDownloadURLRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OpId int64 `protobuf:"varint,1,opt,name=op_id,json=opId,proto3" json:"op_id,omitempty"`
|
|
FilePath string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetDownloadURLRequest) Reset() {
|
|
*x = GetDownloadURLRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetDownloadURLRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetDownloadURLRequest) ProtoMessage() {}
|
|
|
|
func (x *GetDownloadURLRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetDownloadURLRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetDownloadURLRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *GetDownloadURLRequest) GetOpId() int64 {
|
|
if x != nil {
|
|
return x.OpId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetDownloadURLRequest) GetFilePath() string {
|
|
if x != nil {
|
|
return x.FilePath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LsEntry struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
|
|
Uid int64 `protobuf:"varint,4,opt,name=uid,proto3" json:"uid,omitempty"`
|
|
Gid int64 `protobuf:"varint,5,opt,name=gid,proto3" json:"gid,omitempty"`
|
|
Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
|
|
Mode int64 `protobuf:"varint,7,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
Mtime string `protobuf:"bytes,8,opt,name=mtime,proto3" json:"mtime,omitempty"`
|
|
Atime string `protobuf:"bytes,9,opt,name=atime,proto3" json:"atime,omitempty"`
|
|
Ctime string `protobuf:"bytes,10,opt,name=ctime,proto3" json:"ctime,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LsEntry) Reset() {
|
|
*x = LsEntry{}
|
|
mi := &file_v1_service_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LsEntry) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LsEntry) ProtoMessage() {}
|
|
|
|
func (x *LsEntry) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use LsEntry.ProtoReflect.Descriptor instead.
|
|
func (*LsEntry) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *LsEntry) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LsEntry) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LsEntry) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LsEntry) GetUid() int64 {
|
|
if x != nil {
|
|
return x.Uid
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *LsEntry) GetGid() int64 {
|
|
if x != nil {
|
|
return x.Gid
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *LsEntry) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *LsEntry) GetMode() int64 {
|
|
if x != nil {
|
|
return x.Mode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *LsEntry) GetMtime() string {
|
|
if x != nil {
|
|
return x.Mtime
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LsEntry) GetAtime() string {
|
|
if x != nil {
|
|
return x.Atime
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LsEntry) GetCtime() string {
|
|
if x != nil {
|
|
return x.Ctime
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RunCommandRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
|
|
Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RunCommandRequest) Reset() {
|
|
*x = RunCommandRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RunCommandRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RunCommandRequest) ProtoMessage() {}
|
|
|
|
func (x *RunCommandRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RunCommandRequest.ProtoReflect.Descriptor instead.
|
|
func (*RunCommandRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *RunCommandRequest) GetRepoId() string {
|
|
if x != nil {
|
|
return x.RepoId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RunCommandRequest) GetCommand() string {
|
|
if x != nil {
|
|
return x.Command
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RunCommandResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OperationId int64 `protobuf:"varint,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RunCommandResponse) Reset() {
|
|
*x = RunCommandResponse{}
|
|
mi := &file_v1_service_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RunCommandResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RunCommandResponse) ProtoMessage() {}
|
|
|
|
func (x *RunCommandResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[20]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RunCommandResponse.ProtoReflect.Descriptor instead.
|
|
func (*RunCommandResponse) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *RunCommandResponse) GetOperationId() int64 {
|
|
if x != nil {
|
|
return x.OperationId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemoveRepoRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RepoId string `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RemoveRepoRequest) Reset() {
|
|
*x = RemoveRepoRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RemoveRepoRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RemoveRepoRequest) ProtoMessage() {}
|
|
|
|
func (x *RemoveRepoRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[21]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RemoveRepoRequest.ProtoReflect.Descriptor instead.
|
|
func (*RemoveRepoRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *RemoveRepoRequest) GetRepoId() string {
|
|
if x != nil {
|
|
return x.RepoId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CancelOperationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OperationId int64 `protobuf:"varint,1,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CancelOperationRequest) Reset() {
|
|
*x = CancelOperationRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CancelOperationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CancelOperationRequest) ProtoMessage() {}
|
|
|
|
func (x *CancelOperationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[22]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CancelOperationRequest.ProtoReflect.Descriptor instead.
|
|
func (*CancelOperationRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *CancelOperationRequest) GetOperationId() int64 {
|
|
if x != nil {
|
|
return x.OperationId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SummaryDashboardResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RepoSummaries []*SummaryDashboardResponse_Summary `protobuf:"bytes,1,rep,name=repo_summaries,json=repoSummaries,proto3" json:"repo_summaries,omitempty"`
|
|
PlanSummaries []*SummaryDashboardResponse_Summary `protobuf:"bytes,2,rep,name=plan_summaries,json=planSummaries,proto3" json:"plan_summaries,omitempty"`
|
|
ConfigPath string `protobuf:"bytes,10,opt,name=config_path,json=configPath,proto3" json:"config_path,omitempty"`
|
|
DataPath string `protobuf:"bytes,11,opt,name=data_path,json=dataPath,proto3" json:"data_path,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse) Reset() {
|
|
*x = SummaryDashboardResponse{}
|
|
mi := &file_v1_service_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SummaryDashboardResponse) ProtoMessage() {}
|
|
|
|
func (x *SummaryDashboardResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[23]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SummaryDashboardResponse.ProtoReflect.Descriptor instead.
|
|
func (*SummaryDashboardResponse) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse) GetRepoSummaries() []*SummaryDashboardResponse_Summary {
|
|
if x != nil {
|
|
return x.RepoSummaries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse) GetPlanSummaries() []*SummaryDashboardResponse_Summary {
|
|
if x != nil {
|
|
return x.PlanSummaries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse) GetConfigPath() string {
|
|
if x != nil {
|
|
return x.ConfigPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse) GetDataPath() string {
|
|
if x != nil {
|
|
return x.DataPath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GeneratePairingTokenRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` // human-readable label for the token
|
|
TtlSeconds int64 `protobuf:"varint,2,opt,name=ttl_seconds,json=ttlSeconds,proto3" json:"ttl_seconds,omitempty"` // time-to-live in seconds (e.g. 3600 for 1 hour)
|
|
MaxUses int32 `protobuf:"varint,3,opt,name=max_uses,json=maxUses,proto3" json:"max_uses,omitempty"` // max number of clients that can pair with this token, 0 for unlimited
|
|
Permissions []*Multihost_Permission `protobuf:"bytes,4,rep,name=permissions,proto3" json:"permissions,omitempty"` // permissions to grant to clients that pair with this token
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GeneratePairingTokenRequest) Reset() {
|
|
*x = GeneratePairingTokenRequest{}
|
|
mi := &file_v1_service_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GeneratePairingTokenRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GeneratePairingTokenRequest) ProtoMessage() {}
|
|
|
|
func (x *GeneratePairingTokenRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[24]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GeneratePairingTokenRequest.ProtoReflect.Descriptor instead.
|
|
func (*GeneratePairingTokenRequest) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *GeneratePairingTokenRequest) GetLabel() string {
|
|
if x != nil {
|
|
return x.Label
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GeneratePairingTokenRequest) GetTtlSeconds() int64 {
|
|
if x != nil {
|
|
return x.TtlSeconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GeneratePairingTokenRequest) GetMaxUses() int32 {
|
|
if x != nil {
|
|
return x.MaxUses
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GeneratePairingTokenRequest) GetPermissions() []*Multihost_Permission {
|
|
if x != nil {
|
|
return x.Permissions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GeneratePairingTokenResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // the opaque pairing token string: "<keyid>:<secret>#<instanceid>"
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GeneratePairingTokenResponse) Reset() {
|
|
*x = GeneratePairingTokenResponse{}
|
|
mi := &file_v1_service_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GeneratePairingTokenResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GeneratePairingTokenResponse) ProtoMessage() {}
|
|
|
|
func (x *GeneratePairingTokenResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[25]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GeneratePairingTokenResponse.ProtoReflect.Descriptor instead.
|
|
func (*GeneratePairingTokenResponse) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
func (x *GeneratePairingTokenResponse) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SummaryDashboardResponse_Summary struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
BackupsFailed_30Days int64 `protobuf:"varint,2,opt,name=backups_failed_30days,json=backupsFailed30days,proto3" json:"backups_failed_30days,omitempty"`
|
|
BackupsWarningLast_30Days int64 `protobuf:"varint,3,opt,name=backups_warning_last_30days,json=backupsWarningLast30days,proto3" json:"backups_warning_last_30days,omitempty"`
|
|
BackupsSuccessLast_30Days int64 `protobuf:"varint,4,opt,name=backups_success_last_30days,json=backupsSuccessLast30days,proto3" json:"backups_success_last_30days,omitempty"`
|
|
BytesScannedLast_30Days int64 `protobuf:"varint,5,opt,name=bytes_scanned_last_30days,json=bytesScannedLast30days,proto3" json:"bytes_scanned_last_30days,omitempty"`
|
|
BytesAddedLast_30Days int64 `protobuf:"varint,6,opt,name=bytes_added_last_30days,json=bytesAddedLast30days,proto3" json:"bytes_added_last_30days,omitempty"`
|
|
TotalSnapshots int64 `protobuf:"varint,7,opt,name=total_snapshots,json=totalSnapshots,proto3" json:"total_snapshots,omitempty"`
|
|
BytesScannedAvg int64 `protobuf:"varint,8,opt,name=bytes_scanned_avg,json=bytesScannedAvg,proto3" json:"bytes_scanned_avg,omitempty"`
|
|
BytesAddedAvg int64 `protobuf:"varint,9,opt,name=bytes_added_avg,json=bytesAddedAvg,proto3" json:"bytes_added_avg,omitempty"`
|
|
NextBackupTimeMs int64 `protobuf:"varint,10,opt,name=next_backup_time_ms,json=nextBackupTimeMs,proto3" json:"next_backup_time_ms,omitempty"`
|
|
// Charts
|
|
RecentBackups *SummaryDashboardResponse_BackupChart `protobuf:"bytes,11,opt,name=recent_backups,json=recentBackups,proto3" json:"recent_backups,omitempty"` // recent backups
|
|
ProtectedBytes int64 `protobuf:"varint,12,opt,name=protected_bytes,json=protectedBytes,proto3" json:"protected_bytes,omitempty"` // total bytes processed by the most recent successful/warning backup
|
|
HistoryLast_30Days []*SummaryDashboardResponse_DayStatusBucket `protobuf:"bytes,13,rep,name=history_last_30days,json=historyLast30days,proto3" json:"history_last_30days,omitempty"` // per-day backup status for the dashboard history strip, oldest first; absent days precede the plan's first backup
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) Reset() {
|
|
*x = SummaryDashboardResponse_Summary{}
|
|
mi := &file_v1_service_proto_msgTypes[26]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SummaryDashboardResponse_Summary) ProtoMessage() {}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[26]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SummaryDashboardResponse_Summary.ProtoReflect.Descriptor instead.
|
|
func (*SummaryDashboardResponse_Summary) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{23, 0}
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) GetBackupsFailed_30Days() int64 {
|
|
if x != nil {
|
|
return x.BackupsFailed_30Days
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) GetBackupsWarningLast_30Days() int64 {
|
|
if x != nil {
|
|
return x.BackupsWarningLast_30Days
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) GetBackupsSuccessLast_30Days() int64 {
|
|
if x != nil {
|
|
return x.BackupsSuccessLast_30Days
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) GetBytesScannedLast_30Days() int64 {
|
|
if x != nil {
|
|
return x.BytesScannedLast_30Days
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) GetBytesAddedLast_30Days() int64 {
|
|
if x != nil {
|
|
return x.BytesAddedLast_30Days
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) GetTotalSnapshots() int64 {
|
|
if x != nil {
|
|
return x.TotalSnapshots
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) GetBytesScannedAvg() int64 {
|
|
if x != nil {
|
|
return x.BytesScannedAvg
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) GetBytesAddedAvg() int64 {
|
|
if x != nil {
|
|
return x.BytesAddedAvg
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) GetNextBackupTimeMs() int64 {
|
|
if x != nil {
|
|
return x.NextBackupTimeMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) GetRecentBackups() *SummaryDashboardResponse_BackupChart {
|
|
if x != nil {
|
|
return x.RecentBackups
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) GetProtectedBytes() int64 {
|
|
if x != nil {
|
|
return x.ProtectedBytes
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_Summary) GetHistoryLast_30Days() []*SummaryDashboardResponse_DayStatusBucket {
|
|
if x != nil {
|
|
return x.HistoryLast_30Days
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SummaryDashboardResponse_BackupChart struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FlowId []int64 `protobuf:"varint,1,rep,packed,name=flow_id,json=flowId,proto3" json:"flow_id,omitempty"`
|
|
TimestampMs []int64 `protobuf:"varint,2,rep,packed,name=timestamp_ms,json=timestampMs,proto3" json:"timestamp_ms,omitempty"`
|
|
DurationMs []int64 `protobuf:"varint,3,rep,packed,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"`
|
|
Status []OperationStatus `protobuf:"varint,4,rep,packed,name=status,proto3,enum=v1.OperationStatus" json:"status,omitempty"`
|
|
BytesAdded []int64 `protobuf:"varint,5,rep,packed,name=bytes_added,json=bytesAdded,proto3" json:"bytes_added,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_BackupChart) Reset() {
|
|
*x = SummaryDashboardResponse_BackupChart{}
|
|
mi := &file_v1_service_proto_msgTypes[27]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_BackupChart) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SummaryDashboardResponse_BackupChart) ProtoMessage() {}
|
|
|
|
func (x *SummaryDashboardResponse_BackupChart) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[27]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SummaryDashboardResponse_BackupChart.ProtoReflect.Descriptor instead.
|
|
func (*SummaryDashboardResponse_BackupChart) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{23, 1}
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_BackupChart) GetFlowId() []int64 {
|
|
if x != nil {
|
|
return x.FlowId
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_BackupChart) GetTimestampMs() []int64 {
|
|
if x != nil {
|
|
return x.TimestampMs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_BackupChart) GetDurationMs() []int64 {
|
|
if x != nil {
|
|
return x.DurationMs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_BackupChart) GetStatus() []OperationStatus {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_BackupChart) GetBytesAdded() []int64 {
|
|
if x != nil {
|
|
return x.BytesAdded
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SummaryDashboardResponse_DayStatusBucket struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TimestampMs int64 `protobuf:"varint,1,opt,name=timestamp_ms,json=timestampMs,proto3" json:"timestamp_ms,omitempty"` // start-of-day timestamp this bucket represents
|
|
BytesAdded int64 `protobuf:"varint,2,opt,name=bytes_added,json=bytesAdded,proto3" json:"bytes_added,omitempty"` // bytes added by backups that day
|
|
BytesScanned int64 `protobuf:"varint,3,opt,name=bytes_scanned,json=bytesScanned,proto3" json:"bytes_scanned,omitempty"` // bytes scanned by backups that day
|
|
StatusCounts []*SummaryDashboardResponse_StatusAndCount `protobuf:"bytes,4,rep,name=status_counts,json=statusCounts,proto3" json:"status_counts,omitempty"` // backup count per status for the day
|
|
Overdue bool `protobuf:"varint,5,opt,name=overdue,proto3" json:"overdue,omitempty"` // gap since the last good backup exceeded the schedule's nominal period during this day
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_DayStatusBucket) Reset() {
|
|
*x = SummaryDashboardResponse_DayStatusBucket{}
|
|
mi := &file_v1_service_proto_msgTypes[28]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_DayStatusBucket) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SummaryDashboardResponse_DayStatusBucket) ProtoMessage() {}
|
|
|
|
func (x *SummaryDashboardResponse_DayStatusBucket) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[28]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SummaryDashboardResponse_DayStatusBucket.ProtoReflect.Descriptor instead.
|
|
func (*SummaryDashboardResponse_DayStatusBucket) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{23, 2}
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_DayStatusBucket) GetTimestampMs() int64 {
|
|
if x != nil {
|
|
return x.TimestampMs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_DayStatusBucket) GetBytesAdded() int64 {
|
|
if x != nil {
|
|
return x.BytesAdded
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_DayStatusBucket) GetBytesScanned() int64 {
|
|
if x != nil {
|
|
return x.BytesScanned
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_DayStatusBucket) GetStatusCounts() []*SummaryDashboardResponse_StatusAndCount {
|
|
if x != nil {
|
|
return x.StatusCounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_DayStatusBucket) GetOverdue() bool {
|
|
if x != nil {
|
|
return x.Overdue
|
|
}
|
|
return false
|
|
}
|
|
|
|
type SummaryDashboardResponse_StatusAndCount struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
|
Status OperationStatus `protobuf:"varint,2,opt,name=status,proto3,enum=v1.OperationStatus" json:"status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_StatusAndCount) Reset() {
|
|
*x = SummaryDashboardResponse_StatusAndCount{}
|
|
mi := &file_v1_service_proto_msgTypes[29]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_StatusAndCount) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SummaryDashboardResponse_StatusAndCount) ProtoMessage() {}
|
|
|
|
func (x *SummaryDashboardResponse_StatusAndCount) ProtoReflect() protoreflect.Message {
|
|
mi := &file_v1_service_proto_msgTypes[29]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SummaryDashboardResponse_StatusAndCount.ProtoReflect.Descriptor instead.
|
|
func (*SummaryDashboardResponse_StatusAndCount) Descriptor() ([]byte, []int) {
|
|
return file_v1_service_proto_rawDescGZIP(), []int{23, 3}
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_StatusAndCount) GetCount() int64 {
|
|
if x != nil {
|
|
return x.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SummaryDashboardResponse_StatusAndCount) GetStatus() OperationStatus {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return OperationStatus_STATUS_UNKNOWN
|
|
}
|
|
|
|
var File_v1_service_proto protoreflect.FileDescriptor
|
|
|
|
const file_v1_service_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x10v1/service.proto\x12\x02v1\x1a\x0fv1/config.proto\x1a\x0fv1/restic.proto\x1a\x13v1/operations.proto\x1a\x11types/value.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/api/annotations.proto\">\n" +
|
|
"\rBackupRequest\x12\x14\n" +
|
|
"\x05value\x18\x01 \x01(\tR\x05value\x12\x17\n" +
|
|
"\adry_run\x18\x02 \x01(\bR\x06dryRun\"9\n" +
|
|
"\x14ScheduleTaskResponse\x12!\n" +
|
|
"\foperation_id\x18\x01 \x01(\x03R\voperationId\"\x97\x03\n" +
|
|
"\n" +
|
|
"OpSelector\x12\x10\n" +
|
|
"\x03ids\x18\x01 \x03(\x03R\x03ids\x12$\n" +
|
|
"\vinstance_id\x18\x06 \x01(\tH\x00R\n" +
|
|
"instanceId\x88\x01\x01\x12;\n" +
|
|
"\x17original_instance_keyid\x18\b \x01(\tH\x01R\x15originalInstanceKeyid\x88\x01\x01\x12 \n" +
|
|
"\trepo_guid\x18\a \x01(\tH\x02R\brepoGuid\x88\x01\x01\x12\x1c\n" +
|
|
"\aplan_id\x18\x03 \x01(\tH\x03R\x06planId\x88\x01\x01\x12$\n" +
|
|
"\vsnapshot_id\x18\x04 \x01(\tH\x04R\n" +
|
|
"snapshotId\x88\x01\x01\x12\x1c\n" +
|
|
"\aflow_id\x18\x05 \x01(\x03H\x05R\x06flowId\x88\x01\x01\x12 \n" +
|
|
"\tmodno_gte\x18\t \x01(\x03H\x06R\bmodnoGte\x88\x01\x01B\x0e\n" +
|
|
"\f_instance_idB\x1a\n" +
|
|
"\x18_original_instance_keyidB\f\n" +
|
|
"\n" +
|
|
"_repo_guidB\n" +
|
|
"\n" +
|
|
"\b_plan_idB\x0e\n" +
|
|
"\f_snapshot_idB\n" +
|
|
"\n" +
|
|
"\b_flow_idB\f\n" +
|
|
"\n" +
|
|
"_modno_gte\"\x84\x01\n" +
|
|
"\x10SetupSftpRequest\x12\x12\n" +
|
|
"\x04host\x18\x01 \x01(\tR\x04host\x12\x12\n" +
|
|
"\x04port\x18\x02 \x01(\tR\x04port\x12\x1a\n" +
|
|
"\busername\x18\x03 \x01(\tR\busername\x12\x1f\n" +
|
|
"\bpassword\x18\x04 \x01(\tH\x00R\bpassword\x88\x01\x01B\v\n" +
|
|
"\t_password\"\x8d\x01\n" +
|
|
"\x11SetupSftpResponse\x12\x1d\n" +
|
|
"\n" +
|
|
"public_key\x18\x01 \x01(\tR\tpublicKey\x12\x19\n" +
|
|
"\bkey_path\x18\x02 \x01(\tR\akeyPath\x12(\n" +
|
|
"\x10known_hosts_path\x18\x03 \x01(\tR\x0eknownHostsPath\x12\x14\n" +
|
|
"\x05error\x18\x04 \x01(\tR\x05error\"6\n" +
|
|
"\x16CheckRepoExistsRequest\x12\x1c\n" +
|
|
"\x04repo\x18\x01 \x01(\v2\b.v1.RepoR\x04repo\"u\n" +
|
|
"\x17CheckRepoExistsResponse\x12\x16\n" +
|
|
"\x06exists\x18\x01 \x01(\bR\x06exists\x12\x14\n" +
|
|
"\x05error\x18\x02 \x01(\tR\x05error\x12,\n" +
|
|
"\x12host_key_untrusted\x18\x05 \x01(\bR\x10hostKeyUntrusted\".\n" +
|
|
"\x0eAddRepoRequest\x12\x1c\n" +
|
|
"\x04repo\x18\x01 \x01(\v2\b.v1.RepoR\x04repo\"\xe0\x01\n" +
|
|
"\x11DoRepoTaskRequest\x12\x17\n" +
|
|
"\arepo_id\x18\x01 \x01(\tR\x06repoId\x12.\n" +
|
|
"\x04task\x18\x02 \x01(\x0e2\x1a.v1.DoRepoTaskRequest.TaskR\x04task\"\x81\x01\n" +
|
|
"\x04Task\x12\r\n" +
|
|
"\tTASK_NONE\x10\x00\x12\x18\n" +
|
|
"\x14TASK_INDEX_SNAPSHOTS\x10\x01\x12\x0e\n" +
|
|
"\n" +
|
|
"TASK_PRUNE\x10\x02\x12\x0e\n" +
|
|
"\n" +
|
|
"TASK_CHECK\x10\x03\x12\x0e\n" +
|
|
"\n" +
|
|
"TASK_STATS\x10\x04\x12\x0f\n" +
|
|
"\vTASK_UNLOCK\x10\x05\x12\x0f\n" +
|
|
"\vTASK_FORGET\x10\x06\"b\n" +
|
|
"\x13ClearHistoryRequest\x12*\n" +
|
|
"\bselector\x18\x01 \x01(\v2\x0e.v1.OpSelectorR\bselector\x12\x1f\n" +
|
|
"\vonly_failed\x18\x02 \x01(\bR\n" +
|
|
"onlyFailed\"b\n" +
|
|
"\rForgetRequest\x12\x17\n" +
|
|
"\arepo_id\x18\x01 \x01(\tR\x06repoId\x12\x17\n" +
|
|
"\aplan_id\x18\x02 \x01(\tR\x06planId\x12\x1f\n" +
|
|
"\vsnapshot_id\x18\x03 \x01(\tR\n" +
|
|
"snapshotId\"H\n" +
|
|
"\x14ListSnapshotsRequest\x12\x17\n" +
|
|
"\arepo_id\x18\x01 \x01(\tR\x06repoId\x12\x17\n" +
|
|
"\aplan_id\x18\x02 \x01(\tR\x06planId\"Y\n" +
|
|
"\x14GetOperationsRequest\x12*\n" +
|
|
"\bselector\x18\x01 \x01(\v2\x0e.v1.OpSelectorR\bselector\x12\x15\n" +
|
|
"\x06last_n\x18\x02 \x01(\x03R\x05lastN\"\x97\x01\n" +
|
|
"\x16RestoreSnapshotRequest\x12\x17\n" +
|
|
"\aplan_id\x18\x01 \x01(\tR\x06planId\x12\x17\n" +
|
|
"\arepo_id\x18\x05 \x01(\tR\x06repoId\x12\x1f\n" +
|
|
"\vsnapshot_id\x18\x02 \x01(\tR\n" +
|
|
"snapshotId\x12\x12\n" +
|
|
"\x04path\x18\x03 \x01(\tR\x04path\x12\x16\n" +
|
|
"\x06target\x18\x04 \x01(\tR\x06target\"h\n" +
|
|
"\x18ListSnapshotFilesRequest\x12\x17\n" +
|
|
"\arepo_id\x18\x01 \x01(\tR\x06repoId\x12\x1f\n" +
|
|
"\vsnapshot_id\x18\x02 \x01(\tR\n" +
|
|
"snapshotId\x12\x12\n" +
|
|
"\x04path\x18\x03 \x01(\tR\x04path\"V\n" +
|
|
"\x19ListSnapshotFilesResponse\x12\x12\n" +
|
|
"\x04path\x18\x01 \x01(\tR\x04path\x12%\n" +
|
|
"\aentries\x18\x02 \x03(\v2\v.v1.LsEntryR\aentries\"\"\n" +
|
|
"\x0eLogDataRequest\x12\x10\n" +
|
|
"\x03ref\x18\x01 \x01(\tR\x03ref\"I\n" +
|
|
"\x15GetDownloadURLRequest\x12\x13\n" +
|
|
"\x05op_id\x18\x01 \x01(\x03R\x04opId\x12\x1b\n" +
|
|
"\tfile_path\x18\x02 \x01(\tR\bfilePath\"\xd3\x01\n" +
|
|
"\aLsEntry\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n" +
|
|
"\x04path\x18\x03 \x01(\tR\x04path\x12\x10\n" +
|
|
"\x03uid\x18\x04 \x01(\x03R\x03uid\x12\x10\n" +
|
|
"\x03gid\x18\x05 \x01(\x03R\x03gid\x12\x12\n" +
|
|
"\x04size\x18\x06 \x01(\x03R\x04size\x12\x12\n" +
|
|
"\x04mode\x18\a \x01(\x03R\x04mode\x12\x14\n" +
|
|
"\x05mtime\x18\b \x01(\tR\x05mtime\x12\x14\n" +
|
|
"\x05atime\x18\t \x01(\tR\x05atime\x12\x14\n" +
|
|
"\x05ctime\x18\n" +
|
|
" \x01(\tR\x05ctime\"F\n" +
|
|
"\x11RunCommandRequest\x12\x17\n" +
|
|
"\arepo_id\x18\x01 \x01(\tR\x06repoId\x12\x18\n" +
|
|
"\acommand\x18\x02 \x01(\tR\acommand\"7\n" +
|
|
"\x12RunCommandResponse\x12!\n" +
|
|
"\foperation_id\x18\x01 \x01(\x03R\voperationId\",\n" +
|
|
"\x11RemoveRepoRequest\x12\x17\n" +
|
|
"\arepo_id\x18\x01 \x01(\tR\x06repoId\";\n" +
|
|
"\x16CancelOperationRequest\x12!\n" +
|
|
"\foperation_id\x18\x01 \x01(\x03R\voperationId\"\xaf\v\n" +
|
|
"\x18SummaryDashboardResponse\x12K\n" +
|
|
"\x0erepo_summaries\x18\x01 \x03(\v2$.v1.SummaryDashboardResponse.SummaryR\rrepoSummaries\x12K\n" +
|
|
"\x0eplan_summaries\x18\x02 \x03(\v2$.v1.SummaryDashboardResponse.SummaryR\rplanSummaries\x12\x1f\n" +
|
|
"\vconfig_path\x18\n" +
|
|
" \x01(\tR\n" +
|
|
"configPath\x12\x1b\n" +
|
|
"\tdata_path\x18\v \x01(\tR\bdataPath\x1a\xc1\x05\n" +
|
|
"\aSummary\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x122\n" +
|
|
"\x15backups_failed_30days\x18\x02 \x01(\x03R\x13backupsFailed30days\x12=\n" +
|
|
"\x1bbackups_warning_last_30days\x18\x03 \x01(\x03R\x18backupsWarningLast30days\x12=\n" +
|
|
"\x1bbackups_success_last_30days\x18\x04 \x01(\x03R\x18backupsSuccessLast30days\x129\n" +
|
|
"\x19bytes_scanned_last_30days\x18\x05 \x01(\x03R\x16bytesScannedLast30days\x125\n" +
|
|
"\x17bytes_added_last_30days\x18\x06 \x01(\x03R\x14bytesAddedLast30days\x12'\n" +
|
|
"\x0ftotal_snapshots\x18\a \x01(\x03R\x0etotalSnapshots\x12*\n" +
|
|
"\x11bytes_scanned_avg\x18\b \x01(\x03R\x0fbytesScannedAvg\x12&\n" +
|
|
"\x0fbytes_added_avg\x18\t \x01(\x03R\rbytesAddedAvg\x12-\n" +
|
|
"\x13next_backup_time_ms\x18\n" +
|
|
" \x01(\x03R\x10nextBackupTimeMs\x12O\n" +
|
|
"\x0erecent_backups\x18\v \x01(\v2(.v1.SummaryDashboardResponse.BackupChartR\rrecentBackups\x12'\n" +
|
|
"\x0fprotected_bytes\x18\f \x01(\x03R\x0eprotectedBytes\x12\\\n" +
|
|
"\x13history_last_30days\x18\r \x03(\v2,.v1.SummaryDashboardResponse.DayStatusBucketR\x11historyLast30days\x1a\xb8\x01\n" +
|
|
"\vBackupChart\x12\x17\n" +
|
|
"\aflow_id\x18\x01 \x03(\x03R\x06flowId\x12!\n" +
|
|
"\ftimestamp_ms\x18\x02 \x03(\x03R\vtimestampMs\x12\x1f\n" +
|
|
"\vduration_ms\x18\x03 \x03(\x03R\n" +
|
|
"durationMs\x12+\n" +
|
|
"\x06status\x18\x04 \x03(\x0e2\x13.v1.OperationStatusR\x06status\x12\x1f\n" +
|
|
"\vbytes_added\x18\x05 \x03(\x03R\n" +
|
|
"bytesAdded\x1a\xe6\x01\n" +
|
|
"\x0fDayStatusBucket\x12!\n" +
|
|
"\ftimestamp_ms\x18\x01 \x01(\x03R\vtimestampMs\x12\x1f\n" +
|
|
"\vbytes_added\x18\x02 \x01(\x03R\n" +
|
|
"bytesAdded\x12#\n" +
|
|
"\rbytes_scanned\x18\x03 \x01(\x03R\fbytesScanned\x12P\n" +
|
|
"\rstatus_counts\x18\x04 \x03(\v2+.v1.SummaryDashboardResponse.StatusAndCountR\fstatusCounts\x12\x18\n" +
|
|
"\aoverdue\x18\x05 \x01(\bR\aoverdue\x1aS\n" +
|
|
"\x0eStatusAndCount\x12\x14\n" +
|
|
"\x05count\x18\x01 \x01(\x03R\x05count\x12+\n" +
|
|
"\x06status\x18\x02 \x01(\x0e2\x13.v1.OperationStatusR\x06status\"\xab\x01\n" +
|
|
"\x1bGeneratePairingTokenRequest\x12\x14\n" +
|
|
"\x05label\x18\x01 \x01(\tR\x05label\x12\x1f\n" +
|
|
"\vttl_seconds\x18\x02 \x01(\x03R\n" +
|
|
"ttlSeconds\x12\x19\n" +
|
|
"\bmax_uses\x18\x03 \x01(\x05R\amaxUses\x12:\n" +
|
|
"\vpermissions\x18\x04 \x03(\v2\x18.v1.Multihost.PermissionR\vpermissions\"4\n" +
|
|
"\x1cGeneratePairingTokenResponse\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token2\x85\v\n" +
|
|
"\bBackrest\x121\n" +
|
|
"\tGetConfig\x12\x16.google.protobuf.Empty\x1a\n" +
|
|
".v1.Config\"\x00\x12%\n" +
|
|
"\tSetConfig\x12\n" +
|
|
".v1.Config\x1a\n" +
|
|
".v1.Config\"\x00\x12:\n" +
|
|
"\tSetupSftp\x12\x14.v1.SetupSftpRequest\x1a\x15.v1.SetupSftpResponse\"\x00\x12L\n" +
|
|
"\x0fCheckRepoExists\x12\x1a.v1.CheckRepoExistsRequest\x1a\x1b.v1.CheckRepoExistsResponse\"\x00\x12+\n" +
|
|
"\aAddRepo\x12\x12.v1.AddRepoRequest\x1a\n" +
|
|
".v1.Config\"\x00\x121\n" +
|
|
"\n" +
|
|
"RemoveRepo\x12\x15.v1.RemoveRepoRequest\x1a\n" +
|
|
".v1.Config\"\x00\x12D\n" +
|
|
"\x12GetOperationEvents\x12\x16.google.protobuf.Empty\x1a\x12.v1.OperationEvent\"\x000\x01\x12>\n" +
|
|
"\rGetOperations\x12\x18.v1.GetOperationsRequest\x1a\x11.v1.OperationList\"\x00\x12C\n" +
|
|
"\rListSnapshots\x12\x18.v1.ListSnapshotsRequest\x1a\x16.v1.ResticSnapshotList\"\x00\x12R\n" +
|
|
"\x11ListSnapshotFiles\x12\x1c.v1.ListSnapshotFilesRequest\x1a\x1d.v1.ListSnapshotFilesResponse\"\x00\x125\n" +
|
|
"\x06Backup\x12\x11.v1.BackupRequest\x1a\x16.google.protobuf.Empty\"\x00\x12?\n" +
|
|
"\n" +
|
|
"DoRepoTask\x12\x15.v1.DoRepoTaskRequest\x1a\x18.v1.ScheduleTaskResponse\"\x00\x127\n" +
|
|
"\x06Forget\x12\x11.v1.ForgetRequest\x1a\x18.v1.ScheduleTaskResponse\"\x00\x12A\n" +
|
|
"\aRestore\x12\x1a.v1.RestoreSnapshotRequest\x1a\x18.v1.ScheduleTaskResponse\"\x00\x12>\n" +
|
|
"\x06Cancel\x12\x1a.v1.CancelOperationRequest\x1a\x16.google.protobuf.Empty\"\x00\x124\n" +
|
|
"\aGetLogs\x12\x12.v1.LogDataRequest\x1a\x11.types.BytesValue\"\x000\x01\x12=\n" +
|
|
"\n" +
|
|
"RunCommand\x12\x15.v1.RunCommandRequest\x1a\x16.v1.RunCommandResponse\"\x00\x12A\n" +
|
|
"\x0eGetDownloadURL\x12\x19.v1.GetDownloadURLRequest\x1a\x12.types.StringValue\"\x00\x12A\n" +
|
|
"\fClearHistory\x12\x17.v1.ClearHistoryRequest\x1a\x16.google.protobuf.Empty\"\x00\x12;\n" +
|
|
"\x10PathAutocomplete\x12\x12.types.StringValue\x1a\x11.types.StringList\"\x00\x12M\n" +
|
|
"\x13GetSummaryDashboard\x12\x16.google.protobuf.Empty\x1a\x1c.v1.SummaryDashboardResponse\"\x00\x12[\n" +
|
|
"\x14GeneratePairingToken\x12\x1f.v1.GeneratePairingTokenRequest\x1a .v1.GeneratePairingTokenResponse\"\x00B,Z*github.com/garethgeorge/backrest/gen/go/v1b\x06proto3"
|
|
|
|
var (
|
|
file_v1_service_proto_rawDescOnce sync.Once
|
|
file_v1_service_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_v1_service_proto_rawDescGZIP() []byte {
|
|
file_v1_service_proto_rawDescOnce.Do(func() {
|
|
file_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_v1_service_proto_rawDesc), len(file_v1_service_proto_rawDesc)))
|
|
})
|
|
return file_v1_service_proto_rawDescData
|
|
}
|
|
|
|
var file_v1_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 30)
|
|
var file_v1_service_proto_goTypes = []any{
|
|
(DoRepoTaskRequest_Task)(0), // 0: v1.DoRepoTaskRequest.Task
|
|
(*BackupRequest)(nil), // 1: v1.BackupRequest
|
|
(*ScheduleTaskResponse)(nil), // 2: v1.ScheduleTaskResponse
|
|
(*OpSelector)(nil), // 3: v1.OpSelector
|
|
(*SetupSftpRequest)(nil), // 4: v1.SetupSftpRequest
|
|
(*SetupSftpResponse)(nil), // 5: v1.SetupSftpResponse
|
|
(*CheckRepoExistsRequest)(nil), // 6: v1.CheckRepoExistsRequest
|
|
(*CheckRepoExistsResponse)(nil), // 7: v1.CheckRepoExistsResponse
|
|
(*AddRepoRequest)(nil), // 8: v1.AddRepoRequest
|
|
(*DoRepoTaskRequest)(nil), // 9: v1.DoRepoTaskRequest
|
|
(*ClearHistoryRequest)(nil), // 10: v1.ClearHistoryRequest
|
|
(*ForgetRequest)(nil), // 11: v1.ForgetRequest
|
|
(*ListSnapshotsRequest)(nil), // 12: v1.ListSnapshotsRequest
|
|
(*GetOperationsRequest)(nil), // 13: v1.GetOperationsRequest
|
|
(*RestoreSnapshotRequest)(nil), // 14: v1.RestoreSnapshotRequest
|
|
(*ListSnapshotFilesRequest)(nil), // 15: v1.ListSnapshotFilesRequest
|
|
(*ListSnapshotFilesResponse)(nil), // 16: v1.ListSnapshotFilesResponse
|
|
(*LogDataRequest)(nil), // 17: v1.LogDataRequest
|
|
(*GetDownloadURLRequest)(nil), // 18: v1.GetDownloadURLRequest
|
|
(*LsEntry)(nil), // 19: v1.LsEntry
|
|
(*RunCommandRequest)(nil), // 20: v1.RunCommandRequest
|
|
(*RunCommandResponse)(nil), // 21: v1.RunCommandResponse
|
|
(*RemoveRepoRequest)(nil), // 22: v1.RemoveRepoRequest
|
|
(*CancelOperationRequest)(nil), // 23: v1.CancelOperationRequest
|
|
(*SummaryDashboardResponse)(nil), // 24: v1.SummaryDashboardResponse
|
|
(*GeneratePairingTokenRequest)(nil), // 25: v1.GeneratePairingTokenRequest
|
|
(*GeneratePairingTokenResponse)(nil), // 26: v1.GeneratePairingTokenResponse
|
|
(*SummaryDashboardResponse_Summary)(nil), // 27: v1.SummaryDashboardResponse.Summary
|
|
(*SummaryDashboardResponse_BackupChart)(nil), // 28: v1.SummaryDashboardResponse.BackupChart
|
|
(*SummaryDashboardResponse_DayStatusBucket)(nil), // 29: v1.SummaryDashboardResponse.DayStatusBucket
|
|
(*SummaryDashboardResponse_StatusAndCount)(nil), // 30: v1.SummaryDashboardResponse.StatusAndCount
|
|
(*Repo)(nil), // 31: v1.Repo
|
|
(*Multihost_Permission)(nil), // 32: v1.Multihost.Permission
|
|
(OperationStatus)(0), // 33: v1.OperationStatus
|
|
(*emptypb.Empty)(nil), // 34: google.protobuf.Empty
|
|
(*Config)(nil), // 35: v1.Config
|
|
(*types.StringValue)(nil), // 36: types.StringValue
|
|
(*OperationEvent)(nil), // 37: v1.OperationEvent
|
|
(*OperationList)(nil), // 38: v1.OperationList
|
|
(*ResticSnapshotList)(nil), // 39: v1.ResticSnapshotList
|
|
(*types.BytesValue)(nil), // 40: types.BytesValue
|
|
(*types.StringList)(nil), // 41: types.StringList
|
|
}
|
|
var file_v1_service_proto_depIdxs = []int32{
|
|
31, // 0: v1.CheckRepoExistsRequest.repo:type_name -> v1.Repo
|
|
31, // 1: v1.AddRepoRequest.repo:type_name -> v1.Repo
|
|
0, // 2: v1.DoRepoTaskRequest.task:type_name -> v1.DoRepoTaskRequest.Task
|
|
3, // 3: v1.ClearHistoryRequest.selector:type_name -> v1.OpSelector
|
|
3, // 4: v1.GetOperationsRequest.selector:type_name -> v1.OpSelector
|
|
19, // 5: v1.ListSnapshotFilesResponse.entries:type_name -> v1.LsEntry
|
|
27, // 6: v1.SummaryDashboardResponse.repo_summaries:type_name -> v1.SummaryDashboardResponse.Summary
|
|
27, // 7: v1.SummaryDashboardResponse.plan_summaries:type_name -> v1.SummaryDashboardResponse.Summary
|
|
32, // 8: v1.GeneratePairingTokenRequest.permissions:type_name -> v1.Multihost.Permission
|
|
28, // 9: v1.SummaryDashboardResponse.Summary.recent_backups:type_name -> v1.SummaryDashboardResponse.BackupChart
|
|
29, // 10: v1.SummaryDashboardResponse.Summary.history_last_30days:type_name -> v1.SummaryDashboardResponse.DayStatusBucket
|
|
33, // 11: v1.SummaryDashboardResponse.BackupChart.status:type_name -> v1.OperationStatus
|
|
30, // 12: v1.SummaryDashboardResponse.DayStatusBucket.status_counts:type_name -> v1.SummaryDashboardResponse.StatusAndCount
|
|
33, // 13: v1.SummaryDashboardResponse.StatusAndCount.status:type_name -> v1.OperationStatus
|
|
34, // 14: v1.Backrest.GetConfig:input_type -> google.protobuf.Empty
|
|
35, // 15: v1.Backrest.SetConfig:input_type -> v1.Config
|
|
4, // 16: v1.Backrest.SetupSftp:input_type -> v1.SetupSftpRequest
|
|
6, // 17: v1.Backrest.CheckRepoExists:input_type -> v1.CheckRepoExistsRequest
|
|
8, // 18: v1.Backrest.AddRepo:input_type -> v1.AddRepoRequest
|
|
22, // 19: v1.Backrest.RemoveRepo:input_type -> v1.RemoveRepoRequest
|
|
34, // 20: v1.Backrest.GetOperationEvents:input_type -> google.protobuf.Empty
|
|
13, // 21: v1.Backrest.GetOperations:input_type -> v1.GetOperationsRequest
|
|
12, // 22: v1.Backrest.ListSnapshots:input_type -> v1.ListSnapshotsRequest
|
|
15, // 23: v1.Backrest.ListSnapshotFiles:input_type -> v1.ListSnapshotFilesRequest
|
|
1, // 24: v1.Backrest.Backup:input_type -> v1.BackupRequest
|
|
9, // 25: v1.Backrest.DoRepoTask:input_type -> v1.DoRepoTaskRequest
|
|
11, // 26: v1.Backrest.Forget:input_type -> v1.ForgetRequest
|
|
14, // 27: v1.Backrest.Restore:input_type -> v1.RestoreSnapshotRequest
|
|
23, // 28: v1.Backrest.Cancel:input_type -> v1.CancelOperationRequest
|
|
17, // 29: v1.Backrest.GetLogs:input_type -> v1.LogDataRequest
|
|
20, // 30: v1.Backrest.RunCommand:input_type -> v1.RunCommandRequest
|
|
18, // 31: v1.Backrest.GetDownloadURL:input_type -> v1.GetDownloadURLRequest
|
|
10, // 32: v1.Backrest.ClearHistory:input_type -> v1.ClearHistoryRequest
|
|
36, // 33: v1.Backrest.PathAutocomplete:input_type -> types.StringValue
|
|
34, // 34: v1.Backrest.GetSummaryDashboard:input_type -> google.protobuf.Empty
|
|
25, // 35: v1.Backrest.GeneratePairingToken:input_type -> v1.GeneratePairingTokenRequest
|
|
35, // 36: v1.Backrest.GetConfig:output_type -> v1.Config
|
|
35, // 37: v1.Backrest.SetConfig:output_type -> v1.Config
|
|
5, // 38: v1.Backrest.SetupSftp:output_type -> v1.SetupSftpResponse
|
|
7, // 39: v1.Backrest.CheckRepoExists:output_type -> v1.CheckRepoExistsResponse
|
|
35, // 40: v1.Backrest.AddRepo:output_type -> v1.Config
|
|
35, // 41: v1.Backrest.RemoveRepo:output_type -> v1.Config
|
|
37, // 42: v1.Backrest.GetOperationEvents:output_type -> v1.OperationEvent
|
|
38, // 43: v1.Backrest.GetOperations:output_type -> v1.OperationList
|
|
39, // 44: v1.Backrest.ListSnapshots:output_type -> v1.ResticSnapshotList
|
|
16, // 45: v1.Backrest.ListSnapshotFiles:output_type -> v1.ListSnapshotFilesResponse
|
|
34, // 46: v1.Backrest.Backup:output_type -> google.protobuf.Empty
|
|
2, // 47: v1.Backrest.DoRepoTask:output_type -> v1.ScheduleTaskResponse
|
|
2, // 48: v1.Backrest.Forget:output_type -> v1.ScheduleTaskResponse
|
|
2, // 49: v1.Backrest.Restore:output_type -> v1.ScheduleTaskResponse
|
|
34, // 50: v1.Backrest.Cancel:output_type -> google.protobuf.Empty
|
|
40, // 51: v1.Backrest.GetLogs:output_type -> types.BytesValue
|
|
21, // 52: v1.Backrest.RunCommand:output_type -> v1.RunCommandResponse
|
|
36, // 53: v1.Backrest.GetDownloadURL:output_type -> types.StringValue
|
|
34, // 54: v1.Backrest.ClearHistory:output_type -> google.protobuf.Empty
|
|
41, // 55: v1.Backrest.PathAutocomplete:output_type -> types.StringList
|
|
24, // 56: v1.Backrest.GetSummaryDashboard:output_type -> v1.SummaryDashboardResponse
|
|
26, // 57: v1.Backrest.GeneratePairingToken:output_type -> v1.GeneratePairingTokenResponse
|
|
36, // [36:58] is the sub-list for method output_type
|
|
14, // [14:36] is the sub-list for method input_type
|
|
14, // [14:14] is the sub-list for extension type_name
|
|
14, // [14:14] is the sub-list for extension extendee
|
|
0, // [0:14] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_v1_service_proto_init() }
|
|
func file_v1_service_proto_init() {
|
|
if File_v1_service_proto != nil {
|
|
return
|
|
}
|
|
file_v1_config_proto_init()
|
|
file_v1_restic_proto_init()
|
|
file_v1_operations_proto_init()
|
|
file_v1_service_proto_msgTypes[2].OneofWrappers = []any{}
|
|
file_v1_service_proto_msgTypes[3].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_service_proto_rawDesc), len(file_v1_service_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 30,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_v1_service_proto_goTypes,
|
|
DependencyIndexes: file_v1_service_proto_depIdxs,
|
|
EnumInfos: file_v1_service_proto_enumTypes,
|
|
MessageInfos: file_v1_service_proto_msgTypes,
|
|
}.Build()
|
|
File_v1_service_proto = out.File
|
|
file_v1_service_proto_goTypes = nil
|
|
file_v1_service_proto_depIdxs = nil
|
|
}
|