backup

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2025 License: AGPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RetentionPolicy_name = map[int32]string{
		0: "RETENTION_POLICY_UNSPECIFIED",
		1: "RETENTION_POLICY_KEEP_ALL",
		2: "RETENTION_POLICY_REMOVE_ALL_BUT_KEEP_LATEST",
		3: "RETENTION_POLICY_KEEP_LAST_SEVEN_DAYS",
		4: "RETENTION_POLICY_KEEP_LAST_7_DAYS_OLDEST_OF_1_MONTH_1_QUARTER_1_HALF_YEAR_1_YEAR",
	}
	RetentionPolicy_value = map[string]int32{
		"RETENTION_POLICY_UNSPECIFIED":                                                     0,
		"RETENTION_POLICY_KEEP_ALL":                                                        1,
		"RETENTION_POLICY_REMOVE_ALL_BUT_KEEP_LATEST":                                      2,
		"RETENTION_POLICY_KEEP_LAST_SEVEN_DAYS":                                            3,
		"RETENTION_POLICY_KEEP_LAST_7_DAYS_OLDEST_OF_1_MONTH_1_QUARTER_1_HALF_YEAR_1_YEAR": 4,
	}
)

Enum value maps for RetentionPolicy.

View Source
var BackupManagement_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "backup.BackupManagement",
	HandlerType: (*BackupManagementServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "LastSuccessful",
			Handler:    _BackupManagement_LastSuccessful_Handler,
		},
		{
			MethodName: "ResticCredValid",
			Handler:    _BackupManagement_ResticCredValid_Handler,
		},
		{
			MethodName: "AllBackups",
			Handler:    _BackupManagement_AllBackups_Handler,
		},
		{
			MethodName: "AllRestores",
			Handler:    _BackupManagement_AllRestores_Handler,
		},
		{
			MethodName: "CreateRestore",
			Handler:    _BackupManagement_CreateRestore_Handler,
		},
		{
			MethodName: "GetSchedule",
			Handler:    _BackupManagement_GetSchedule_Handler,
		},
		{
			MethodName: "SetSchedule",
			Handler:    _BackupManagement_SetSchedule_Handler,
		},
		{
			MethodName: "GetRetentionPolicy",
			Handler:    _BackupManagement_GetRetentionPolicy_Handler,
		},
		{
			MethodName: "CreateBackup",
			Handler:    _BackupManagement_CreateBackup_Handler,
		},
		{
			MethodName: "DeleteBackup",
			Handler:    _BackupManagement_DeleteBackup_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "backup.proto",
}

BackupManagement_ServiceDesc is the grpc.ServiceDesc for BackupManagement service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_backup_proto protoreflect.FileDescriptor

Functions

func RegisterBackupManagementServer

func RegisterBackupManagementServer(s grpc.ServiceRegistrar, srv BackupManagementServer)

Types

type BackupManagementClient

type BackupManagementClient interface {
	// LastSuccessful retrieves information about the last successfully created backup.
	LastSuccessful(ctx context.Context, in *LastSuccessfulBackupRequest, opts ...grpc.CallOption) (*BackupResponse, error)
	// ResticCredValid retrieves information about the validity of the restic credentials from etcd
	ResticCredValid(ctx context.Context, in *ResticCredentialValidRequest, opts ...grpc.CallOption) (*ResticCredentialResponse, error)
	// AllBackups retrieves all Backups in the system
	AllBackups(ctx context.Context, in *GetAllBackupsRequest, opts ...grpc.CallOption) (*GetAllBackupsResponse, error)
	// AllRestores retrieves all Restores in the system
	AllRestores(ctx context.Context, in *GetAllRestoresRequest, opts ...grpc.CallOption) (*GetAllRestoresResponse, error)
	// CreateRestore creates a new restore with the given backup.
	CreateRestore(ctx context.Context, in *CreateRestoreRequest, opts ...grpc.CallOption) (*CreateRestoreResponse, error)
	// GetSchedule retrieves the backup schedule as a cron expression.
	GetSchedule(ctx context.Context, in *GetBackupScheduleRequest, opts ...grpc.CallOption) (*GetBackupScheduleResponse, error)
	// SetSchedule sets the backup schedule as a cron expression.
	SetSchedule(ctx context.Context, in *SetBackupScheduleRequest, opts ...grpc.CallOption) (*SetBackupScheduleResponse, error)
	// GetRetentionPolicy retrieves the current backup retention policy.
	GetRetentionPolicy(ctx context.Context, in *GetRetentionPolicyRequest, opts ...grpc.CallOption) (*GetRetentionPolicyResponse, error)
	// CreateBackup creates a new backup
	CreateBackup(ctx context.Context, in *CreateBackupRequest, opts ...grpc.CallOption) (*CreateBackupResponse, error)
	// DeleteBackup deletes a backup
	DeleteBackup(ctx context.Context, in *DeleteBackupRequest, opts ...grpc.CallOption) (*DeleteBackupResponse, error)
}

