datamover

package
v0.113.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandExists

func CommandExists(cmd string) bool

func ExecCommand

func ExecCommand(c *check.C, args ...string) (string, error)

func NewProfileDataMover

func NewProfileDataMover(prof *param.Profile, outputName, snapJSON string) *profile

func NewRepositoryServerDataMover

func NewRepositoryServerDataMover(repoServer *param.RepositoryServer, outputName, snapJSON, userHostname string) *repositoryServer

Types

type DataMover

type DataMover interface {
	// Pull is used to download the data from object storage
	// using the preferred data-mover
	Pull(ctx context.Context, sourcePath, destinationPath string) error
	// Push is used to upload the data to object storage
	// using the preferred data-mover
	Push(ctx context.Context, sourcePath, destinationPath string) error
	// Delete is used to delete the data from object storage
	// using the preferred data-mover
	Delete(ctx context.Context, destinationPath string) error
}

Jump to

Keyboard shortcuts

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