s3wrapper

package
v0.0.0-...-d5261e2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainerIDsOfMounts

func GetContainerIDsOfMounts(mounts []S3Mount, dockerW *dockerwrapper.DockerWrapper) []string

Types

type S3Mount

type S3Mount struct {
	ContainerName      string
	Dest               string
	Snapshots          []resticwrapper.Snapshot
	SelectedSnapshotID string
}

func (*S3Mount) SelectSnapshotByTag

func (mount *S3Mount) SelectSnapshotByTag(tag string)

if tag is not empty string - update SelectedSnapshotID when snapshot tag not found - erase SelectedSnapshotID

type S3Wrapper

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

func NewS3Wrapper

func NewS3Wrapper(opts s3opts.CreationOpts) *S3Wrapper

func (*S3Wrapper) GetMounts

func (t *S3Wrapper) GetMounts(
	resticWrapper *resticwrapper.ResticWrapper, dockerw *dockerwrapper.DockerWrapper,
	containerName string) []S3Mount

Jump to

Keyboard shortcuts

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