BackupManagementClient is the client API for BackupManagement service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type BackupManagementServer

type BackupManagementServer interface {
	// LastSuccessful retrieves information about the last successfully created backup.
	LastSuccessful(context.Context, *LastSuccessfulBackupRequest) (*BackupResponse, error)
	// ResticCredValid retrieves information about the validity of the restic credentials from etcd
	ResticCredValid(context.Context, *ResticCredentialValidRequest) (*ResticCredentialResponse, error)
	// AllBackups retrieves all Backups in the system
	AllBackups(context.Context, *GetAllBackupsRequest) (*GetAllBackupsResponse, error)
	// AllRestores retrieves all Restores in the system
	AllRestores(context.Context, *GetAllRestoresRequest) (*GetAllRestoresResponse, error)
	// CreateRestore creates a new restore with the given backup.
	CreateRestore(context.Context, *CreateRestoreRequest) (*CreateRestoreResponse, error)
	// GetSchedule retrieves the backup schedule as a cron expression.
	GetSchedule(context.Context, *GetBackupScheduleRequest) (*GetBackupScheduleResponse, error)
	// SetSchedule sets the backup schedule as a cron expression.
	SetSchedule(context.Context, *SetBackupScheduleRequest) (*SetBackupScheduleResponse, error)
	// GetRetentionPolicy retrieves the current backup retention policy.
	GetRetentionPolicy(context.Context, *GetRetentionPolicyRequest) (*GetRetentionPolicyResponse, error)
	// CreateBackup creates a new backup
	CreateBackup(context.Context, *CreateBackupRequest) (*CreateBackupResponse, error)
	// DeleteBackup deletes a backup
	DeleteBackup(context.Context, *DeleteBackupRequest) (*DeleteBackupResponse, error)
	// contains filtered or unexported methods
}

BackupManagementServer is the server API for BackupManagement service. All implementations must embed UnimplementedBackupManagementServer for forward compatibility

type BackupResponse

