operations

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: AGPL-3.0 Imports: 24 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operations

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

func NewOperations

func NewOperations(
	backend config.BackendConfig,
	metadata config.MetadataConfig,

	pipes config.PipeConfig,
	crypto config.CryptoConfig,

	onHeader func(event *config.HeaderEvent),
) *Operations

func (*Operations) Archive

func (o *Operations) Archive(
	getSrc func() (config.FileConfig, error),
	compressionLevel string,
	overwrite bool,
	initializing bool,
) ([]*tar.Header, error)

func (*Operations) Delete

func (o *Operations) Delete(name string) error

func (*Operations) GetBackend

func (o *Operations) GetBackend() config.BackendConfig

func (*Operations) GetCrypto

func (o *Operations) GetCrypto() config.CryptoConfig

func (*Operations) GetMetadata

func (o *Operations) GetMetadata() config.MetadataConfig

func (*Operations) GetPipes

func (o *Operations) GetPipes() config.PipeConfig

func (*Operations) Initialize

func (o *Operations) Initialize(
	name string,
	perm os.FileMode,
	compressionLevel string,
) error

func (*Operations) Move

func (o *Operations) Move(from string, to string) error

func (*Operations) Restore

func (o *Operations) Restore(
	getDst func(path string, mode fs.FileMode) (io.WriteCloser, error),
	mkdirAll func(path string, mode fs.FileMode) error,

	from string,
	to string,
	flatten bool,
) error

func (*Operations) Update

func (o *Operations) Update(
	getSrc func() (config.FileConfig, error),
	compressionLevel string,
	replace bool,
	skipSizeCheck bool,
) ([]*tar.Header, error)

Jump to

Keyboard shortcuts

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