backup

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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,
		},
	},
	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)
}

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)
	// 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.
	Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	// success indicates if the backup was successful.
	Success bool `protobuf:"varint,5,opt,name=success,proto3" json:"success,omitempty"`
	// error_message contains a possible reason if the backup was not successful.
	ErrorMessage string `protobuf:"bytes,6,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

LastBackupResponse contains information about the last successfully created backup.

func (*BackupResponse) Descriptor deprecated

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

Deprecated: Use BackupResponse.ProtoReflect.Descriptor instead.

func (*BackupResponse) GetEndTime

func (x *BackupResponse) GetEndTime() string

func (*BackupResponse) GetErrorMessage

func (x *BackupResponse) GetErrorMessage() string

func (*BackupResponse) GetId

func (x *BackupResponse) GetId() string

func (*BackupResponse) GetStartTime

func (x *BackupResponse) GetStartTime() string

func (*BackupResponse) GetSuccess

func (x *BackupResponse) GetSuccess() bool

func (*BackupResponse) GetType

func (x *BackupResponse) GetType() string

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 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 UnimplementedBackupManagementServer

type UnimplementedBackupManagementServer struct {
}

UnimplementedBackupManagementServer must be embedded to have forward compatible implementations.

func (UnimplementedBackupManagementServer) LastSuccessful

func (UnimplementedBackupManagementServer) ResticCredValid

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