type BackupResponse struct {

	// id contains the id of the backup.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// start_time contains the time when the backup was started.
	StartTime string `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// end_time contains the time when the backup process has ended.
	EndTime string `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// type provides information about the backup type.
	//
	// Deprecated: Do not use.
	Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	// status indicates the current backup status: in progress, failed, completed
	Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
	// error_message contains a possible reason if the backup was not successful.
	//
	// Deprecated: Do not use.
	ErrorMessage string `protobuf:"bytes,6,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// current_version indicates if the backup was made on the current blueprint id
	CurrentVersion bool `protobuf:"varint,7,opt,name=current_version,json=currentVersion,proto3" json:"current_version,omitempty"`
	// restorable indicates if the backup can be restored into the current system.
	Restorable bool `protobuf:"varint,8,opt,name=restorable,proto3" json:"restorable,omitempty"`
	// blueprint_id indicates the blueprint id of the backup the restore is based on
	BlueprintId string `protobuf:"bytes,9,opt,name=blueprint_id,json=blueprintId,proto3" json:"blueprint_id,omitempty"`
	// contains filtered or unexported fields
}

BackupResponse contains information about a created backup.

func (*BackupResponse) Descriptor deprecated

func (*BackupResponse) Descriptor() ([]byte, []int)

Deprecated: Use BackupResponse.ProtoReflect.Descriptor instead.

func (*BackupResponse) GetBlueprintId added in v1.6.0

func (x *BackupResponse) GetBlueprintId() string

func (*BackupResponse) GetCurrentVersion added in v1.6.0

func (x *BackupResponse) GetCurrentVersion() bool

func (*BackupResponse) GetEndTime

func (x *BackupResponse) GetEndTime() string

func (*BackupResponse) GetErrorMessage deprecated

func (x *BackupResponse) GetErrorMessage() string

Deprecated: Do not use.

func (*BackupResponse) GetId

func (x *BackupResponse) GetId() string

func (*BackupResponse) GetRestorable added in v1.6.0

func (x *BackupResponse) GetRestorable() bool

func (*BackupResponse) GetStartTime

func (x *BackupResponse) GetStartTime() string

func (*BackupResponse) GetStatus added in v1.6.0

func (x *BackupResponse) GetStatus() string

func (*BackupResponse) GetType deprecated

func (x *BackupResponse) GetType() string

Deprecated: Do not use.

func (*BackupResponse) ProtoMessage

func (*BackupResponse) ProtoMessage()

func (*BackupResponse) ProtoReflect

func (x *BackupResponse) ProtoReflect() protoreflect.Message

func (*BackupResponse) Reset

func (x *BackupResponse) Reset()

func (*BackupResponse) String

func (x *BackupResponse) String() string

type CreateBackupRequest added in v1.6.0

type CreateBackupRequest struct {
	// contains filtered or unexported fields
}

func (*CreateBackupRequest) Descriptor deprecated added in v1.6.0

func (*CreateBackupRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateBackupRequest.ProtoReflect.Descriptor instead.

func (*CreateBackupRequest) ProtoMessage added in v1.6.0

func (*CreateBackupRequest) ProtoMessage()

func (*CreateBackupRequest) ProtoReflect added in v1.6.0

func (x *CreateBackupRequest) ProtoReflect() protoreflect.Message

func (*CreateBackupRequest) Reset added in v1.6.0

func (x *CreateBackupRequest) Reset()

func (*CreateBackupRequest) String added in v1.6.0

func (x *CreateBackupRequest) String() string

type CreateBackupResponse added in v1.6.0

type CreateBackupResponse struct {
	// contains filtered or unexported fields
}

func (*CreateBackupResponse) Descriptor deprecated added in v1.6.0

func (*CreateBackupResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateBackupResponse.ProtoReflect.Descriptor instead.

func (*CreateBackupResponse) ProtoMessage added in v1.6.0

func (*CreateBackupResponse) ProtoMessage()

func (*CreateBackupResponse) ProtoReflect added in v1.6.0

func (x *CreateBackupResponse) ProtoReflect() protoreflect.Message

func (*CreateBackupResponse) Reset added in v1.6.0

func (x *CreateBackupResponse) Reset()

func (*CreateBackupResponse) String added in v1.6.0

func (x *CreateBackupResponse) String() string

type CreateRestoreRequest added in v1.6.0

type CreateRestoreRequest struct {

	// id contains the id of the backup that should be restored
	BackupId string `protobuf:"bytes,1,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRestoreRequest) Descriptor deprecated added in v1.6.0

func (*CreateRestoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateRestoreRequest.ProtoReflect.Descriptor instead.

func (*CreateRestoreRequest) GetBackupId added in v1.6.0

func (x *CreateRestoreRequest) GetBackupId() string

func (*CreateRestoreRequest) ProtoMessage added in v1.6.0

func (*CreateRestoreRequest) ProtoMessage()

func (*CreateRestoreRequest) ProtoReflect added in v1.6.0

func (x *CreateRestoreRequest) ProtoReflect() protoreflect.Message

func (*CreateRestoreRequest) Reset added in v1.6.0

func (x *CreateRestoreRequest) Reset()

func (*CreateRestoreRequest) String added in v1.6.0

func (x *CreateRestoreRequest) String() string

type CreateRestoreResponse added in v1.6.0

type CreateRestoreResponse struct {
	// contains filtered or unexported fields
}

func (*CreateRestoreResponse) Descriptor deprecated added in v1.6.0

func (*CreateRestoreResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateRestoreResponse.ProtoReflect.Descriptor instead.

func (*CreateRestoreResponse) ProtoMessage added in v1.6.0

func (*CreateRestoreResponse) ProtoMessage()

func (*CreateRestoreResponse) ProtoReflect added in v1.6.0

func (x *CreateRestoreResponse) ProtoReflect() protoreflect.Message

func (*CreateRestoreResponse) Reset added in v1.6.0

func (x *CreateRestoreResponse) Reset()

func (*CreateRestoreResponse) String added in v1.6.0

func (x *CreateRestoreResponse) String() string

type DeleteBackupRequest added in v1.6.0

type DeleteBackupRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteBackupRequest) Descriptor deprecated added in v1.6.0

func (*DeleteBackupRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteBackupRequest.ProtoReflect.Descriptor instead.

func (*DeleteBackupRequest) GetName added in v1.6.0

func (x *DeleteBackupRequest) GetName() string

func (*DeleteBackupRequest) ProtoMessage added in v1.6.0

func (*DeleteBackupRequest) ProtoMessage()

func (*DeleteBackupRequest) ProtoReflect added in v1.6.0

func (x *DeleteBackupRequest) ProtoReflect() protoreflect.Message

func (*DeleteBackupRequest) Reset added in v1.6.0

func (x *DeleteBackupRequest) Reset()

func (*DeleteBackupRequest) String added in v1.6.0

func (x *DeleteBackupRequest) String() string

type DeleteBackupResponse added in v1.6.0

type DeleteBackupResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteBackupResponse) Descriptor deprecated added in v1.6.0

func (*DeleteBackupResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteBackupResponse.ProtoReflect.Descriptor instead.

func (*DeleteBackupResponse) ProtoMessage added in v1.6.0

func (*DeleteBackupResponse) ProtoMessage()

func (*DeleteBackupResponse) ProtoReflect added in v1.6.0

func (x *DeleteBackupResponse) ProtoReflect() protoreflect.Message

func (*DeleteBackupResponse) Reset added in v1.6.0

func (x *DeleteBackupResponse) Reset()

func (*DeleteBackupResponse) String added in v1.6.0

func (x *DeleteBackupResponse) String() string

type GetAllBackupsRequest added in v1.6.0

type GetAllBackupsRequest struct {
	// contains filtered or unexported fields
}

func (*GetAllBackupsRequest) Descriptor deprecated added in v1.6.0

func (*GetAllBackupsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAllBackupsRequest.ProtoReflect.Descriptor instead.

func (*GetAllBackupsRequest) ProtoMessage added in v1.6.0

func (*GetAllBackupsRequest) ProtoMessage()

func (*GetAllBackupsRequest) ProtoReflect added in v1.6.0

func (x *GetAllBackupsRequest) ProtoReflect() protoreflect.Message

func (*GetAllBackupsRequest) Reset added in v1.6.0

func (x *GetAllBackupsRequest) Reset()

func (*GetAllBackupsRequest) String added in v1.6.0

func (x *GetAllBackupsRequest) String() string

type GetAllBackupsResponse added in v1.6.0

type GetAllBackupsResponse struct {
	Backups []*BackupResponse `protobuf:"bytes,1,rep,name=backups,proto3" json:"backups,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllBackupsResponse) Descriptor deprecated added in v1.6.0

func (*GetAllBackupsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAllBackupsResponse.ProtoReflect.Descriptor instead.

func (*GetAllBackupsResponse) GetBackups added in v1.6.0

func (x *GetAllBackupsResponse) GetBackups() []*BackupResponse

func (*GetAllBackupsResponse) ProtoMessage added in v1.6.0

func (*GetAllBackupsResponse) ProtoMessage()

func (*GetAllBackupsResponse) ProtoReflect added in v1.6.0

func (x *GetAllBackupsResponse) ProtoReflect() protoreflect.Message

func (*GetAllBackupsResponse) Reset added in v1.6.0

func (x *GetAllBackupsResponse) Reset()

func (*GetAllBackupsResponse) String added in v1.6.0

func (x *GetAllBackupsResponse) String() string

type GetAllRestoresRequest added in v1.6.0

type GetAllRestoresRequest struct {
	// contains filtered or unexported fields
}

func (*GetAllRestoresRequest) Descriptor deprecated added in v1.6.0

func (*GetAllRestoresRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAllRestoresRequest.ProtoReflect.Descriptor instead.

func (*GetAllRestoresRequest) ProtoMessage added in v1.6.0

func (*GetAllRestoresRequest) ProtoMessage()

func (*GetAllRestoresRequest) ProtoReflect added in v1.6.0

func (x *GetAllRestoresRequest) ProtoReflect() protoreflect.Message

func (*GetAllRestoresRequest) Reset added in v1.6.0

func (x *GetAllRestoresRequest) Reset()

func (*GetAllRestoresRequest) String added in v1.6.0

func (x *GetAllRestoresRequest) String() string

type GetAllRestoresResponse added in v1.6.0

type GetAllRestoresResponse struct {
	Restores []*RestoreResponse `protobuf:"bytes,1,rep,name=restores,proto3" json:"restores,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllRestoresResponse) Descriptor deprecated added in v1.6.0

func (*GetAllRestoresResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAllRestoresResponse.ProtoReflect.Descriptor instead.

func (*GetAllRestoresResponse) GetRestores added in v1.6.0

func (x *GetAllRestoresResponse) GetRestores() []*RestoreResponse

func (*GetAllRestoresResponse) ProtoMessage added in v1.6.0

func (*GetAllRestoresResponse) ProtoMessage()

func (*GetAllRestoresResponse) ProtoReflect added in v1.6.0

func (x *GetAllRestoresResponse) ProtoReflect() protoreflect.Message

func (*GetAllRestoresResponse) Reset added in v1.6.0

func (x *GetAllRestoresResponse) Reset()

func (*GetAllRestoresResponse) String added in v1.6.0

func (x *GetAllRestoresResponse) String() string

type GetBackupScheduleRequest added in v1.6.0

type GetBackupScheduleRequest struct {
	// contains filtered or unexported fields
}

BackupScheduleRequest contains the data which are used to retrieve the backup schedule.

func (*GetBackupScheduleRequest) Descriptor deprecated added in v1.6.0

func (*GetBackupScheduleRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetBackupScheduleRequest.ProtoReflect.Descriptor instead.

func (*GetBackupScheduleRequest) ProtoMessage added in v1.6.0

func (*GetBackupScheduleRequest) ProtoMessage()

func (*GetBackupScheduleRequest) ProtoReflect added in v1.6.0

func (x *GetBackupScheduleRequest) ProtoReflect() protoreflect.Message

func (*GetBackupScheduleRequest) Reset added in v1.6.0

func (x *GetBackupScheduleRequest) Reset()

func (*GetBackupScheduleRequest) String added in v1.6.0

func (x *GetBackupScheduleRequest) String() string

type GetBackupScheduleResponse added in v1.6.0

type GetBackupScheduleResponse struct {

	// schedule contains the backup schedule as a cron expression string.
	Schedule string `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"`
	// contains filtered or unexported fields
}

BackupScheduleResponse contains the backup schedule as a cron expression.

func (*GetBackupScheduleResponse) Descriptor deprecated added in v1.6.0

func (*GetBackupScheduleResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetBackupScheduleResponse.ProtoReflect.Descriptor instead.

func (*GetBackupScheduleResponse) GetSchedule added in v1.6.0

func (x *GetBackupScheduleResponse) GetSchedule() string

func (*GetBackupScheduleResponse) ProtoMessage added in v1.6.0

func (*GetBackupScheduleResponse) ProtoMessage()

func (*GetBackupScheduleResponse) ProtoReflect added in v1.6.0

func (*GetBackupScheduleResponse) Reset added in v1.6.0

func (x *GetBackupScheduleResponse) Reset()

func (*GetBackupScheduleResponse) String added in v1.6.0

func (x *GetBackupScheduleResponse) String() string

type GetRetentionPolicyRequest added in v1.6.0

type GetRetentionPolicyRequest struct {
	// contains filtered or unexported fields
}

GetRetentionPolicyResponse contains the data which are used to retrieve the retention policy.

func (*GetRetentionPolicyRequest) Descriptor deprecated added in v1.6.0

func (*GetRetentionPolicyRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRetentionPolicyRequest.ProtoReflect.Descriptor instead.

func (*GetRetentionPolicyRequest) ProtoMessage added in v1.6.0

func (*GetRetentionPolicyRequest) ProtoMessage()

func (*GetRetentionPolicyRequest) ProtoReflect added in v1.6.0

func (*GetRetentionPolicyRequest) Reset added in v1.6.0

func (x *GetRetentionPolicyRequest) Reset()

func (*GetRetentionPolicyRequest) String added in v1.6.0

func (x *GetRetentionPolicyRequest) String() string

type GetRetentionPolicyResponse added in v1.6.0

type GetRetentionPolicyResponse struct {

	// policy contains the current retention policy.
	Policy RetentionPolicy `protobuf:"varint,1,opt,name=policy,proto3,enum=backup.RetentionPolicy" json:"policy,omitempty"`
	// contains filtered or unexported fields
}

GetRetentionPolicyResponse contains the current backup retention policy.

func (*GetRetentionPolicyResponse) Descriptor deprecated added in v1.6.0

func (*GetRetentionPolicyResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetRetentionPolicyResponse.ProtoReflect.Descriptor instead.

func (*GetRetentionPolicyResponse) GetPolicy added in v1.6.0

func (*GetRetentionPolicyResponse) ProtoMessage added in v1.6.0

func (*GetRetentionPolicyResponse) ProtoMessage()

func (*GetRetentionPolicyResponse) ProtoReflect added in v1.6.0

func (*GetRetentionPolicyResponse) Reset added in v1.6.0

func (x *GetRetentionPolicyResponse) Reset()

func (*GetRetentionPolicyResponse) String added in v1.6.0

func (x *GetRetentionPolicyResponse) String() string

type LastSuccessfulBackupRequest

type LastSuccessfulBackupRequest struct {
	// contains filtered or unexported fields
}

LastSuccessfulBackupRequest contains the data which are used to retrieve information about the last successfully created backup.

func (*LastSuccessfulBackupRequest) Descriptor deprecated

func (*LastSuccessfulBackupRequest) Descriptor() ([]byte, []int)

Deprecated: Use LastSuccessfulBackupRequest.ProtoReflect.Descriptor instead.

func (*LastSuccessfulBackupRequest) ProtoMessage

func (*LastSuccessfulBackupRequest) ProtoMessage()

func (*LastSuccessfulBackupRequest) ProtoReflect

func (*LastSuccessfulBackupRequest) Reset

func (x *LastSuccessfulBackupRequest) Reset()

func (*LastSuccessfulBackupRequest) String

func (x *LastSuccessfulBackupRequest) String() string

type ResticCredentialResponse

type ResticCredentialResponse struct {

	// valid indicates if the restic credentials from etcd are correct
	Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	// contains filtered or unexported fields
}

ResticCredentialResponse contains information about the validity of the restic credentials from etcd.

func (*ResticCredentialResponse) Descriptor deprecated

func (*ResticCredentialResponse) Descriptor() ([]byte, []int)

Deprecated: Use ResticCredentialResponse.ProtoReflect.Descriptor instead.

func (*ResticCredentialResponse) GetValid

func (x *ResticCredentialResponse) GetValid() bool

func (*ResticCredentialResponse) ProtoMessage

func (*ResticCredentialResponse) ProtoMessage()

func (*ResticCredentialResponse) ProtoReflect

func (x *ResticCredentialResponse) ProtoReflect() protoreflect.Message

func (*ResticCredentialResponse) Reset

func (x *ResticCredentialResponse) Reset()

func (*ResticCredentialResponse) String

func (x *ResticCredentialResponse) String() string

type ResticCredentialValidRequest

type ResticCredentialValidRequest struct {
	// contains filtered or unexported fields
}

ResticCredentialValidRequest contains the data which are used to retrieve information about validity of the restic repo credentials entered into etcd.

func (*ResticCredentialValidRequest) Descriptor deprecated

func (*ResticCredentialValidRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResticCredentialValidRequest.ProtoReflect.Descriptor instead.

func (*ResticCredentialValidRequest) ProtoMessage

func (*ResticCredentialValidRequest) ProtoMessage()

func (*ResticCredentialValidRequest) ProtoReflect

func (*ResticCredentialValidRequest) Reset

func (x *ResticCredentialValidRequest) Reset()

func (*ResticCredentialValidRequest) String

type RestoreResponse added in v1.6.0

type RestoreResponse struct {

	// id contains the id of the backup associated with the restore
	BackupId string `protobuf:"bytes,1,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"`
	// start_time contains the time when the restore was started.
	StartTime string `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// success indicates if the restore was successful.
	Success bool `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"`
	// blueprint_id indicates the blueprint id of the backup the restore is based on
	BlueprintId string `protobuf:"bytes,4,opt,name=blueprint_id,json=blueprintId,proto3" json:"blueprint_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RestoreResponse) Descriptor deprecated added in v1.6.0

func (*RestoreResponse) Descriptor() ([]byte, []int)

Deprecated: Use RestoreResponse.ProtoReflect.Descriptor instead.

func (*RestoreResponse) GetBackupId added in v1.6.0

func (x *RestoreResponse) GetBackupId() string

func (*RestoreResponse) GetBlueprintId added in v1.6.0

func (x *RestoreResponse) GetBlueprintId() string

func (*RestoreResponse) GetStartTime added in v1.6.0

func (x *RestoreResponse) GetStartTime() string

func (*RestoreResponse) GetSuccess added in v1.6.0

func (x *RestoreResponse) GetSuccess() bool

func (*RestoreResponse) ProtoMessage added in v1.6.0

func (*RestoreResponse) ProtoMessage()

func (*RestoreResponse) ProtoReflect added in v1.6.0

func (x *RestoreResponse) ProtoReflect() protoreflect.Message

func (*RestoreResponse) Reset added in v1.6.0

func (x *RestoreResponse) Reset()

func (*RestoreResponse) String added in v1.6.0

func (x *RestoreResponse) String() string

type RetentionPolicy added in v1.6.0

type RetentionPolicy int32

RetentionPolicy defines the available backup retention policies.

const (
	RetentionPolicy_RETENTION_POLICY_UNSPECIFIED RetentionPolicy = 0
	// RETENTION_POLICY_KEEP_ALL keeps all backups.
	RetentionPolicy_RETENTION_POLICY_KEEP_ALL RetentionPolicy = 1
	// RETENTION_POLICY_REMOVE_ALL_BUT_KEEP_LATEST removes all backups but keeps the latest one.
	RetentionPolicy_RETENTION_POLICY_REMOVE_ALL_BUT_KEEP_LATEST RetentionPolicy = 2
	// RETENTION_POLICY_KEEP_LAST_SEVEN_DAYS keeps backups from the last seven days.
	RetentionPolicy_RETENTION_POLICY_KEEP_LAST_SEVEN_DAYS RetentionPolicy = 3
	// RETENTION_POLICY_KEEP_LAST_7_DAYS_OLDEST_OF_1_MONTH_1_QUARTER_1_HALF_YEAR_1_YEAR keeps backups from the last 7 days
	// and the oldest backup of the last month, quarter, half year, and year.
	RetentionPolicy_RETENTION_POLICY_KEEP_LAST_7_DAYS_OLDEST_OF_1_MONTH_1_QUARTER_1_HALF_YEAR_1_YEAR RetentionPolicy = 4
)

func (RetentionPolicy) Descriptor added in v1.6.0

func (RetentionPolicy) Enum added in v1.6.0

func (x RetentionPolicy) Enum() *RetentionPolicy

func (RetentionPolicy) EnumDescriptor deprecated added in v1.6.0

func (RetentionPolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use RetentionPolicy.Descriptor instead.

func (RetentionPolicy) Number added in v1.6.0

func (RetentionPolicy) String added in v1.6.0

func (x RetentionPolicy) String() string

func (RetentionPolicy) Type added in v1.6.0

type SetBackupScheduleRequest added in v1.6.0

type SetBackupScheduleRequest struct {

	// schedule contains the backup schedule as a cron expression string to be set.
	Schedule string `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"`
	// contains filtered or unexported fields
}

SetBackupScheduleRequest contains the data which are used to set the backup schedule.

func (*SetBackupScheduleRequest) Descriptor deprecated added in v1.6.0

func (*SetBackupScheduleRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetBackupScheduleRequest.ProtoReflect.Descriptor instead.

func (*SetBackupScheduleRequest) GetSchedule added in v1.6.0

func (x *SetBackupScheduleRequest) GetSchedule() string

func (*SetBackupScheduleRequest) ProtoMessage added in v1.6.0

func (*SetBackupScheduleRequest) ProtoMessage()

func (*SetBackupScheduleRequest) ProtoReflect added in v1.6.0

func (x *SetBackupScheduleRequest) ProtoReflect() protoreflect.Message

func (*SetBackupScheduleRequest) Reset added in v1.6.0

func (x *SetBackupScheduleRequest) Reset()

func (*SetBackupScheduleRequest) String added in v1.6.0

func (x *SetBackupScheduleRequest) String() string

type SetBackupScheduleResponse added in v1.6.0

type SetBackupScheduleResponse struct {
	// contains filtered or unexported fields
}

SetBackupScheduleResponse contains the result of setting the backup schedule.

func (*SetBackupScheduleResponse) Descriptor deprecated added in v1.6.0

func (*SetBackupScheduleResponse) Descriptor() ([]byte, []int)

Deprecated: Use SetBackupScheduleResponse.ProtoReflect.Descriptor instead.

func (*SetBackupScheduleResponse) ProtoMessage added in v1.6.0

func (*SetBackupScheduleResponse) ProtoMessage()

func (*SetBackupScheduleResponse) ProtoReflect added in v1.6.0

func (*SetBackupScheduleResponse) Reset added in v1.6.0

func (x *SetBackupScheduleResponse) Reset()

func (*SetBackupScheduleResponse) String added in v1.6.0

func (x *SetBackupScheduleResponse) String() string

type UnimplementedBackupManagementServer

type UnimplementedBackupManagementServer struct {
}

UnimplementedBackupManagementServer must be embedded to have forward compatible implementations.

func (UnimplementedBackupManagementServer) AllBackups added in v1.6.0

func (UnimplementedBackupManagementServer) AllRestores added in v1.6.0

func (UnimplementedBackupManagementServer) CreateBackup added in v1.6.0

func (UnimplementedBackupManagementServer) CreateRestore added in v1.6.0

func (UnimplementedBackupManagementServer) DeleteBackup added in v1.6.0

func (UnimplementedBackupManagementServer) GetRetentionPolicy added in v1.6.0

func (UnimplementedBackupManagementServer) GetSchedule added in v1.6.0

func (UnimplementedBackupManagementServer) LastSuccessful

func (UnimplementedBackupManagementServer) ResticCredValid

func (UnimplementedBackupManagementServer) SetSchedule added in v1.6.0

type UnsafeBackupManagementServer

type UnsafeBackupManagementServer interface {
	// contains filtered or unexported methods
}

UnsafeBackupManagementServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BackupManagementServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL