Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthenticationServer(s grpc.ServiceRegistrar, srv AuthenticationServer)
- func RegisterBackrestServer(s grpc.ServiceRegistrar, srv BackrestServer)
- type Auth
- type AuthenticationClient
- type AuthenticationServer
- type BackrestClient
- type BackrestServer
- type Backrest_GetOperationEventsClient
- type Backrest_GetOperationEventsServer
- type BackupProgressEntry
- func (*BackupProgressEntry) Descriptor() ([]byte, []int)deprecated
- func (m *BackupProgressEntry) GetEntry() isBackupProgressEntry_Entry
- func (x *BackupProgressEntry) GetStatus() *BackupProgressStatusEntry
- func (x *BackupProgressEntry) GetSummary() *BackupProgressSummary
- func (*BackupProgressEntry) ProtoMessage()
- func (x *BackupProgressEntry) ProtoReflect() protoreflect.Message
- func (x *BackupProgressEntry) Reset()
- func (x *BackupProgressEntry) String() string
- type BackupProgressEntry_Status
- type BackupProgressEntry_Summary
- type BackupProgressStatusEntry
- func (*BackupProgressStatusEntry) Descriptor() ([]byte, []int)deprecated
- func (x *BackupProgressStatusEntry) GetBytesDone() int64
- func (x *BackupProgressStatusEntry) GetCurrentFile() []string
- func (x *BackupProgressStatusEntry) GetFilesDone() int64
- func (x *BackupProgressStatusEntry) GetPercentDone() float64
- func (x *BackupProgressStatusEntry) GetTotalBytes() int64
- func (x *BackupProgressStatusEntry) GetTotalFiles() int64
- func (*BackupProgressStatusEntry) ProtoMessage()
- func (x *BackupProgressStatusEntry) ProtoReflect() protoreflect.Message
- func (x *BackupProgressStatusEntry) Reset()
- func (x *BackupProgressStatusEntry) String() string
- type BackupProgressSummary
- func (*BackupProgressSummary) Descriptor() ([]byte, []int)deprecated
- func (x *BackupProgressSummary) GetDataAdded() int64
- func (x *BackupProgressSummary) GetDataBlobs() int64
- func (x *BackupProgressSummary) GetDirsChanged() int64
- func (x *BackupProgressSummary) GetDirsNew() int64
- func (x *BackupProgressSummary) GetDirsUnmodified() int64
- func (x *BackupProgressSummary) GetFilesChanged() int64
- func (x *BackupProgressSummary) GetFilesNew() int64
- func (x *BackupProgressSummary) GetFilesUnmodified() int64
- func (x *BackupProgressSummary) GetSnapshotId() string
- func (x *BackupProgressSummary) GetTotalBytesProcessed() int64
- func (x *BackupProgressSummary) GetTotalDuration() float64
- func (x *BackupProgressSummary) GetTotalFilesProcessed() int64
- func (x *BackupProgressSummary) GetTreeBlobs() int64
- func (*BackupProgressSummary) ProtoMessage()
- func (x *BackupProgressSummary) ProtoReflect() protoreflect.Message
- func (x *BackupProgressSummary) Reset()
- func (x *BackupProgressSummary) String() string
- type ClearHistoryRequest
- func (*ClearHistoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClearHistoryRequest) GetOnlyFailed() bool
- func (x *ClearHistoryRequest) GetOps() []int64
- func (x *ClearHistoryRequest) GetPlanId() string
- func (x *ClearHistoryRequest) GetRepoId() string
- func (*ClearHistoryRequest) ProtoMessage()
- func (x *ClearHistoryRequest) ProtoReflect() protoreflect.Message
- func (x *ClearHistoryRequest) Reset()
- func (x *ClearHistoryRequest) String() string
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetAuth() *Auth
- func (x *Config) GetHost() string
- func (x *Config) GetModno() int32
- func (x *Config) GetPlans() []*Plan
- func (x *Config) GetRepos() []*Repo
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type ForgetRequest
- func (*ForgetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ForgetRequest) GetPlanId() string
- func (x *ForgetRequest) GetRepoId() string
- func (x *ForgetRequest) GetSnapshotId() string
- func (*ForgetRequest) ProtoMessage()
- func (x *ForgetRequest) ProtoReflect() protoreflect.Message
- func (x *ForgetRequest) Reset()
- func (x *ForgetRequest) String() string
- type GetOperationsRequest
- func (*GetOperationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOperationsRequest) GetIds() []int64
- func (x *GetOperationsRequest) GetLastN() int64
- func (x *GetOperationsRequest) GetPlanId() string
- func (x *GetOperationsRequest) GetRepoId() string
- func (x *GetOperationsRequest) GetSnapshotId() string
- func (*GetOperationsRequest) ProtoMessage()
- func (x *GetOperationsRequest) ProtoReflect() protoreflect.Message
- func (x *GetOperationsRequest) Reset()
- func (x *GetOperationsRequest) String() string
- type Hook
- func (*Hook) Descriptor() ([]byte, []int)deprecated
- func (m *Hook) GetAction() isHook_Action
- func (x *Hook) GetActionCommand() *Hook_Command
- func (x *Hook) GetActionDiscord() *Hook_Discord
- func (x *Hook) GetActionGotify() *Hook_Gotify
- func (x *Hook) GetActionSlack() *Hook_Slack
- func (x *Hook) GetActionWebhook() *Hook_Webhook
- func (x *Hook) GetConditions() []Hook_Condition
- func (*Hook) ProtoMessage()
- func (x *Hook) ProtoReflect() protoreflect.Message
- func (x *Hook) Reset()
- func (x *Hook) String() string
- type Hook_ActionCommand
- type Hook_ActionDiscord
- type Hook_ActionGotify
- type Hook_ActionSlack
- type Hook_ActionWebhook
- type Hook_Command
- type Hook_Condition
- func (Hook_Condition) Descriptor() protoreflect.EnumDescriptor
- func (x Hook_Condition) Enum() *Hook_Condition
- func (Hook_Condition) EnumDescriptor() ([]byte, []int)deprecated
- func (x Hook_Condition) Number() protoreflect.EnumNumber
- func (x Hook_Condition) String() string
- func (Hook_Condition) Type() protoreflect.EnumType
- type Hook_Discord
- func (*Hook_Discord) Descriptor() ([]byte, []int)deprecated
- func (x *Hook_Discord) GetTemplate() string
- func (x *Hook_Discord) GetWebhookUrl() string
- func (*Hook_Discord) ProtoMessage()
- func (x *Hook_Discord) ProtoReflect() protoreflect.Message
- func (x *Hook_Discord) Reset()
- func (x *Hook_Discord) String() string
- type Hook_Gotify
- func (*Hook_Gotify) Descriptor() ([]byte, []int)deprecated
- func (x *Hook_Gotify) GetBaseUrl() string
- func (x *Hook_Gotify) GetTemplate() string
- func (x *Hook_Gotify) GetTitleTemplate() string
- func (x *Hook_Gotify) GetToken() string
- func (*Hook_Gotify) ProtoMessage()
- func (x *Hook_Gotify) ProtoReflect() protoreflect.Message
- func (x *Hook_Gotify) Reset()
- func (x *Hook_Gotify) String() string
- type Hook_Slack
- func (*Hook_Slack) Descriptor() ([]byte, []int)deprecated
- func (x *Hook_Slack) GetTemplate() string
- func (x *Hook_Slack) GetWebhookUrl() string
- func (*Hook_Slack) ProtoMessage()
- func (x *Hook_Slack) ProtoReflect() protoreflect.Message
- func (x *Hook_Slack) Reset()
- func (x *Hook_Slack) String() string
- type Hook_Webhook
- type ListSnapshotFilesRequest
- func (*ListSnapshotFilesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSnapshotFilesRequest) GetPath() string
- func (x *ListSnapshotFilesRequest) GetRepoId() string
- func (x *ListSnapshotFilesRequest) GetSnapshotId() string
- func (*ListSnapshotFilesRequest) ProtoMessage()
- func (x *ListSnapshotFilesRequest) ProtoReflect() protoreflect.Message
- func (x *ListSnapshotFilesRequest) Reset()
- func (x *ListSnapshotFilesRequest) String() string
- type ListSnapshotFilesResponse
- func (*ListSnapshotFilesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListSnapshotFilesResponse) GetEntries() []*LsEntry
- func (x *ListSnapshotFilesResponse) GetPath() string
- func (*ListSnapshotFilesResponse) ProtoMessage()
- func (x *ListSnapshotFilesResponse) ProtoReflect() protoreflect.Message
- func (x *ListSnapshotFilesResponse) Reset()
- func (x *ListSnapshotFilesResponse) String() string
- type ListSnapshotsRequest
- func (*ListSnapshotsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListSnapshotsRequest) GetPlanId() string
- func (x *ListSnapshotsRequest) GetRepoId() string
- func (*ListSnapshotsRequest) ProtoMessage()
- func (x *ListSnapshotsRequest) ProtoReflect() protoreflect.Message
- func (x *ListSnapshotsRequest) Reset()
- func (x *ListSnapshotsRequest) String() string
- type LogDataRequest
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- type LsEntry
- func (*LsEntry) Descriptor() ([]byte, []int)deprecated
- func (x *LsEntry) GetAtime() string
- func (x *LsEntry) GetCtime() string
- func (x *LsEntry) GetGid() int64
- func (x *LsEntry) GetMode() int64
- func (x *LsEntry) GetMtime() string
- func (x *LsEntry) GetName() string
- func (x *LsEntry) GetPath() string
- func (x *LsEntry) GetSize() int64
- func (x *LsEntry) GetType() string
- func (x *LsEntry) GetUid() int64
- func (*LsEntry) ProtoMessage()
- func (x *LsEntry) ProtoReflect() protoreflect.Message
- func (x *LsEntry) Reset()
- func (x *LsEntry) String() string
- type Operation
- func (*Operation) Descriptor() ([]byte, []int)deprecated
- func (x *Operation) GetDisplayMessage() string
- func (x *Operation) GetId() int64
- func (m *Operation) GetOp() isOperation_Op
- func (x *Operation) GetOperationBackup() *OperationBackup
- func (x *Operation) GetOperationForget() *OperationForget
- func (x *Operation) GetOperationIndexSnapshot() *OperationIndexSnapshot
- func (x *Operation) GetOperationPrune() *OperationPrune
- func (x *Operation) GetOperationRestore() *OperationRestore
- func (x *Operation) GetOperationRunHook() *OperationRunHook
- func (x *Operation) GetOperationStats() *OperationStats
- func (x *Operation) GetPlanId() string
- func (x *Operation) GetRepoId() string
- func (x *Operation) GetSnapshotId() string
- func (x *Operation) GetStatus() OperationStatus
- func (x *Operation) GetUnixTimeEndMs() int64
- func (x *Operation) GetUnixTimeStartMs() int64
- func (*Operation) ProtoMessage()
- func (x *Operation) ProtoReflect() protoreflect.Message
- func (x *Operation) Reset()
- func (x *Operation) String() string
- type OperationBackup
- func (*OperationBackup) Descriptor() ([]byte, []int)deprecated
- func (x *OperationBackup) GetLastStatus() *BackupProgressEntry
- func (*OperationBackup) ProtoMessage()
- func (x *OperationBackup) ProtoReflect() protoreflect.Message
- func (x *OperationBackup) Reset()
- func (x *OperationBackup) String() string
- type OperationEvent
- func (*OperationEvent) Descriptor() ([]byte, []int)deprecated
- func (x *OperationEvent) GetOperation() *Operation
- func (x *OperationEvent) GetType() OperationEventType
- func (*OperationEvent) ProtoMessage()
- func (x *OperationEvent) ProtoReflect() protoreflect.Message
- func (x *OperationEvent) Reset()
- func (x *OperationEvent) String() string
- type OperationEventType
- func (OperationEventType) Descriptor() protoreflect.EnumDescriptor
- func (x OperationEventType) Enum() *OperationEventType
- func (OperationEventType) EnumDescriptor() ([]byte, []int)deprecated
- func (x OperationEventType) Number() protoreflect.EnumNumber
- func (x OperationEventType) String() string
- func (OperationEventType) Type() protoreflect.EnumType
- type OperationForget
- func (*OperationForget) Descriptor() ([]byte, []int)deprecated
- func (x *OperationForget) GetForget() []*ResticSnapshot
- func (x *OperationForget) GetPolicy() *RetentionPolicy
- func (*OperationForget) ProtoMessage()
- func (x *OperationForget) ProtoReflect() protoreflect.Message
- func (x *OperationForget) Reset()
- func (x *OperationForget) String() string
- type OperationIndexSnapshot
- func (*OperationIndexSnapshot) Descriptor() ([]byte, []int)deprecated
- func (x *OperationIndexSnapshot) GetForgot() bool
- func (x *OperationIndexSnapshot) GetForgotByOp() int64
- func (x *OperationIndexSnapshot) GetSnapshot() *ResticSnapshot
- func (*OperationIndexSnapshot) ProtoMessage()
- func (x *OperationIndexSnapshot) ProtoReflect() protoreflect.Message
- func (x *OperationIndexSnapshot) Reset()
- func (x *OperationIndexSnapshot) String() string
- type OperationList
- type OperationPrune
- type OperationRestore
- func (*OperationRestore) Descriptor() ([]byte, []int)deprecated
- func (x *OperationRestore) GetPath() string
- func (x *OperationRestore) GetStatus() *RestoreProgressEntry
- func (x *OperationRestore) GetTarget() string
- func (*OperationRestore) ProtoMessage()
- func (x *OperationRestore) ProtoReflect() protoreflect.Message
- func (x *OperationRestore) Reset()
- func (x *OperationRestore) String() string
- type OperationRunHook
- func (*OperationRunHook) Descriptor() ([]byte, []int)deprecated
- func (x *OperationRunHook) GetName() string
- func (x *OperationRunHook) GetOutputLogref() string
- func (*OperationRunHook) ProtoMessage()
- func (x *OperationRunHook) ProtoReflect() protoreflect.Message
- func (x *OperationRunHook) Reset()
- func (x *OperationRunHook) String() string
- type OperationStats
- type OperationStatus
- func (OperationStatus) Descriptor() protoreflect.EnumDescriptor
- func (x OperationStatus) Enum() *OperationStatus
- func (OperationStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x OperationStatus) Number() protoreflect.EnumNumber
- func (x OperationStatus) String() string
- func (OperationStatus) Type() protoreflect.EnumType
- type Operation_OperationBackup
- type Operation_OperationForget
- type Operation_OperationIndexSnapshot
- type Operation_OperationPrune
- type Operation_OperationRestore
- type Operation_OperationRunHook
- type Operation_OperationStats
- type Plan
- func (*Plan) Descriptor() ([]byte, []int)deprecated
- func (x *Plan) GetCron() string
- func (x *Plan) GetExcludes() []string
- func (x *Plan) GetHooks() []*Hook
- func (x *Plan) GetId() string
- func (x *Plan) GetPaths() []string
- func (x *Plan) GetRepo() string
- func (x *Plan) GetRetention() *RetentionPolicy
- func (*Plan) ProtoMessage()
- func (x *Plan) ProtoReflect() protoreflect.Message
- func (x *Plan) Reset()
- func (x *Plan) String() string
- type PrunePolicy
- func (*PrunePolicy) Descriptor() ([]byte, []int)deprecated
- func (x *PrunePolicy) GetMaxFrequencyDays() int32
- func (x *PrunePolicy) GetMaxUnusedBytes() int32
- func (x *PrunePolicy) GetMaxUnusedPercent() int32
- func (*PrunePolicy) ProtoMessage()
- func (x *PrunePolicy) ProtoReflect() protoreflect.Message
- func (x *PrunePolicy) Reset()
- func (x *PrunePolicy) String() string
- type Repo
- func (*Repo) Descriptor() ([]byte, []int)deprecated
- func (x *Repo) GetEnv() []string
- func (x *Repo) GetFlags() []string
- func (x *Repo) GetHooks() []*Hook
- func (x *Repo) GetId() string
- func (x *Repo) GetPassword() string
- func (x *Repo) GetPrunePolicy() *PrunePolicy
- func (x *Repo) GetUri() string
- func (*Repo) ProtoMessage()
- func (x *Repo) ProtoReflect() protoreflect.Message
- func (x *Repo) Reset()
- func (x *Repo) String() string
- type RepoStats
- func (*RepoStats) Descriptor() ([]byte, []int)deprecated
- func (x *RepoStats) GetCompressionRatio() float64
- func (x *RepoStats) GetSnapshotCount() int64
- func (x *RepoStats) GetTotalBlobCount() int64
- func (x *RepoStats) GetTotalSize() int64
- func (x *RepoStats) GetTotalUncompressedSize() int64
- func (*RepoStats) ProtoMessage()
- func (x *RepoStats) ProtoReflect() protoreflect.Message
- func (x *RepoStats) Reset()
- func (x *RepoStats) String() string
- type ResticSnapshot
- func (*ResticSnapshot) Descriptor() ([]byte, []int)deprecated
- func (x *ResticSnapshot) GetHostname() string
- func (x *ResticSnapshot) GetId() string
- func (x *ResticSnapshot) GetParent() string
- func (x *ResticSnapshot) GetPaths() []string
- func (x *ResticSnapshot) GetTags() []string
- func (x *ResticSnapshot) GetTree() string
- func (x *ResticSnapshot) GetUnixTimeMs() int64
- func (x *ResticSnapshot) GetUsername() string
- func (*ResticSnapshot) ProtoMessage()
- func (x *ResticSnapshot) ProtoReflect() protoreflect.Message
- func (x *ResticSnapshot) Reset()
- func (x *ResticSnapshot) String() string
- type ResticSnapshotList
- func (*ResticSnapshotList) Descriptor() ([]byte, []int)deprecated
- func (x *ResticSnapshotList) GetSnapshots() []*ResticSnapshot
- func (*ResticSnapshotList) ProtoMessage()
- func (x *ResticSnapshotList) ProtoReflect() protoreflect.Message
- func (x *ResticSnapshotList) Reset()
- func (x *ResticSnapshotList) String() string
- type RestoreProgressEntry
- func (*RestoreProgressEntry) Descriptor() ([]byte, []int)deprecated
- func (x *RestoreProgressEntry) GetBytesRestored() int64
- func (x *RestoreProgressEntry) GetFilesRestored() int64
- func (x *RestoreProgressEntry) GetMessageType() string
- func (x *RestoreProgressEntry) GetPercentDone() float64
- func (x *RestoreProgressEntry) GetSecondsElapsed() float64
- func (x *RestoreProgressEntry) GetTotalBytes() int64
- func (x *RestoreProgressEntry) GetTotalFiles() int64
- func (*RestoreProgressEntry) ProtoMessage()
- func (x *RestoreProgressEntry) ProtoReflect() protoreflect.Message
- func (x *RestoreProgressEntry) Reset()
- func (x *RestoreProgressEntry) String() string
- type RestoreSnapshotRequest
- func (*RestoreSnapshotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RestoreSnapshotRequest) GetPath() string
- func (x *RestoreSnapshotRequest) GetPlanId() string
- func (x *RestoreSnapshotRequest) GetSnapshotId() string
- func (x *RestoreSnapshotRequest) GetTarget() string
- func (*RestoreSnapshotRequest) ProtoMessage()
- func (x *RestoreSnapshotRequest) ProtoReflect() protoreflect.Message
- func (x *RestoreSnapshotRequest) Reset()
- func (x *RestoreSnapshotRequest) String() string
- type RetentionPolicy
- func (*RetentionPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *RetentionPolicy) GetKeepDaily() int32
- func (x *RetentionPolicy) GetKeepHourly() int32
- func (x *RetentionPolicy) GetKeepLastN() int32
- func (x *RetentionPolicy) GetKeepMonthly() int32
- func (x *RetentionPolicy) GetKeepWeekly() int32
- func (x *RetentionPolicy) GetKeepWithinDuration() string
- func (x *RetentionPolicy) GetKeepYearly() int32
- func (x *RetentionPolicy) GetMaxUnusedLimit() string
- func (*RetentionPolicy) ProtoMessage()
- func (x *RetentionPolicy) ProtoReflect() protoreflect.Message
- func (x *RetentionPolicy) Reset()
- func (x *RetentionPolicy) String() string
- type UnimplementedAuthenticationServer
- type UnimplementedBackrestServer
- func (UnimplementedBackrestServer) AddRepo(context.Context, *Repo) (*Config, error)
- func (UnimplementedBackrestServer) Backup(context.Context, *types.StringValue) (*emptypb.Empty, error)
- func (UnimplementedBackrestServer) Cancel(context.Context, *types.Int64Value) (*emptypb.Empty, error)
- func (UnimplementedBackrestServer) ClearHistory(context.Context, *ClearHistoryRequest) (*emptypb.Empty, error)
- func (UnimplementedBackrestServer) Forget(context.Context, *ForgetRequest) (*emptypb.Empty, error)
- func (UnimplementedBackrestServer) GetConfig(context.Context, *emptypb.Empty) (*Config, error)
- func (UnimplementedBackrestServer) GetLogs(context.Context, *LogDataRequest) (*types.BytesValue, error)
- func (UnimplementedBackrestServer) GetOperationEvents(*emptypb.Empty, Backrest_GetOperationEventsServer) error
- func (UnimplementedBackrestServer) GetOperations(context.Context, *GetOperationsRequest) (*OperationList, error)
- func (UnimplementedBackrestServer) IndexSnapshots(context.Context, *types.StringValue) (*emptypb.Empty, error)
- func (UnimplementedBackrestServer) ListSnapshotFiles(context.Context, *ListSnapshotFilesRequest) (*ListSnapshotFilesResponse, error)
- func (UnimplementedBackrestServer) ListSnapshots(context.Context, *ListSnapshotsRequest) (*ResticSnapshotList, error)
- func (UnimplementedBackrestServer) PathAutocomplete(context.Context, *types.StringValue) (*types.StringList, error)
- func (UnimplementedBackrestServer) Prune(context.Context, *types.StringValue) (*emptypb.Empty, error)
- func (UnimplementedBackrestServer) Restore(context.Context, *RestoreSnapshotRequest) (*emptypb.Empty, error)
- func (UnimplementedBackrestServer) SetConfig(context.Context, *Config) (*Config, error)
- func (UnimplementedBackrestServer) Stats(context.Context, *types.StringValue) (*emptypb.Empty, error)
- func (UnimplementedBackrestServer) Unlock(context.Context, *types.StringValue) (*emptypb.Empty, error)
- type UnsafeAuthenticationServer
- type UnsafeBackrestServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetName() string
- func (m *User) GetPassword() isUser_Password
- func (x *User) GetPasswordBcrypt() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type User_PasswordBcrypt
Constants ¶
const ( Authentication_Login_FullMethodName = "/v1.Authentication/Login" Authentication_HashPassword_FullMethodName = "/v1.Authentication/HashPassword" )
const ( Backrest_GetConfig_FullMethodName = "/v1.Backrest/GetConfig" Backrest_SetConfig_FullMethodName = "/v1.Backrest/SetConfig" Backrest_AddRepo_FullMethodName = "/v1.Backrest/AddRepo" Backrest_GetOperationEvents_FullMethodName = "/v1.Backrest/GetOperationEvents" Backrest_GetOperations_FullMethodName = "/v1.Backrest/GetOperations" Backrest_ListSnapshots_FullMethodName = "/v1.Backrest/ListSnapshots" Backrest_ListSnapshotFiles_FullMethodName = "/v1.Backrest/ListSnapshotFiles" Backrest_IndexSnapshots_FullMethodName = "/v1.Backrest/IndexSnapshots" Backrest_Backup_FullMethodName = "/v1.Backrest/Backup" Backrest_Prune_FullMethodName = "/v1.Backrest/Prune" Backrest_Forget_FullMethodName = "/v1.Backrest/Forget" Backrest_Restore_FullMethodName = "/v1.Backrest/Restore" Backrest_Unlock_FullMethodName = "/v1.Backrest/Unlock" Backrest_Stats_FullMethodName = "/v1.Backrest/Stats" Backrest_Cancel_FullMethodName = "/v1.Backrest/Cancel" Backrest_GetLogs_FullMethodName = "/v1.Backrest/GetLogs" Backrest_ClearHistory_FullMethodName = "/v1.Backrest/ClearHistory" Backrest_PathAutocomplete_FullMethodName = "/v1.Backrest/PathAutocomplete" )
Variables ¶
var ( Hook_Condition_name = map[int32]string{ 0: "CONDITION_UNKNOWN", 1: "CONDITION_ANY_ERROR", 2: "CONDITION_SNAPSHOT_START", 3: "CONDITION_SNAPSHOT_END", 4: "CONDITION_SNAPSHOT_ERROR", } Hook_Condition_value = map[string]int32{ "CONDITION_UNKNOWN": 0, "CONDITION_ANY_ERROR": 1, "CONDITION_SNAPSHOT_START": 2, "CONDITION_SNAPSHOT_END": 3, "CONDITION_SNAPSHOT_ERROR": 4, } )
Enum value maps for Hook_Condition.
var ( OperationEventType_name = map[int32]string{ 0: "EVENT_UNKNOWN", 1: "EVENT_CREATED", 2: "EVENT_UPDATED", 3: "EVENT_DELETED", } OperationEventType_value = map[string]int32{ "EVENT_UNKNOWN": 0, "EVENT_CREATED": 1, "EVENT_UPDATED": 2, "EVENT_DELETED": 3, } )
Enum value maps for OperationEventType.
var ( OperationStatus_name = map[int32]string{ 0: "STATUS_UNKNOWN", 1: "STATUS_PENDING", 2: "STATUS_INPROGRESS", 3: "STATUS_SUCCESS", 7: "STATUS_WARNING", 4: "STATUS_ERROR", 5: "STATUS_SYSTEM_CANCELLED", 6: "STATUS_USER_CANCELLED", } OperationStatus_value = map[string]int32{ "STATUS_UNKNOWN": 0, "STATUS_PENDING": 1, "STATUS_INPROGRESS": 2, "STATUS_SUCCESS": 3, "STATUS_WARNING": 7, "STATUS_ERROR": 4, "STATUS_SYSTEM_CANCELLED": 5, "STATUS_USER_CANCELLED": 6, } )
Enum value maps for OperationStatus.
var Authentication_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.Authentication", HandlerType: (*AuthenticationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _Authentication_Login_Handler, }, { MethodName: "HashPassword", Handler: _Authentication_HashPassword_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "v1/authentication.proto", }
Authentication_ServiceDesc is the grpc.ServiceDesc for Authentication service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Backrest_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.Backrest", HandlerType: (*BackrestServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetConfig", Handler: _Backrest_GetConfig_Handler, }, { MethodName: "SetConfig", Handler: _Backrest_SetConfig_Handler, }, { MethodName: "AddRepo", Handler: _Backrest_AddRepo_Handler, }, { MethodName: "GetOperations", Handler: _Backrest_GetOperations_Handler, }, { MethodName: "ListSnapshots", Handler: _Backrest_ListSnapshots_Handler, }, { MethodName: "ListSnapshotFiles", Handler: _Backrest_ListSnapshotFiles_Handler, }, { MethodName: "IndexSnapshots", Handler: _Backrest_IndexSnapshots_Handler, }, { MethodName: "Backup", Handler: _Backrest_Backup_Handler, }, { MethodName: "Prune", Handler: _Backrest_Prune_Handler, }, { MethodName: "Forget", Handler: _Backrest_Forget_Handler, }, { MethodName: "Restore", Handler: _Backrest_Restore_Handler, }, { MethodName: "Unlock", Handler: _Backrest_Unlock_Handler, }, { MethodName: "Stats", Handler: _Backrest_Stats_Handler, }, { MethodName: "Cancel", Handler: _Backrest_Cancel_Handler, }, { MethodName: "GetLogs", Handler: _Backrest_GetLogs_Handler, }, { MethodName: "ClearHistory", Handler: _Backrest_ClearHistory_Handler, }, { MethodName: "PathAutocomplete", Handler: _Backrest_PathAutocomplete_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetOperationEvents", Handler: _Backrest_GetOperationEvents_Handler, ServerStreams: true, }, }, Metadata: "v1/service.proto", }
Backrest_ServiceDesc is the grpc.ServiceDesc for Backrest service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_v1_authentication_proto protoreflect.FileDescriptor
var File_v1_config_proto protoreflect.FileDescriptor
var File_v1_operations_proto protoreflect.FileDescriptor
var File_v1_restic_proto protoreflect.FileDescriptor
var File_v1_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthenticationServer ¶ added in v0.11.0
func RegisterAuthenticationServer(s grpc.ServiceRegistrar, srv AuthenticationServer)
func RegisterBackrestServer ¶
func RegisterBackrestServer(s grpc.ServiceRegistrar, srv BackrestServer)
Types ¶
type Auth ¶ added in v0.11.0
type Auth struct { Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` // users to allow access to the UI. // contains filtered or unexported fields }
func (*Auth) Descriptor
deprecated
added in
v0.11.0
func (*Auth) ProtoMessage ¶ added in v0.11.0
func (*Auth) ProtoMessage()
func (*Auth) ProtoReflect ¶ added in v0.11.0
func (x *Auth) ProtoReflect() protoreflect.Message
type AuthenticationClient ¶ added in v0.11.0
type AuthenticationClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) HashPassword(ctx context.Context, in *types.StringValue, opts ...grpc.CallOption) (*types.StringValue, error) }
AuthenticationClient is the client API for Authentication 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.
func NewAuthenticationClient ¶ added in v0.11.0
func NewAuthenticationClient(cc grpc.ClientConnInterface) AuthenticationClient
type AuthenticationServer ¶ added in v0.11.0
type AuthenticationServer interface { Login(context.Context, *LoginRequest) (*LoginResponse, error) HashPassword(context.Context, *types.StringValue) (*types.StringValue, error) // contains filtered or unexported methods }
AuthenticationServer is the server API for Authentication service. All implementations must embed UnimplementedAuthenticationServer for forward compatibility
type BackrestClient ¶
type BackrestClient interface { GetConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Config, error) SetConfig(ctx context.Context, in *Config, opts ...grpc.CallOption) (*Config, error) AddRepo(ctx context.Context, in *Repo, opts ...grpc.CallOption) (*Config, error) GetOperationEvents(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Backrest_GetOperationEventsClient, error) GetOperations(ctx context.Context, in *GetOperationsRequest, opts ...grpc.CallOption) (*OperationList, error) ListSnapshots(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (*ResticSnapshotList, error) ListSnapshotFiles(ctx context.Context, in *ListSnapshotFilesRequest, opts ...grpc.CallOption) (*ListSnapshotFilesResponse, error) // IndexSnapshots triggers indexin. It accepts a repo id and returns empty if the task is enqueued. IndexSnapshots(ctx context.Context, in *types.StringValue, opts ...grpc.CallOption) (*emptypb.Empty, error) // Backup schedules a backup operation. It accepts a plan id and returns empty if the task is enqueued. Backup(ctx context.Context, in *types.StringValue, opts ...grpc.CallOption) (*emptypb.Empty, error) // Prune schedules a prune operation. It accepts a plan id and returns empty if the task is enqueued. Prune(ctx context.Context, in *types.StringValue, opts ...grpc.CallOption) (*emptypb.Empty, error) // Forget schedules a forget operation. It accepts a plan id and returns empty if the task is enqueued. Forget(ctx context.Context, in *ForgetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Restore schedules a restore operation. Restore(ctx context.Context, in *RestoreSnapshotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Unlock synchronously attempts to unlock the repo. Will block if other operations are in progress. Unlock(ctx context.Context, in *types.StringValue, opts ...grpc.CallOption) (*emptypb.Empty, error) // Stats runs 'restic stats` on the repository and appends the results to the operations log. Stats(ctx context.Context, in *types.StringValue, opts ...grpc.CallOption) (*emptypb.Empty, error) // Cancel attempts to cancel a task with the given operation ID. Not guaranteed to succeed. Cancel(ctx context.Context, in *types.Int64Value, opts ...grpc.CallOption) (*emptypb.Empty, error) // GetBigOperationData returns the keyed large data for the given operation. GetLogs(ctx context.Context, in *LogDataRequest, opts ...grpc.CallOption) (*types.BytesValue, error) // Clears the history of operations ClearHistory(ctx context.Context, in *ClearHistoryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // PathAutocomplete provides path autocompletion options for a given filesystem path. PathAutocomplete(ctx context.Context, in *types.StringValue, opts ...grpc.CallOption) (*types.StringList, error) }
BackrestClient is the client API for Backrest 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.
func NewBackrestClient ¶
func NewBackrestClient(cc grpc.ClientConnInterface) BackrestClient
type BackrestServer ¶
type BackrestServer interface { GetConfig(context.Context, *emptypb.Empty) (*Config, error) SetConfig(context.Context, *Config) (*Config, error) AddRepo(context.Context, *Repo) (*Config, error) GetOperationEvents(*emptypb.Empty, Backrest_GetOperationEventsServer) error GetOperations(context.Context, *GetOperationsRequest) (*OperationList, error) ListSnapshots(context.Context, *ListSnapshotsRequest) (*ResticSnapshotList, error) ListSnapshotFiles(context.Context, *ListSnapshotFilesRequest) (*ListSnapshotFilesResponse, error) // IndexSnapshots triggers indexin. It accepts a repo id and returns empty if the task is enqueued. IndexSnapshots(context.Context, *types.StringValue) (*emptypb.Empty, error) // Backup schedules a backup operation. It accepts a plan id and returns empty if the task is enqueued. Backup(context.Context, *types.StringValue) (*emptypb.Empty, error) // Prune schedules a prune operation. It accepts a plan id and returns empty if the task is enqueued. Prune(context.Context, *types.StringValue) (*emptypb.Empty, error) // Forget schedules a forget operation. It accepts a plan id and returns empty if the task is enqueued. Forget(context.Context, *ForgetRequest) (*emptypb.Empty, error) // Restore schedules a restore operation. Restore(context.Context, *RestoreSnapshotRequest) (*emptypb.Empty, error) // Unlock synchronously attempts to unlock the repo. Will block if other operations are in progress. Unlock(context.Context, *types.StringValue) (*emptypb.Empty, error) // Stats runs 'restic stats` on the repository and appends the results to the operations log. Stats(context.Context, *types.StringValue) (*emptypb.Empty, error) // Cancel attempts to cancel a task with the given operation ID. Not guaranteed to succeed. Cancel(context.Context, *types.Int64Value) (*emptypb.Empty, error) // GetBigOperationData returns the keyed large data for the given operation. GetLogs(context.Context, *LogDataRequest) (*types.BytesValue, error) // Clears the history of operations ClearHistory(context.Context, *ClearHistoryRequest) (*emptypb.Empty, error) // PathAutocomplete provides path autocompletion options for a given filesystem path. PathAutocomplete(context.Context, *types.StringValue) (*types.StringList, error) // contains filtered or unexported methods }
BackrestServer is the server API for Backrest service. All implementations must embed UnimplementedBackrestServer for forward compatibility
type Backrest_GetOperationEventsClient ¶
type Backrest_GetOperationEventsClient interface { Recv() (*OperationEvent, error) grpc.ClientStream }
type Backrest_GetOperationEventsServer ¶
type Backrest_GetOperationEventsServer interface { Send(*OperationEvent) error grpc.ServerStream }
type BackupProgressEntry ¶
type BackupProgressEntry struct { // Types that are assignable to Entry: // // *BackupProgressEntry_Status // *BackupProgressEntry_Summary Entry isBackupProgressEntry_Entry `protobuf_oneof:"entry"` // contains filtered or unexported fields }
BackupProgressEntriy represents a single entry in the backup progress stream.
func (*BackupProgressEntry) Descriptor
deprecated
func (*BackupProgressEntry) Descriptor() ([]byte, []int)
Deprecated: Use BackupProgressEntry.ProtoReflect.Descriptor instead.
func (*BackupProgressEntry) GetEntry ¶
func (m *BackupProgressEntry) GetEntry() isBackupProgressEntry_Entry
func (*BackupProgressEntry) GetStatus ¶
func (x *BackupProgressEntry) GetStatus() *BackupProgressStatusEntry
func (*BackupProgressEntry) GetSummary ¶
func (x *BackupProgressEntry) GetSummary() *BackupProgressSummary
func (*BackupProgressEntry) ProtoMessage ¶
func (*BackupProgressEntry) ProtoMessage()
func (*BackupProgressEntry) ProtoReflect ¶
func (x *BackupProgressEntry) ProtoReflect() protoreflect.Message
func (*BackupProgressEntry) Reset ¶
func (x *BackupProgressEntry) Reset()
func (*BackupProgressEntry) String ¶
func (x *BackupProgressEntry) String() string
type BackupProgressEntry_Status ¶
type BackupProgressEntry_Status struct {
Status *BackupProgressStatusEntry `protobuf:"bytes,1,opt,name=status,proto3,oneof"`
}
type BackupProgressEntry_Summary ¶
type BackupProgressEntry_Summary struct {
Summary *BackupProgressSummary `protobuf:"bytes,2,opt,name=summary,proto3,oneof"`
}
type BackupProgressStatusEntry ¶
type BackupProgressStatusEntry struct { PercentDone float64 `protobuf:"fixed64,1,opt,name=percent_done,json=percentDone,proto3" json:"percent_done,omitempty"` // 0.0 - 1.0 TotalFiles int64 `protobuf:"varint,2,opt,name=total_files,json=totalFiles,proto3" json:"total_files,omitempty"` TotalBytes int64 `protobuf:"varint,3,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"` FilesDone int64 `protobuf:"varint,4,opt,name=files_done,json=filesDone,proto3" json:"files_done,omitempty"` BytesDone int64 `protobuf:"varint,5,opt,name=bytes_done,json=bytesDone,proto3" json:"bytes_done,omitempty"` CurrentFile []string `protobuf:"bytes,6,rep,name=current_file,json=currentFile,proto3" json:"current_file,omitempty"` // contains filtered or unexported fields }
BackupProgressStatusEntry represents a single status entry in the backup progress stream.
func (*BackupProgressStatusEntry) Descriptor
deprecated
func (*BackupProgressStatusEntry) Descriptor() ([]byte, []int)
Deprecated: Use BackupProgressStatusEntry.ProtoReflect.Descriptor instead.
func (*BackupProgressStatusEntry) GetBytesDone ¶
func (x *BackupProgressStatusEntry) GetBytesDone() int64
func (*BackupProgressStatusEntry) GetCurrentFile ¶
func (x *BackupProgressStatusEntry) GetCurrentFile() []string
func (*BackupProgressStatusEntry) GetFilesDone ¶
func (x *BackupProgressStatusEntry) GetFilesDone() int64
func (*BackupProgressStatusEntry) GetPercentDone ¶
func (x *BackupProgressStatusEntry) GetPercentDone() float64
func (*BackupProgressStatusEntry) GetTotalBytes ¶
func (x *BackupProgressStatusEntry) GetTotalBytes() int64
func (*BackupProgressStatusEntry) GetTotalFiles ¶
func (x *BackupProgressStatusEntry) GetTotalFiles() int64
func (*BackupProgressStatusEntry) ProtoMessage ¶
func (*BackupProgressStatusEntry) ProtoMessage()
func (*BackupProgressStatusEntry) ProtoReflect ¶
func (x *BackupProgressStatusEntry) ProtoReflect() protoreflect.Message
func (*BackupProgressStatusEntry) Reset ¶
func (x *BackupProgressStatusEntry) Reset()
func (*BackupProgressStatusEntry) String ¶
func (x *BackupProgressStatusEntry) String() string
type BackupProgressSummary ¶
type BackupProgressSummary struct { FilesNew int64 `protobuf:"varint,1,opt,name=files_new,json=filesNew,proto3" json:"files_new,omitempty"` FilesChanged int64 `protobuf:"varint,2,opt,name=files_changed,json=filesChanged,proto3" json:"files_changed,omitempty"` FilesUnmodified int64 `protobuf:"varint,3,opt,name=files_unmodified,json=filesUnmodified,proto3" json:"files_unmodified,omitempty"` DirsNew int64 `protobuf:"varint,4,opt,name=dirs_new,json=dirsNew,proto3" json:"dirs_new,omitempty"` DirsChanged int64 `protobuf:"varint,5,opt,name=dirs_changed,json=dirsChanged,proto3" json:"dirs_changed,omitempty"` DirsUnmodified int64 `protobuf:"varint,6,opt,name=dirs_unmodified,json=dirsUnmodified,proto3" json:"dirs_unmodified,omitempty"` DataBlobs int64 `protobuf:"varint,7,opt,name=data_blobs,json=dataBlobs,proto3" json:"data_blobs,omitempty"` TreeBlobs int64 `protobuf:"varint,8,opt,name=tree_blobs,json=treeBlobs,proto3" json:"tree_blobs,omitempty"` DataAdded int64 `protobuf:"varint,9,opt,name=data_added,json=dataAdded,proto3" json:"data_added,omitempty"` TotalFilesProcessed int64 `protobuf:"varint,10,opt,name=total_files_processed,json=totalFilesProcessed,proto3" json:"total_files_processed,omitempty"` TotalBytesProcessed int64 `protobuf:"varint,11,opt,name=total_bytes_processed,json=totalBytesProcessed,proto3" json:"total_bytes_processed,omitempty"` TotalDuration float64 `protobuf:"fixed64,12,opt,name=total_duration,json=totalDuration,proto3" json:"total_duration,omitempty"` SnapshotId string `protobuf:"bytes,13,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"` // contains filtered or unexported fields }
BackupProgressSummary represents a the summary event emitted at the end of a backup stream.
func (*BackupProgressSummary) Descriptor
deprecated
func (*BackupProgressSummary) Descriptor() ([]byte, []int)
Deprecated: Use BackupProgressSummary.ProtoReflect.Descriptor instead.
func (*BackupProgressSummary) GetDataAdded ¶
func (x *BackupProgressSummary) GetDataAdded() int64
func (*BackupProgressSummary) GetDataBlobs ¶
func (x *BackupProgressSummary) GetDataBlobs() int64
func (*BackupProgressSummary) GetDirsChanged ¶
func (x *BackupProgressSummary) GetDirsChanged() int64
func (*BackupProgressSummary) GetDirsNew ¶
func (x *BackupProgressSummary) GetDirsNew() int64
func (*BackupProgressSummary) GetDirsUnmodified ¶
func (x *BackupProgressSummary) GetDirsUnmodified() int64
func (*BackupProgressSummary) GetFilesChanged ¶
func (x *BackupProgressSummary) GetFilesChanged() int64
func (*BackupProgressSummary) GetFilesNew ¶
func (x *BackupProgressSummary) GetFilesNew() int64
func (*BackupProgressSummary) GetFilesUnmodified ¶
func (x *BackupProgressSummary) GetFilesUnmodified() int64
func (*BackupProgressSummary) GetSnapshotId ¶
func (x *BackupProgressSummary) GetSnapshotId() string
func (*BackupProgressSummary) GetTotalBytesProcessed ¶
func (x *BackupProgressSummary) GetTotalBytesProcessed() int64
func (*BackupProgressSummary) GetTotalDuration ¶
func (x *BackupProgressSummary) GetTotalDuration() float64
func (*BackupProgressSummary) GetTotalFilesProcessed ¶
func (x *BackupProgressSummary) GetTotalFilesProcessed() int64
func (*BackupProgressSummary) GetTreeBlobs ¶
func (x *BackupProgressSummary) GetTreeBlobs() int64
func (*BackupProgressSummary) ProtoMessage ¶
func (*BackupProgressSummary) ProtoMessage()
func (*BackupProgressSummary) ProtoReflect ¶
func (x *BackupProgressSummary) ProtoReflect() protoreflect.Message
func (*BackupProgressSummary) Reset ¶
func (x *BackupProgressSummary) Reset()
func (*BackupProgressSummary) String ¶
func (x *BackupProgressSummary) String() string
type ClearHistoryRequest ¶
type ClearHistoryRequest struct { 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"` OnlyFailed bool `protobuf:"varint,3,opt,name=only_failed,json=onlyFailed,proto3" json:"only_failed,omitempty"` Ops []int64 `protobuf:"varint,4,rep,packed,name=ops,proto3" json:"ops,omitempty"` // contains filtered or unexported fields }
func (*ClearHistoryRequest) Descriptor
deprecated
func (*ClearHistoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClearHistoryRequest.ProtoReflect.Descriptor instead.
func (*ClearHistoryRequest) GetOnlyFailed ¶
func (x *ClearHistoryRequest) GetOnlyFailed() bool
func (*ClearHistoryRequest) GetOps ¶ added in v0.12.0
func (x *ClearHistoryRequest) GetOps() []int64
func (*ClearHistoryRequest) GetPlanId ¶
func (x *ClearHistoryRequest) GetPlanId() string
func (*ClearHistoryRequest) GetRepoId ¶
func (x *ClearHistoryRequest) GetRepoId() string
func (*ClearHistoryRequest) ProtoMessage ¶
func (*ClearHistoryRequest) ProtoMessage()
func (*ClearHistoryRequest) ProtoReflect ¶
func (x *ClearHistoryRequest) ProtoReflect() protoreflect.Message
func (*ClearHistoryRequest) Reset ¶
func (x *ClearHistoryRequest) Reset()
func (*ClearHistoryRequest) String ¶
func (x *ClearHistoryRequest) String() string
type Config ¶
type Config struct { // modification number, used for read-modify-write consistency in the UI. Incremented on every write. Modno int32 `protobuf:"varint,1,opt,name=modno,proto3" json:"modno,omitempty"` // override the hostname tagged on backups. If provided it will be used in addition to tags to group backups. Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Repos []*Repo `protobuf:"bytes,3,rep,name=repos,proto3" json:"repos,omitempty"` Plans []*Plan `protobuf:"bytes,4,rep,name=plans,proto3" json:"plans,omitempty"` Auth *Auth `protobuf:"bytes,5,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
Config is the top level config object for restic UI.
func (*Config) Descriptor
deprecated
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type ForgetRequest ¶ added in v0.12.0
type ForgetRequest struct { 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"` // contains filtered or unexported fields }
func (*ForgetRequest) Descriptor
deprecated
added in
v0.12.0
func (*ForgetRequest) Descriptor() ([]byte, []int)
Deprecated: Use ForgetRequest.ProtoReflect.Descriptor instead.
func (*ForgetRequest) GetPlanId ¶ added in v0.12.0
func (x *ForgetRequest) GetPlanId() string
func (*ForgetRequest) GetRepoId ¶ added in v0.12.0
func (x *ForgetRequest) GetRepoId() string
func (*ForgetRequest) GetSnapshotId ¶ added in v0.12.0
func (x *ForgetRequest) GetSnapshotId() string
func (*ForgetRequest) ProtoMessage ¶ added in v0.12.0
func (*ForgetRequest) ProtoMessage()
func (*ForgetRequest) ProtoReflect ¶ added in v0.12.0
func (x *ForgetRequest) ProtoReflect() protoreflect.Message
func (*ForgetRequest) Reset ¶ added in v0.12.0
func (x *ForgetRequest) Reset()
func (*ForgetRequest) String ¶ added in v0.12.0
func (x *ForgetRequest) String() string
type GetOperationsRequest ¶
type GetOperationsRequest struct { 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,4,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"` Ids []int64 `protobuf:"varint,5,rep,packed,name=ids,proto3" json:"ids,omitempty"` LastN int64 `protobuf:"varint,3,opt,name=last_n,json=lastN,proto3" json:"last_n,omitempty"` // limit to the last n operations // contains filtered or unexported fields }
func (*GetOperationsRequest) Descriptor
deprecated
func (*GetOperationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOperationsRequest.ProtoReflect.Descriptor instead.
func (*GetOperationsRequest) GetIds ¶
func (x *GetOperationsRequest) GetIds() []int64
func (*GetOperationsRequest) GetLastN ¶
func (x *GetOperationsRequest) GetLastN() int64
func (*GetOperationsRequest) GetPlanId ¶
func (x *GetOperationsRequest) GetPlanId() string
func (*GetOperationsRequest) GetRepoId ¶
func (x *GetOperationsRequest) GetRepoId() string
func (*GetOperationsRequest) GetSnapshotId ¶
func (x *GetOperationsRequest) GetSnapshotId() string
func (*GetOperationsRequest) ProtoMessage ¶
func (*GetOperationsRequest) ProtoMessage()
func (*GetOperationsRequest) ProtoReflect ¶
func (x *GetOperationsRequest) ProtoReflect() protoreflect.Message
func (*GetOperationsRequest) Reset ¶
func (x *GetOperationsRequest) Reset()
func (*GetOperationsRequest) String ¶
func (x *GetOperationsRequest) String() string
type Hook ¶ added in v0.11.0
type Hook struct { Conditions []Hook_Condition `protobuf:"varint,1,rep,packed,name=conditions,proto3,enum=v1.Hook_Condition" json:"conditions,omitempty"` // Types that are assignable to Action: // // *Hook_ActionCommand // *Hook_ActionWebhook // *Hook_ActionDiscord // *Hook_ActionGotify // *Hook_ActionSlack Action isHook_Action `protobuf_oneof:"action"` // contains filtered or unexported fields }
func (*Hook) Descriptor
deprecated
added in
v0.11.0
func (*Hook) GetActionCommand ¶ added in v0.11.0
func (x *Hook) GetActionCommand() *Hook_Command
func (*Hook) GetActionDiscord ¶ added in v0.11.0
func (x *Hook) GetActionDiscord() *Hook_Discord
func (*Hook) GetActionGotify ¶ added in v0.11.0
func (x *Hook) GetActionGotify() *Hook_Gotify
func (*Hook) GetActionSlack ¶ added in v0.12.0
func (x *Hook) GetActionSlack() *Hook_Slack
func (*Hook) GetActionWebhook ¶ added in v0.11.0
func (x *Hook) GetActionWebhook() *Hook_Webhook
func (*Hook) GetConditions ¶ added in v0.11.0
func (x *Hook) GetConditions() []Hook_Condition
func (*Hook) ProtoMessage ¶ added in v0.11.0
func (*Hook) ProtoMessage()
func (*Hook) ProtoReflect ¶ added in v0.11.0
func (x *Hook) ProtoReflect() protoreflect.Message
type Hook_ActionCommand ¶ added in v0.11.0
type Hook_ActionCommand struct {
ActionCommand *Hook_Command `protobuf:"bytes,100,opt,name=action_command,json=actionCommand,proto3,oneof"`
}
type Hook_ActionDiscord ¶ added in v0.11.0
type Hook_ActionDiscord struct {
ActionDiscord *Hook_Discord `protobuf:"bytes,102,opt,name=action_discord,json=actionDiscord,proto3,oneof"`
}
type Hook_ActionGotify ¶ added in v0.11.0
type Hook_ActionGotify struct {
ActionGotify *Hook_Gotify `protobuf:"bytes,103,opt,name=action_gotify,json=actionGotify,proto3,oneof"`
}
type Hook_ActionSlack ¶ added in v0.12.0
type Hook_ActionSlack struct {
ActionSlack *Hook_Slack `protobuf:"bytes,104,opt,name=action_slack,json=actionSlack,proto3,oneof"`
}
type Hook_ActionWebhook ¶ added in v0.11.0
type Hook_ActionWebhook struct {
ActionWebhook *Hook_Webhook `protobuf:"bytes,101,opt,name=action_webhook,json=actionWebhook,proto3,oneof"`
}
type Hook_Command ¶ added in v0.11.0
type Hook_Command struct { Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` // contains filtered or unexported fields }
func (*Hook_Command) Descriptor
deprecated
added in
v0.11.0
func (*Hook_Command) Descriptor() ([]byte, []int)
Deprecated: Use Hook_Command.ProtoReflect.Descriptor instead.
func (*Hook_Command) GetCommand ¶ added in v0.11.0
func (x *Hook_Command) GetCommand() string
func (*Hook_Command) ProtoMessage ¶ added in v0.11.0
func (*Hook_Command) ProtoMessage()
func (*Hook_Command) ProtoReflect ¶ added in v0.11.0
func (x *Hook_Command) ProtoReflect() protoreflect.Message
func (*Hook_Command) Reset ¶ added in v0.11.0
func (x *Hook_Command) Reset()
func (*Hook_Command) String ¶ added in v0.11.0
func (x *Hook_Command) String() string
type Hook_Condition ¶ added in v0.11.0
type Hook_Condition int32
const ( Hook_CONDITION_UNKNOWN Hook_Condition = 0 Hook_CONDITION_ANY_ERROR Hook_Condition = 1 // error running any operation. Hook_CONDITION_SNAPSHOT_START Hook_Condition = 2 // backup started. Hook_CONDITION_SNAPSHOT_END Hook_Condition = 3 // backup completed (success or fail). Hook_CONDITION_SNAPSHOT_ERROR Hook_Condition = 4 // snapshot failed. )
func (Hook_Condition) Descriptor ¶ added in v0.11.0
func (Hook_Condition) Descriptor() protoreflect.EnumDescriptor
func (Hook_Condition) Enum ¶ added in v0.11.0
func (x Hook_Condition) Enum() *Hook_Condition
func (Hook_Condition) EnumDescriptor
deprecated
added in
v0.11.0
func (Hook_Condition) EnumDescriptor() ([]byte, []int)
Deprecated: Use Hook_Condition.Descriptor instead.
func (Hook_Condition) Number ¶ added in v0.11.0
func (x Hook_Condition) Number() protoreflect.EnumNumber
func (Hook_Condition) String ¶ added in v0.11.0
func (x Hook_Condition) String() string
func (Hook_Condition) Type ¶ added in v0.11.0
func (Hook_Condition) Type() protoreflect.EnumType
type Hook_Discord ¶ added in v0.11.0
type Hook_Discord struct { WebhookUrl string `protobuf:"bytes,1,opt,name=webhook_url,json=webhookUrl,proto3" json:"webhook_url,omitempty"` Template string `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` // template for the webhook payload. // contains filtered or unexported fields }
func (*Hook_Discord) Descriptor
deprecated
added in
v0.11.0
func (*Hook_Discord) Descriptor() ([]byte, []int)
Deprecated: Use Hook_Discord.ProtoReflect.Descriptor instead.
func (*Hook_Discord) GetTemplate ¶ added in v0.11.0
func (x *Hook_Discord) GetTemplate() string
func (*Hook_Discord) GetWebhookUrl ¶ added in v0.11.0
func (x *Hook_Discord) GetWebhookUrl() string
func (*Hook_Discord) ProtoMessage ¶ added in v0.11.0
func (*Hook_Discord) ProtoMessage()
func (*Hook_Discord) ProtoReflect ¶ added in v0.11.0
func (x *Hook_Discord) ProtoReflect() protoreflect.Message
func (*Hook_Discord) Reset ¶ added in v0.11.0
func (x *Hook_Discord) Reset()
func (*Hook_Discord) String ¶ added in v0.11.0
func (x *Hook_Discord) String() string
type Hook_Gotify ¶ added in v0.11.0
type Hook_Gotify struct { BaseUrl string `protobuf:"bytes,1,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` Template string `protobuf:"bytes,100,opt,name=template,proto3" json:"template,omitempty"` // template for the webhook payload. TitleTemplate string `protobuf:"bytes,101,opt,name=title_template,json=titleTemplate,proto3" json:"title_template,omitempty"` // template for the webhook title. // contains filtered or unexported fields }
func (*Hook_Gotify) Descriptor
deprecated
added in
v0.11.0
func (*Hook_Gotify) Descriptor() ([]byte, []int)
Deprecated: Use Hook_Gotify.ProtoReflect.Descriptor instead.
func (*Hook_Gotify) GetBaseUrl ¶ added in v0.11.0
func (x *Hook_Gotify) GetBaseUrl() string
func (*Hook_Gotify) GetTemplate ¶ added in v0.11.0
func (x *Hook_Gotify) GetTemplate() string
func (*Hook_Gotify) GetTitleTemplate ¶ added in v0.11.0
func (x *Hook_Gotify) GetTitleTemplate() string
func (*Hook_Gotify) GetToken ¶ added in v0.11.0
func (x *Hook_Gotify) GetToken() string
func (*Hook_Gotify) ProtoMessage ¶ added in v0.11.0
func (*Hook_Gotify) ProtoMessage()
func (*Hook_Gotify) ProtoReflect ¶ added in v0.11.0
func (x *Hook_Gotify) ProtoReflect() protoreflect.Message
func (*Hook_Gotify) Reset ¶ added in v0.11.0
func (x *Hook_Gotify) Reset()
func (*Hook_Gotify) String ¶ added in v0.11.0
func (x *Hook_Gotify) String() string
type Hook_Slack ¶ added in v0.12.0
type Hook_Slack struct { WebhookUrl string `protobuf:"bytes,1,opt,name=webhook_url,json=webhookUrl,proto3" json:"webhook_url,omitempty"` Template string `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` // template for the webhook payload. // contains filtered or unexported fields }
func (*Hook_Slack) Descriptor
deprecated
added in
v0.12.0
func (*Hook_Slack) Descriptor() ([]byte, []int)
Deprecated: Use Hook_Slack.ProtoReflect.Descriptor instead.
func (*Hook_Slack) GetTemplate ¶ added in v0.12.0
func (x *Hook_Slack) GetTemplate() string
func (*Hook_Slack) GetWebhookUrl ¶ added in v0.12.0
func (x *Hook_Slack) GetWebhookUrl() string
func (*Hook_Slack) ProtoMessage ¶ added in v0.12.0
func (*Hook_Slack) ProtoMessage()
func (*Hook_Slack) ProtoReflect ¶ added in v0.12.0
func (x *Hook_Slack) ProtoReflect() protoreflect.Message
func (*Hook_Slack) Reset ¶ added in v0.12.0
func (x *Hook_Slack) Reset()
func (*Hook_Slack) String ¶ added in v0.12.0
func (x *Hook_Slack) String() string
type Hook_Webhook ¶ added in v0.11.0
type Hook_Webhook struct { WebhookUrl string `protobuf:"bytes,1,opt,name=webhook_url,json=webhookUrl,proto3" json:"webhook_url,omitempty"` // contains filtered or unexported fields }
func (*Hook_Webhook) Descriptor
deprecated
added in
v0.11.0
func (*Hook_Webhook) Descriptor() ([]byte, []int)
Deprecated: Use Hook_Webhook.ProtoReflect.Descriptor instead.
func (*Hook_Webhook) GetWebhookUrl ¶ added in v0.11.0
func (x *Hook_Webhook) GetWebhookUrl() string
func (*Hook_Webhook) ProtoMessage ¶ added in v0.11.0
func (*Hook_Webhook) ProtoMessage()
func (*Hook_Webhook) ProtoReflect ¶ added in v0.11.0
func (x *Hook_Webhook) ProtoReflect() protoreflect.Message
func (*Hook_Webhook) Reset ¶ added in v0.11.0
func (x *Hook_Webhook) Reset()
func (*Hook_Webhook) String ¶ added in v0.11.0
func (x *Hook_Webhook) String() string
type ListSnapshotFilesRequest ¶
type ListSnapshotFilesRequest struct { 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"` // contains filtered or unexported fields }
func (*ListSnapshotFilesRequest) Descriptor
deprecated
func (*ListSnapshotFilesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSnapshotFilesRequest.ProtoReflect.Descriptor instead.
func (*ListSnapshotFilesRequest) GetPath ¶
func (x *ListSnapshotFilesRequest) GetPath() string
func (*ListSnapshotFilesRequest) GetRepoId ¶
func (x *ListSnapshotFilesRequest) GetRepoId() string
func (*ListSnapshotFilesRequest) GetSnapshotId ¶
func (x *ListSnapshotFilesRequest) GetSnapshotId() string
func (*ListSnapshotFilesRequest) ProtoMessage ¶
func (*ListSnapshotFilesRequest) ProtoMessage()
func (*ListSnapshotFilesRequest) ProtoReflect ¶
func (x *ListSnapshotFilesRequest) ProtoReflect() protoreflect.Message
func (*ListSnapshotFilesRequest) Reset ¶
func (x *ListSnapshotFilesRequest) Reset()
func (*ListSnapshotFilesRequest) String ¶
func (x *ListSnapshotFilesRequest) String() string
type ListSnapshotFilesResponse ¶
type ListSnapshotFilesResponse struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Entries []*LsEntry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"` // contains filtered or unexported fields }
func (*ListSnapshotFilesResponse) Descriptor
deprecated
func (*ListSnapshotFilesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListSnapshotFilesResponse.ProtoReflect.Descriptor instead.
func (*ListSnapshotFilesResponse) GetEntries ¶
func (x *ListSnapshotFilesResponse) GetEntries() []*LsEntry
func (*ListSnapshotFilesResponse) GetPath ¶
func (x *ListSnapshotFilesResponse) GetPath() string
func (*ListSnapshotFilesResponse) ProtoMessage ¶
func (*ListSnapshotFilesResponse) ProtoMessage()
func (*ListSnapshotFilesResponse) ProtoReflect ¶
func (x *ListSnapshotFilesResponse) ProtoReflect() protoreflect.Message
func (*ListSnapshotFilesResponse) Reset ¶
func (x *ListSnapshotFilesResponse) Reset()
func (*ListSnapshotFilesResponse) String ¶
func (x *ListSnapshotFilesResponse) String() string
type ListSnapshotsRequest ¶
type ListSnapshotsRequest struct { 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"` // contains filtered or unexported fields }
func (*ListSnapshotsRequest) Descriptor
deprecated
func (*ListSnapshotsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSnapshotsRequest.ProtoReflect.Descriptor instead.
func (*ListSnapshotsRequest) GetPlanId ¶
func (x *ListSnapshotsRequest) GetPlanId() string
func (*ListSnapshotsRequest) GetRepoId ¶
func (x *ListSnapshotsRequest) GetRepoId() string
func (*ListSnapshotsRequest) ProtoMessage ¶
func (*ListSnapshotsRequest) ProtoMessage()
func (*ListSnapshotsRequest) ProtoReflect ¶
func (x *ListSnapshotsRequest) ProtoReflect() protoreflect.Message
func (*ListSnapshotsRequest) Reset ¶
func (x *ListSnapshotsRequest) Reset()
func (*ListSnapshotsRequest) String ¶
func (x *ListSnapshotsRequest) String() string
type LogDataRequest ¶ added in v0.11.0
type LogDataRequest struct { Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` // contains filtered or unexported fields }
func (*LogDataRequest) Descriptor
deprecated
added in
v0.11.0
func (*LogDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogDataRequest.ProtoReflect.Descriptor instead.
func (*LogDataRequest) GetRef ¶ added in v0.11.0
func (x *LogDataRequest) GetRef() string
func (*LogDataRequest) ProtoMessage ¶ added in v0.11.0
func (*LogDataRequest) ProtoMessage()
func (*LogDataRequest) ProtoReflect ¶ added in v0.11.0
func (x *LogDataRequest) ProtoReflect() protoreflect.Message
func (*LogDataRequest) Reset ¶ added in v0.11.0
func (x *LogDataRequest) Reset()
func (*LogDataRequest) String ¶ added in v0.11.0
func (x *LogDataRequest) String() string
type LoginRequest ¶ added in v0.11.0
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
added in
v0.11.0
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetPassword ¶ added in v0.11.0
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶ added in v0.11.0
func (x *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶ added in v0.11.0
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶ added in v0.11.0
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶ added in v0.11.0
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶ added in v0.11.0
func (x *LoginRequest) String() string
type LoginResponse ¶ added in v0.11.0
type LoginResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // JWT token // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
added in
v0.11.0
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetToken ¶ added in v0.11.0
func (x *LoginResponse) GetToken() string
func (*LoginResponse) ProtoMessage ¶ added in v0.11.0
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶ added in v0.11.0
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶ added in v0.11.0
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶ added in v0.11.0
func (x *LoginResponse) String() string
type LsEntry ¶
type LsEntry struct { 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"` // contains filtered or unexported fields }
func (*LsEntry) Descriptor
deprecated
func (*LsEntry) ProtoMessage ¶
func (*LsEntry) ProtoMessage()
func (*LsEntry) ProtoReflect ¶
func (x *LsEntry) ProtoReflect() protoreflect.Message
type Operation ¶
type Operation struct { // required, primary ID of the operation. ID is sequential based on creation time of the operation. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // required, repo id if associated with a repo RepoId string `protobuf:"bytes,2,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"` // required, plan id if associated with a plan PlanId string `protobuf:"bytes,3,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"` // optional snapshot id if associated with a snapshot. SnapshotId string `protobuf:"bytes,8,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"` Status OperationStatus `protobuf:"varint,4,opt,name=status,proto3,enum=v1.OperationStatus" json:"status,omitempty"` // required, unix time in milliseconds of the operation's creation (ID is derived from this) UnixTimeStartMs int64 `protobuf:"varint,5,opt,name=unix_time_start_ms,json=unixTimeStartMs,proto3" json:"unix_time_start_ms,omitempty"` // optional, unix time in milliseconds of the operation's completion UnixTimeEndMs int64 `protobuf:"varint,6,opt,name=unix_time_end_ms,json=unixTimeEndMs,proto3" json:"unix_time_end_ms,omitempty"` // optional, human readable context message, typically an error message. DisplayMessage string `protobuf:"bytes,7,opt,name=display_message,json=displayMessage,proto3" json:"display_message,omitempty"` // Types that are assignable to Op: // // *Operation_OperationBackup // *Operation_OperationIndexSnapshot // *Operation_OperationForget // *Operation_OperationPrune // *Operation_OperationRestore // *Operation_OperationStats // *Operation_OperationRunHook Op isOperation_Op `protobuf_oneof:"op"` // contains filtered or unexported fields }
func (*Operation) Descriptor
deprecated
func (*Operation) GetDisplayMessage ¶
func (*Operation) GetOperationBackup ¶
func (x *Operation) GetOperationBackup() *OperationBackup
func (*Operation) GetOperationForget ¶
func (x *Operation) GetOperationForget() *OperationForget
func (*Operation) GetOperationIndexSnapshot ¶
func (x *Operation) GetOperationIndexSnapshot() *OperationIndexSnapshot
func (*Operation) GetOperationPrune ¶
func (x *Operation) GetOperationPrune() *OperationPrune
func (*Operation) GetOperationRestore ¶
func (x *Operation) GetOperationRestore() *OperationRestore
func (*Operation) GetOperationRunHook ¶ added in v0.11.0
func (x *Operation) GetOperationRunHook() *OperationRunHook
func (*Operation) GetOperationStats ¶ added in v0.8.0
func (x *Operation) GetOperationStats() *OperationStats
func (*Operation) GetSnapshotId ¶
func (*Operation) GetStatus ¶
func (x *Operation) GetStatus() OperationStatus
func (*Operation) GetUnixTimeEndMs ¶
func (*Operation) GetUnixTimeStartMs ¶
func (*Operation) ProtoMessage ¶
func (*Operation) ProtoMessage()
func (*Operation) ProtoReflect ¶
func (x *Operation) ProtoReflect() protoreflect.Message
type OperationBackup ¶
type OperationBackup struct { LastStatus *BackupProgressEntry `protobuf:"bytes,3,opt,name=last_status,json=lastStatus,proto3" json:"last_status,omitempty"` // contains filtered or unexported fields }
func (*OperationBackup) Descriptor
deprecated
func (*OperationBackup) Descriptor() ([]byte, []int)
Deprecated: Use OperationBackup.ProtoReflect.Descriptor instead.
func (*OperationBackup) GetLastStatus ¶
func (x *OperationBackup) GetLastStatus() *BackupProgressEntry
func (*OperationBackup) ProtoMessage ¶
func (*OperationBackup) ProtoMessage()
func (*OperationBackup) ProtoReflect ¶
func (x *OperationBackup) ProtoReflect() protoreflect.Message
func (*OperationBackup) Reset ¶
func (x *OperationBackup) Reset()
func (*OperationBackup) String ¶
func (x *OperationBackup) String() string
type OperationEvent ¶
type OperationEvent struct { Type OperationEventType `protobuf:"varint,1,opt,name=type,proto3,enum=v1.OperationEventType" json:"type,omitempty"` Operation *Operation `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"` // contains filtered or unexported fields }
OperationEvent is used in the wireformat to stream operation changes to clients
func (*OperationEvent) Descriptor
deprecated
func (*OperationEvent) Descriptor() ([]byte, []int)
Deprecated: Use OperationEvent.ProtoReflect.Descriptor instead.
func (*OperationEvent) GetOperation ¶
func (x *OperationEvent) GetOperation() *Operation
func (*OperationEvent) GetType ¶
func (x *OperationEvent) GetType() OperationEventType
func (*OperationEvent) ProtoMessage ¶
func (*OperationEvent) ProtoMessage()
func (*OperationEvent) ProtoReflect ¶
func (x *OperationEvent) ProtoReflect() protoreflect.Message
func (*OperationEvent) Reset ¶
func (x *OperationEvent) Reset()
func (*OperationEvent) String ¶
func (x *OperationEvent) String() string
type OperationEventType ¶
type OperationEventType int32
OperationEventType indicates whether the operation was created or updated
const ( OperationEventType_EVENT_UNKNOWN OperationEventType = 0 OperationEventType_EVENT_CREATED OperationEventType = 1 OperationEventType_EVENT_UPDATED OperationEventType = 2 OperationEventType_EVENT_DELETED OperationEventType = 3 )
func (OperationEventType) Descriptor ¶
func (OperationEventType) Descriptor() protoreflect.EnumDescriptor
func (OperationEventType) Enum ¶
func (x OperationEventType) Enum() *OperationEventType
func (OperationEventType) EnumDescriptor
deprecated
func (OperationEventType) EnumDescriptor() ([]byte, []int)
Deprecated: Use OperationEventType.Descriptor instead.
func (OperationEventType) Number ¶
func (x OperationEventType) Number() protoreflect.EnumNumber
func (OperationEventType) String ¶
func (x OperationEventType) String() string
func (OperationEventType) Type ¶
func (OperationEventType) Type() protoreflect.EnumType
type OperationForget ¶
type OperationForget struct { Forget []*ResticSnapshot `protobuf:"bytes,1,rep,name=forget,proto3" json:"forget,omitempty"` Policy *RetentionPolicy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"` // contains filtered or unexported fields }
OperationForget tracks a forget operation.
func (*OperationForget) Descriptor
deprecated
func (*OperationForget) Descriptor() ([]byte, []int)
Deprecated: Use OperationForget.ProtoReflect.Descriptor instead.
func (*OperationForget) GetForget ¶
func (x *OperationForget) GetForget() []*ResticSnapshot
func (*OperationForget) GetPolicy ¶
func (x *OperationForget) GetPolicy() *RetentionPolicy
func (*OperationForget) ProtoMessage ¶
func (*OperationForget) ProtoMessage()
func (*OperationForget) ProtoReflect ¶
func (x *OperationForget) ProtoReflect() protoreflect.Message
func (*OperationForget) Reset ¶
func (x *OperationForget) Reset()
func (*OperationForget) String ¶
func (x *OperationForget) String() string
type OperationIndexSnapshot ¶
type OperationIndexSnapshot struct { Snapshot *ResticSnapshot `protobuf:"bytes,2,opt,name=snapshot,proto3" json:"snapshot,omitempty"` // the snapshot that was indexed. Forgot bool `protobuf:"varint,3,opt,name=forgot,proto3" json:"forgot,omitempty"` // tracks whether this snapshot is forgotten yet. ForgotByOp int64 `protobuf:"varint,4,opt,name=forgot_by_op,json=forgotByOp,proto3" json:"forgot_by_op,omitempty"` // ID of a forget operation that removed this snapshot. // contains filtered or unexported fields }
OperationIndexSnapshot tracks that a snapshot was detected by backrest.
func (*OperationIndexSnapshot) Descriptor
deprecated
func (*OperationIndexSnapshot) Descriptor() ([]byte, []int)
Deprecated: Use OperationIndexSnapshot.ProtoReflect.Descriptor instead.
func (*OperationIndexSnapshot) GetForgot ¶
func (x *OperationIndexSnapshot) GetForgot() bool
func (*OperationIndexSnapshot) GetForgotByOp ¶
func (x *OperationIndexSnapshot) GetForgotByOp() int64
func (*OperationIndexSnapshot) GetSnapshot ¶
func (x *OperationIndexSnapshot) GetSnapshot() *ResticSnapshot
func (*OperationIndexSnapshot) ProtoMessage ¶
func (*OperationIndexSnapshot) ProtoMessage()
func (*OperationIndexSnapshot) ProtoReflect ¶
func (x *OperationIndexSnapshot) ProtoReflect() protoreflect.Message
func (*OperationIndexSnapshot) Reset ¶
func (x *OperationIndexSnapshot) Reset()
func (*OperationIndexSnapshot) String ¶
func (x *OperationIndexSnapshot) String() string
type OperationList ¶
type OperationList struct { Operations []*Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` // contains filtered or unexported fields }
func (*OperationList) Descriptor
deprecated
func (*OperationList) Descriptor() ([]byte, []int)
Deprecated: Use OperationList.ProtoReflect.Descriptor instead.
func (*OperationList) GetOperations ¶
func (x *OperationList) GetOperations() []*Operation
func (*OperationList) ProtoMessage ¶
func (*OperationList) ProtoMessage()
func (*OperationList) ProtoReflect ¶
func (x *OperationList) ProtoReflect() protoreflect.Message
func (*OperationList) Reset ¶
func (x *OperationList) Reset()
func (*OperationList) String ¶
func (x *OperationList) String() string
type OperationPrune ¶
type OperationPrune struct { Output string `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` // output of the prune. // contains filtered or unexported fields }
OperationPrune tracks a prune operation.
func (*OperationPrune) Descriptor
deprecated
func (*OperationPrune) Descriptor() ([]byte, []int)
Deprecated: Use OperationPrune.ProtoReflect.Descriptor instead.
func (*OperationPrune) GetOutput ¶
func (x *OperationPrune) GetOutput() string
func (*OperationPrune) ProtoMessage ¶
func (*OperationPrune) ProtoMessage()
func (*OperationPrune) ProtoReflect ¶
func (x *OperationPrune) ProtoReflect() protoreflect.Message
func (*OperationPrune) Reset ¶
func (x *OperationPrune) Reset()
func (*OperationPrune) String ¶
func (x *OperationPrune) String() string
type OperationRestore ¶
type OperationRestore struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // path in the snapshot to restore. Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` // location to restore it to. Status *RestoreProgressEntry `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // status of the restore. // contains filtered or unexported fields }
func (*OperationRestore) Descriptor
deprecated
func (*OperationRestore) Descriptor() ([]byte, []int)
Deprecated: Use OperationRestore.ProtoReflect.Descriptor instead.
func (*OperationRestore) GetPath ¶
func (x *OperationRestore) GetPath() string
func (*OperationRestore) GetStatus ¶
func (x *OperationRestore) GetStatus() *RestoreProgressEntry
func (*OperationRestore) GetTarget ¶
func (x *OperationRestore) GetTarget() string
func (*OperationRestore) ProtoMessage ¶
func (*OperationRestore) ProtoMessage()
func (*OperationRestore) ProtoReflect ¶
func (x *OperationRestore) ProtoReflect() protoreflect.Message
func (*OperationRestore) Reset ¶
func (x *OperationRestore) Reset()
func (*OperationRestore) String ¶
func (x *OperationRestore) String() string
type OperationRunHook ¶ added in v0.11.0
type OperationRunHook struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // description of the hook that was run. typically repo/hook_idx or plan/hook_idx. OutputLogref string `protobuf:"bytes,2,opt,name=output_logref,json=outputLogref,proto3" json:"output_logref,omitempty"` // logref of the hook's output. // contains filtered or unexported fields }
func (*OperationRunHook) Descriptor
deprecated
added in
v0.11.0
func (*OperationRunHook) Descriptor() ([]byte, []int)
Deprecated: Use OperationRunHook.ProtoReflect.Descriptor instead.
func (*OperationRunHook) GetName ¶ added in v0.11.0
func (x *OperationRunHook) GetName() string
func (*OperationRunHook) GetOutputLogref ¶ added in v0.11.0
func (x *OperationRunHook) GetOutputLogref() string
func (*OperationRunHook) ProtoMessage ¶ added in v0.11.0
func (*OperationRunHook) ProtoMessage()
func (*OperationRunHook) ProtoReflect ¶ added in v0.11.0
func (x *OperationRunHook) ProtoReflect() protoreflect.Message
func (*OperationRunHook) Reset ¶ added in v0.11.0
func (x *OperationRunHook) Reset()
func (*OperationRunHook) String ¶ added in v0.11.0
func (x *OperationRunHook) String() string
type OperationStats ¶ added in v0.8.0
type OperationStats struct { Stats *RepoStats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` // contains filtered or unexported fields }
func (*OperationStats) Descriptor
deprecated
added in
v0.8.0
func (*OperationStats) Descriptor() ([]byte, []int)
Deprecated: Use OperationStats.ProtoReflect.Descriptor instead.
func (*OperationStats) GetStats ¶ added in v0.8.0
func (x *OperationStats) GetStats() *RepoStats
func (*OperationStats) ProtoMessage ¶ added in v0.8.0
func (*OperationStats) ProtoMessage()
func (*OperationStats) ProtoReflect ¶ added in v0.8.0
func (x *OperationStats) ProtoReflect() protoreflect.Message
func (*OperationStats) Reset ¶ added in v0.8.0
func (x *OperationStats) Reset()
func (*OperationStats) String ¶ added in v0.8.0
func (x *OperationStats) String() string
type OperationStatus ¶
type OperationStatus int32
const ( OperationStatus_STATUS_UNKNOWN OperationStatus = 0 // used to indicate that the status is unknown. OperationStatus_STATUS_PENDING OperationStatus = 1 // used to indicate that the operation is pending. OperationStatus_STATUS_INPROGRESS OperationStatus = 2 // used to indicate that the operation is in progress. OperationStatus_STATUS_SUCCESS OperationStatus = 3 // used to indicate that the operation completed successfully. OperationStatus_STATUS_WARNING OperationStatus = 7 // used to indicate that the operation completed with warnings. OperationStatus_STATUS_ERROR OperationStatus = 4 // used to indicate that the operation failed. OperationStatus_STATUS_SYSTEM_CANCELLED OperationStatus = 5 // indicates operation cancelled by the system. OperationStatus_STATUS_USER_CANCELLED OperationStatus = 6 // indicates operation cancelled by the user. )
func (OperationStatus) Descriptor ¶
func (OperationStatus) Descriptor() protoreflect.EnumDescriptor
func (OperationStatus) Enum ¶
func (x OperationStatus) Enum() *OperationStatus
func (OperationStatus) EnumDescriptor
deprecated
func (OperationStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use OperationStatus.Descriptor instead.
func (OperationStatus) Number ¶
func (x OperationStatus) Number() protoreflect.EnumNumber
func (OperationStatus) String ¶
func (x OperationStatus) String() string
func (OperationStatus) Type ¶
func (OperationStatus) Type() protoreflect.EnumType
type Operation_OperationBackup ¶
type Operation_OperationBackup struct {
OperationBackup *OperationBackup `protobuf:"bytes,100,opt,name=operation_backup,json=operationBackup,proto3,oneof"`
}
type Operation_OperationForget ¶
type Operation_OperationForget struct {
OperationForget *OperationForget `protobuf:"bytes,102,opt,name=operation_forget,json=operationForget,proto3,oneof"`
}
type Operation_OperationIndexSnapshot ¶
type Operation_OperationIndexSnapshot struct {
OperationIndexSnapshot *OperationIndexSnapshot `protobuf:"bytes,101,opt,name=operation_index_snapshot,json=operationIndexSnapshot,proto3,oneof"`
}
type Operation_OperationPrune ¶
type Operation_OperationPrune struct {
OperationPrune *OperationPrune `protobuf:"bytes,103,opt,name=operation_prune,json=operationPrune,proto3,oneof"`
}
type Operation_OperationRestore ¶
type Operation_OperationRestore struct {
OperationRestore *OperationRestore `protobuf:"bytes,104,opt,name=operation_restore,json=operationRestore,proto3,oneof"`
}
type Operation_OperationRunHook ¶ added in v0.11.0
type Operation_OperationRunHook struct {
OperationRunHook *OperationRunHook `protobuf:"bytes,106,opt,name=operation_run_hook,json=operationRunHook,proto3,oneof"`
}
type Operation_OperationStats ¶ added in v0.8.0
type Operation_OperationStats struct {
OperationStats *OperationStats `protobuf:"bytes,105,opt,name=operation_stats,json=operationStats,proto3,oneof"`
}
type Plan ¶
type Plan struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // unique but human readable ID for this plan. Repo string `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"` // ID of the repo to use. Paths []string `protobuf:"bytes,4,rep,name=paths,proto3" json:"paths,omitempty"` // paths to include in the backup. Excludes []string `protobuf:"bytes,5,rep,name=excludes,proto3" json:"excludes,omitempty"` // glob patterns to exclude. Cron string `protobuf:"bytes,6,opt,name=cron,proto3" json:"cron,omitempty"` // cron expression describing the backup schedule. Retention *RetentionPolicy `protobuf:"bytes,7,opt,name=retention,proto3" json:"retention,omitempty"` // retention policy for snapshots. Hooks []*Hook `protobuf:"bytes,8,rep,name=hooks,proto3" json:"hooks,omitempty"` // hooks to run on events for this plan. // contains filtered or unexported fields }
func (*Plan) Descriptor
deprecated
func (*Plan) GetExcludes ¶
func (*Plan) GetRetention ¶
func (x *Plan) GetRetention() *RetentionPolicy
func (*Plan) ProtoMessage ¶
func (*Plan) ProtoMessage()
func (*Plan) ProtoReflect ¶
func (x *Plan) ProtoReflect() protoreflect.Message
type PrunePolicy ¶
type PrunePolicy struct { MaxFrequencyDays int32 `protobuf:"varint,1,opt,name=max_frequency_days,json=maxFrequencyDays,proto3" json:"max_frequency_days,omitempty"` // max frequency of prune runs in days. If 0, prune will be run on every backup. MaxUnusedPercent int32 `protobuf:"varint,100,opt,name=max_unused_percent,json=maxUnusedPercent,proto3" json:"max_unused_percent,omitempty"` // max percentage of repo size that can be unused before prune is run. MaxUnusedBytes int32 `protobuf:"varint,101,opt,name=max_unused_bytes,json=maxUnusedBytes,proto3" json:"max_unused_bytes,omitempty"` // max number of bytes that can be unused before prune is run. // contains filtered or unexported fields }
func (*PrunePolicy) Descriptor
deprecated
func (*PrunePolicy) Descriptor() ([]byte, []int)
Deprecated: Use PrunePolicy.ProtoReflect.Descriptor instead.
func (*PrunePolicy) GetMaxFrequencyDays ¶
func (x *PrunePolicy) GetMaxFrequencyDays() int32
func (*PrunePolicy) GetMaxUnusedBytes ¶
func (x *PrunePolicy) GetMaxUnusedBytes() int32
func (*PrunePolicy) GetMaxUnusedPercent ¶
func (x *PrunePolicy) GetMaxUnusedPercent() int32
func (*PrunePolicy) ProtoMessage ¶
func (*PrunePolicy) ProtoMessage()
func (*PrunePolicy) ProtoReflect ¶
func (x *PrunePolicy) ProtoReflect() protoreflect.Message
func (*PrunePolicy) Reset ¶
func (x *PrunePolicy) Reset()
func (*PrunePolicy) String ¶
func (x *PrunePolicy) String() string
type Repo ¶
type Repo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // unique but human readable ID for this repo. Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` // restic repo URI Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // plaintext password Env []string `protobuf:"bytes,4,rep,name=env,proto3" json:"env,omitempty"` // extra environment variables to set for restic. Flags []string `protobuf:"bytes,5,rep,name=flags,proto3" json:"flags,omitempty"` // extra flags set on the restic command. PrunePolicy *PrunePolicy `protobuf:"bytes,6,opt,name=prune_policy,json=prunePolicy,proto3" json:"prune_policy,omitempty"` // policy for when to run prune. Hooks []*Hook `protobuf:"bytes,7,rep,name=hooks,proto3" json:"hooks,omitempty"` // hooks to run on events for this repo. // contains filtered or unexported fields }
func (*Repo) Descriptor
deprecated
func (*Repo) GetPassword ¶
func (*Repo) GetPrunePolicy ¶
func (x *Repo) GetPrunePolicy() *PrunePolicy
func (*Repo) ProtoMessage ¶
func (*Repo) ProtoMessage()
func (*Repo) ProtoReflect ¶
func (x *Repo) ProtoReflect() protoreflect.Message
type RepoStats ¶ added in v0.8.0
type RepoStats struct { TotalSize int64 `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` TotalUncompressedSize int64 `` /* 127-byte string literal not displayed */ CompressionRatio float64 `protobuf:"fixed64,3,opt,name=compression_ratio,json=compressionRatio,proto3" json:"compression_ratio,omitempty"` TotalBlobCount int64 `protobuf:"varint,5,opt,name=total_blob_count,json=totalBlobCount,proto3" json:"total_blob_count,omitempty"` SnapshotCount int64 `protobuf:"varint,6,opt,name=snapshot_count,json=snapshotCount,proto3" json:"snapshot_count,omitempty"` // contains filtered or unexported fields }
func (*RepoStats) Descriptor
deprecated
added in
v0.8.0
func (*RepoStats) GetCompressionRatio ¶ added in v0.8.0
func (*RepoStats) GetSnapshotCount ¶ added in v0.8.0
func (*RepoStats) GetTotalBlobCount ¶ added in v0.8.0
func (*RepoStats) GetTotalSize ¶ added in v0.8.0
func (*RepoStats) GetTotalUncompressedSize ¶ added in v0.8.0
func (*RepoStats) ProtoMessage ¶ added in v0.8.0
func (*RepoStats) ProtoMessage()
func (*RepoStats) ProtoReflect ¶ added in v0.8.0
func (x *RepoStats) ProtoReflect() protoreflect.Message
type ResticSnapshot ¶
type ResticSnapshot struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UnixTimeMs int64 `protobuf:"varint,2,opt,name=unix_time_ms,json=unixTimeMs,proto3" json:"unix_time_ms,omitempty"` Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"` Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` Tree string `protobuf:"bytes,5,opt,name=tree,proto3" json:"tree,omitempty"` // tree hash Parent string `protobuf:"bytes,6,opt,name=parent,proto3" json:"parent,omitempty"` // parent snapshot's id Paths []string `protobuf:"bytes,7,rep,name=paths,proto3" json:"paths,omitempty"` Tags []string `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
ResticSnapshot represents a restic snapshot.
func (*ResticSnapshot) Descriptor
deprecated
func (*ResticSnapshot) Descriptor() ([]byte, []int)
Deprecated: Use ResticSnapshot.ProtoReflect.Descriptor instead.
func (*ResticSnapshot) GetHostname ¶
func (x *ResticSnapshot) GetHostname() string
func (*ResticSnapshot) GetId ¶
func (x *ResticSnapshot) GetId() string
func (*ResticSnapshot) GetParent ¶
func (x *ResticSnapshot) GetParent() string
func (*ResticSnapshot) GetPaths ¶
func (x *ResticSnapshot) GetPaths() []string
func (*ResticSnapshot) GetTags ¶
func (x *ResticSnapshot) GetTags() []string
func (*ResticSnapshot) GetTree ¶
func (x *ResticSnapshot) GetTree() string
func (*ResticSnapshot) GetUnixTimeMs ¶
func (x *ResticSnapshot) GetUnixTimeMs() int64
func (*ResticSnapshot) GetUsername ¶
func (x *ResticSnapshot) GetUsername() string
func (*ResticSnapshot) ProtoMessage ¶
func (*ResticSnapshot) ProtoMessage()
func (*ResticSnapshot) ProtoReflect ¶
func (x *ResticSnapshot) ProtoReflect() protoreflect.Message
func (*ResticSnapshot) Reset ¶
func (x *ResticSnapshot) Reset()
func (*ResticSnapshot) String ¶
func (x *ResticSnapshot) String() string
type ResticSnapshotList ¶
type ResticSnapshotList struct { Snapshots []*ResticSnapshot `protobuf:"bytes,1,rep,name=snapshots,proto3" json:"snapshots,omitempty"` // contains filtered or unexported fields }
ResticSnapshotList represents a list of restic snapshots.
func (*ResticSnapshotList) Descriptor
deprecated
func (*ResticSnapshotList) Descriptor() ([]byte, []int)
Deprecated: Use ResticSnapshotList.ProtoReflect.Descriptor instead.
func (*ResticSnapshotList) GetSnapshots ¶
func (x *ResticSnapshotList) GetSnapshots() []*ResticSnapshot
func (*ResticSnapshotList) ProtoMessage ¶
func (*ResticSnapshotList) ProtoMessage()
func (*ResticSnapshotList) ProtoReflect ¶
func (x *ResticSnapshotList) ProtoReflect() protoreflect.Message
func (*ResticSnapshotList) Reset ¶
func (x *ResticSnapshotList) Reset()
func (*ResticSnapshotList) String ¶
func (x *ResticSnapshotList) String() string
type RestoreProgressEntry ¶
type RestoreProgressEntry struct { MessageType string `protobuf:"bytes,1,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"` // "summary" or "status" SecondsElapsed float64 `protobuf:"fixed64,2,opt,name=seconds_elapsed,json=secondsElapsed,proto3" json:"seconds_elapsed,omitempty"` TotalBytes int64 `protobuf:"varint,3,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"` BytesRestored int64 `protobuf:"varint,4,opt,name=bytes_restored,json=bytesRestored,proto3" json:"bytes_restored,omitempty"` TotalFiles int64 `protobuf:"varint,5,opt,name=total_files,json=totalFiles,proto3" json:"total_files,omitempty"` FilesRestored int64 `protobuf:"varint,6,opt,name=files_restored,json=filesRestored,proto3" json:"files_restored,omitempty"` PercentDone float64 `protobuf:"fixed64,7,opt,name=percent_done,json=percentDone,proto3" json:"percent_done,omitempty"` // 0.0 - 1.0 // contains filtered or unexported fields }
RestoreProgressEvent represents a single entry in the restore progress stream.
func (*RestoreProgressEntry) Descriptor
deprecated
func (*RestoreProgressEntry) Descriptor() ([]byte, []int)
Deprecated: Use RestoreProgressEntry.ProtoReflect.Descriptor instead.
func (*RestoreProgressEntry) GetBytesRestored ¶
func (x *RestoreProgressEntry) GetBytesRestored() int64
func (*RestoreProgressEntry) GetFilesRestored ¶
func (x *RestoreProgressEntry) GetFilesRestored() int64
func (*RestoreProgressEntry) GetMessageType ¶
func (x *RestoreProgressEntry) GetMessageType() string
func (*RestoreProgressEntry) GetPercentDone ¶
func (x *RestoreProgressEntry) GetPercentDone() float64
func (*RestoreProgressEntry) GetSecondsElapsed ¶
func (x *RestoreProgressEntry) GetSecondsElapsed() float64
func (*RestoreProgressEntry) GetTotalBytes ¶
func (x *RestoreProgressEntry) GetTotalBytes() int64
func (*RestoreProgressEntry) GetTotalFiles ¶
func (x *RestoreProgressEntry) GetTotalFiles() int64
func (*RestoreProgressEntry) ProtoMessage ¶
func (*RestoreProgressEntry) ProtoMessage()
func (*RestoreProgressEntry) ProtoReflect ¶
func (x *RestoreProgressEntry) ProtoReflect() protoreflect.Message
func (*RestoreProgressEntry) Reset ¶
func (x *RestoreProgressEntry) Reset()
func (*RestoreProgressEntry) String ¶
func (x *RestoreProgressEntry) String() string
type RestoreSnapshotRequest ¶
type RestoreSnapshotRequest struct { PlanId string `protobuf:"bytes,1,opt,name=plan_id,json=planId,proto3" json:"plan_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"` // contains filtered or unexported fields }
func (*RestoreSnapshotRequest) Descriptor
deprecated
func (*RestoreSnapshotRequest) Descriptor() ([]byte, []int)
Deprecated: Use RestoreSnapshotRequest.ProtoReflect.Descriptor instead.
func (*RestoreSnapshotRequest) GetPath ¶
func (x *RestoreSnapshotRequest) GetPath() string
func (*RestoreSnapshotRequest) GetPlanId ¶
func (x *RestoreSnapshotRequest) GetPlanId() string
func (*RestoreSnapshotRequest) GetSnapshotId ¶
func (x *RestoreSnapshotRequest) GetSnapshotId() string
func (*RestoreSnapshotRequest) GetTarget ¶
func (x *RestoreSnapshotRequest) GetTarget() string
func (*RestoreSnapshotRequest) ProtoMessage ¶
func (*RestoreSnapshotRequest) ProtoMessage()
func (*RestoreSnapshotRequest) ProtoReflect ¶
func (x *RestoreSnapshotRequest) ProtoReflect() protoreflect.Message
func (*RestoreSnapshotRequest) Reset ¶
func (x *RestoreSnapshotRequest) Reset()
func (*RestoreSnapshotRequest) String ¶
func (x *RestoreSnapshotRequest) String() string
type RetentionPolicy ¶
type RetentionPolicy struct { // max_unused_limit is used to decide when forget should be run. MaxUnusedLimit string `protobuf:"bytes,1,opt,name=max_unused_limit,json=maxUnusedLimit,proto3" json:"max_unused_limit,omitempty"` // e.g. a percentage i.e. 25% or a number of megabytes. KeepLastN int32 `protobuf:"varint,2,opt,name=keep_last_n,json=keepLastN,proto3" json:"keep_last_n,omitempty"` // keep the last n snapshots. KeepHourly int32 `protobuf:"varint,3,opt,name=keep_hourly,json=keepHourly,proto3" json:"keep_hourly,omitempty"` // keep the last n hourly snapshots. KeepDaily int32 `protobuf:"varint,4,opt,name=keep_daily,json=keepDaily,proto3" json:"keep_daily,omitempty"` // keep the last n daily snapshots. KeepWeekly int32 `protobuf:"varint,5,opt,name=keep_weekly,json=keepWeekly,proto3" json:"keep_weekly,omitempty"` // keep the last n weekly snapshots. KeepMonthly int32 `protobuf:"varint,6,opt,name=keep_monthly,json=keepMonthly,proto3" json:"keep_monthly,omitempty"` // keep the last n monthly snapshots. KeepYearly int32 `protobuf:"varint,7,opt,name=keep_yearly,json=keepYearly,proto3" json:"keep_yearly,omitempty"` // keep the last n yearly snapshots. KeepWithinDuration string `protobuf:"bytes,8,opt,name=keep_within_duration,json=keepWithinDuration,proto3" json:"keep_within_duration,omitempty"` // keep snapshots within a duration e.g. 1y2m3d4h5m6s // contains filtered or unexported fields }
func (*RetentionPolicy) Descriptor
deprecated
func (*RetentionPolicy) Descriptor() ([]byte, []int)
Deprecated: Use RetentionPolicy.ProtoReflect.Descriptor instead.
func (*RetentionPolicy) GetKeepDaily ¶
func (x *RetentionPolicy) GetKeepDaily() int32
func (*RetentionPolicy) GetKeepHourly ¶
func (x *RetentionPolicy) GetKeepHourly() int32
func (*RetentionPolicy) GetKeepLastN ¶
func (x *RetentionPolicy) GetKeepLastN() int32
func (*RetentionPolicy) GetKeepMonthly ¶
func (x *RetentionPolicy) GetKeepMonthly() int32
func (*RetentionPolicy) GetKeepWeekly ¶
func (x *RetentionPolicy) GetKeepWeekly() int32
func (*RetentionPolicy) GetKeepWithinDuration ¶
func (x *RetentionPolicy) GetKeepWithinDuration() string
func (*RetentionPolicy) GetKeepYearly ¶
func (x *RetentionPolicy) GetKeepYearly() int32
func (*RetentionPolicy) GetMaxUnusedLimit ¶
func (x *RetentionPolicy) GetMaxUnusedLimit() string
func (*RetentionPolicy) ProtoMessage ¶
func (*RetentionPolicy) ProtoMessage()
func (*RetentionPolicy) ProtoReflect ¶
func (x *RetentionPolicy) ProtoReflect() protoreflect.Message
func (*RetentionPolicy) Reset ¶
func (x *RetentionPolicy) Reset()
func (*RetentionPolicy) String ¶
func (x *RetentionPolicy) String() string
type UnimplementedAuthenticationServer ¶ added in v0.11.0
type UnimplementedAuthenticationServer struct { }
UnimplementedAuthenticationServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthenticationServer) HashPassword ¶ added in v0.11.0
func (UnimplementedAuthenticationServer) HashPassword(context.Context, *types.StringValue) (*types.StringValue, error)
func (UnimplementedAuthenticationServer) Login ¶ added in v0.11.0
func (UnimplementedAuthenticationServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
type UnimplementedBackrestServer ¶
type UnimplementedBackrestServer struct { }
UnimplementedBackrestServer must be embedded to have forward compatible implementations.
func (UnimplementedBackrestServer) Backup ¶
func (UnimplementedBackrestServer) Backup(context.Context, *types.StringValue) (*emptypb.Empty, error)
func (UnimplementedBackrestServer) Cancel ¶
func (UnimplementedBackrestServer) Cancel(context.Context, *types.Int64Value) (*emptypb.Empty, error)
func (UnimplementedBackrestServer) ClearHistory ¶
func (UnimplementedBackrestServer) ClearHistory(context.Context, *ClearHistoryRequest) (*emptypb.Empty, error)
func (UnimplementedBackrestServer) Forget ¶
func (UnimplementedBackrestServer) Forget(context.Context, *ForgetRequest) (*emptypb.Empty, error)
func (UnimplementedBackrestServer) GetLogs ¶ added in v0.11.0
func (UnimplementedBackrestServer) GetLogs(context.Context, *LogDataRequest) (*types.BytesValue, error)
func (UnimplementedBackrestServer) GetOperationEvents ¶
func (UnimplementedBackrestServer) GetOperationEvents(*emptypb.Empty, Backrest_GetOperationEventsServer) error
func (UnimplementedBackrestServer) GetOperations ¶
func (UnimplementedBackrestServer) GetOperations(context.Context, *GetOperationsRequest) (*OperationList, error)
func (UnimplementedBackrestServer) IndexSnapshots ¶ added in v0.9.0
func (UnimplementedBackrestServer) IndexSnapshots(context.Context, *types.StringValue) (*emptypb.Empty, error)
func (UnimplementedBackrestServer) ListSnapshotFiles ¶
func (UnimplementedBackrestServer) ListSnapshotFiles(context.Context, *ListSnapshotFilesRequest) (*ListSnapshotFilesResponse, error)
func (UnimplementedBackrestServer) ListSnapshots ¶
func (UnimplementedBackrestServer) ListSnapshots(context.Context, *ListSnapshotsRequest) (*ResticSnapshotList, error)
func (UnimplementedBackrestServer) PathAutocomplete ¶
func (UnimplementedBackrestServer) PathAutocomplete(context.Context, *types.StringValue) (*types.StringList, error)
func (UnimplementedBackrestServer) Prune ¶
func (UnimplementedBackrestServer) Prune(context.Context, *types.StringValue) (*emptypb.Empty, error)
func (UnimplementedBackrestServer) Restore ¶
func (UnimplementedBackrestServer) Restore(context.Context, *RestoreSnapshotRequest) (*emptypb.Empty, error)
func (UnimplementedBackrestServer) Stats ¶ added in v0.8.0
func (UnimplementedBackrestServer) Stats(context.Context, *types.StringValue) (*emptypb.Empty, error)
func (UnimplementedBackrestServer) Unlock ¶
func (UnimplementedBackrestServer) Unlock(context.Context, *types.StringValue) (*emptypb.Empty, error)
type UnsafeAuthenticationServer ¶ added in v0.11.0
type UnsafeAuthenticationServer interface {
// contains filtered or unexported methods
}
UnsafeAuthenticationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthenticationServer will result in compilation errors.
type UnsafeBackrestServer ¶
type UnsafeBackrestServer interface {
// contains filtered or unexported methods
}
UnsafeBackrestServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BackrestServer will result in compilation errors.
type User ¶ added in v0.8.0
type User struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Types that are assignable to Password: // // *User_PasswordBcrypt Password isUser_Password `protobuf_oneof:"password"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
added in
v0.8.0
func (*User) GetPassword ¶ added in v0.8.0
func (m *User) GetPassword() isUser_Password
func (*User) GetPasswordBcrypt ¶ added in v0.8.0
func (*User) ProtoMessage ¶ added in v0.8.0
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶ added in v0.8.0
func (x *User) ProtoReflect() protoreflect.Message
type User_PasswordBcrypt ¶ added in v0.8.0
type User_PasswordBcrypt struct {
PasswordBcrypt string `protobuf:"bytes,2,opt,name=password_bcrypt,json=passwordBcrypt,proto3,oneof"`
}