Documentation
¶
Overview ¶
Package localbackupruntime adapts the owner-bound local backup lifecycle to the fixed Kopia container runtime without retaining repository secrets.
Index ¶
- Constants
- type Runtime
- func (r *Runtime) Configure(ctx context.Context, configuration backuplifecycle.RepositoryConfiguration) (backuplifecycle.RepositoryReceipt, error)
- func (r *Runtime) CreateSnapshot(ctx context.Context, request backuplifecycle.RepositorySnapshotRequest) (backuplifecycle.RepositorySnapshotReceipt, error)
- func (r *Runtime) CreateSnapshotWithQuiescence(ctx context.Context, request backuplifecycle.RepositorySnapshotRequest, ...) (receipt backuplifecycle.RepositorySnapshotReceipt, resultErr error)
- func (r *Runtime) LookupSnapshot(ctx context.Context, request backuplifecycle.RepositorySnapshotRequest) (backuplifecycle.RepositorySnapshotReceipt, bool, error)
- func (r *Runtime) RestoreSnapshot(ctx context.Context, request backuplifecycle.RepositoryRestoreRequest) (backuplifecycle.RepositoryRestoreReceipt, error)
- func (r *Runtime) Status(ctx context.Context, scope backuplifecycle.RepositoryScope) (backuplifecycle.RepositoryStatus, error)
Constants ¶
const ( RepositoryID = "kopia:local:basement" CloudRepositoryID = "kopia:local:cloud" Backend = "filesystem" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime is the production RepositoryRuntime for the CUE-owned local Kopia service. It retains only a confined workspace name and an engine factory.
func New ¶
func New(workspaceRoot string, policy localbackuppolicy.Policy, custody backupexec.ApplicationContainerCustodyVerifier) (*Runtime, error)
New binds all current repository operations to the exact policy already verified through the Plan, artifact and Apply authority chain. Copy through the canonical codec so caller-owned slices cannot change the source selection after the runtime is created.
func (*Runtime) Configure ¶
func (r *Runtime) Configure(ctx context.Context, configuration backuplifecycle.RepositoryConfiguration) (backuplifecycle.RepositoryReceipt, error)
func (*Runtime) CreateSnapshot ¶
func (r *Runtime) CreateSnapshot(ctx context.Context, request backuplifecycle.RepositorySnapshotRequest) (backuplifecycle.RepositorySnapshotReceipt, error)
func (*Runtime) CreateSnapshotWithQuiescence ¶
func (r *Runtime) CreateSnapshotWithQuiescence( ctx context.Context, request backuplifecycle.RepositorySnapshotRequest, journal backuplifecycle.SnapshotQuiescence, persist func(backuplifecycle.SnapshotQuiescence) error, ) (receipt backuplifecycle.RepositorySnapshotReceipt, resultErr error)
CreateSnapshotWithQuiescence creates or resumes one native-v2 snapshot while all current writers of governed managed volumes are stopped. The lifecycle callback atomically records the exact identities before the first stop and after each resumable phase in the existing snapshot operation journal.
func (*Runtime) LookupSnapshot ¶
func (r *Runtime) LookupSnapshot(ctx context.Context, request backuplifecycle.RepositorySnapshotRequest) (backuplifecycle.RepositorySnapshotReceipt, bool, error)
func (*Runtime) RestoreSnapshot ¶
func (r *Runtime) RestoreSnapshot( ctx context.Context, request backuplifecycle.RepositoryRestoreRequest, ) (backuplifecycle.RepositoryRestoreReceipt, error)
func (*Runtime) Status ¶
func (r *Runtime) Status(ctx context.Context, scope backuplifecycle.RepositoryScope) (backuplifecycle.RepositoryStatus, error)