Documentation
¶
Index ¶
- func CommandExists(cmd string) bool
- func ExecCommand(c *check.C, args ...string) (string, error)
- func NewProfileDataMover(prof *param.Profile, outputName, snapJSON string) *profile
- func NewRepositoryServerDataMover(repoServer *param.RepositoryServer, outputName, snapJSON, userHostname string) *repositoryServer
- type DataMover
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandExists ¶
func ExecCommand ¶
func NewProfileDataMover ¶
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 }
Click to show internal directories.
Click to hide internal directories.