retention

package
v0.0.0-...-880cb89 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

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

func NewOpts

func NewOpts() *Opts

func OptsFromConfigs

func OptsFromConfigs(
	blobCfg format.BlobStorageConfiguration,
	params maintenance.Params,
) *Opts

func (*Opts) AsConfigs

func (*Opts) BlobChanged

func (r *Opts) BlobChanged() bool

func (*Opts) ParamsChanged

func (r *Opts) ParamsChanged() bool

func (*Opts) Set

func (r *Opts) Set(opts repository.Retention) error

func (Opts) Verify

func (r Opts) Verify(ctx context.Context) error

Verify checks that the config info in r passes kopia's retention validation checks when it comes to locking durations and that if retention is requested in the blob config blob then lock extension is also configured to run during maintenance. If rentention is not enabled in the blob config blob then lock extension should be disabled during maintenance.

Jump to

Keyboard shortcuts

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