backup

package
v1.9.12 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupDirectory

type BackupDirectory struct {
	orchestrator.Logger

	sync.Mutex
	// contains filtered or unexported fields
}

func (*BackupDirectory) AddChecksum

func (backupDirectory *BackupDirectory) AddChecksum(artifactIdentifier orchestrator.ArtifactIdentifier, shasum orchestrator.BackupChecksum) error

func (*BackupDirectory) AddFinishTime

func (backupDirectory *BackupDirectory) AddFinishTime(finishTime time.Time) error

func (*BackupDirectory) CalculateChecksum

func (backupDirectory *BackupDirectory) CalculateChecksum(artifactIdentifier orchestrator.ArtifactIdentifier) (orchestrator.BackupChecksum, error)

func (*BackupDirectory) CreateArtifact

func (backupDirectory *BackupDirectory) CreateArtifact(artifactIdentifier orchestrator.ArtifactIdentifier) (io.WriteCloser, error)

func (*BackupDirectory) CreateMetadataFileWithStartTime

func (backupDirectory *BackupDirectory) CreateMetadataFileWithStartTime(startTime time.Time) error

func (*BackupDirectory) DeploymentMatches

func (backupDirectory *BackupDirectory) DeploymentMatches(deployment string, instances []orchestrator.Instance) (bool, error)

func (*BackupDirectory) FetchChecksum

func (backupDirectory *BackupDirectory) FetchChecksum(artifactIdentifier orchestrator.ArtifactIdentifier) (orchestrator.BackupChecksum, error)

func (*BackupDirectory) GetArtifactByteSize added in v1.7.2

func (backupDirectory *BackupDirectory) GetArtifactByteSize(artifactIdentifier orchestrator.ArtifactIdentifier) (int, error)

func (*BackupDirectory) GetArtifactSize

func (backupDirectory *BackupDirectory) GetArtifactSize(artifactIdentifier orchestrator.ArtifactIdentifier) (string, error)

func (*BackupDirectory) ReadArtifact

func (backupDirectory *BackupDirectory) ReadArtifact(artifactIdentifier orchestrator.ArtifactIdentifier) (io.ReadCloser, error)

func (*BackupDirectory) SaveManifest

func (backupDirectory *BackupDirectory) SaveManifest(manifest string) error

func (*BackupDirectory) Valid

func (backupDirectory *BackupDirectory) Valid() (bool, error)

type BackupDirectoryManager

type BackupDirectoryManager struct{}

func (BackupDirectoryManager) Create

func (BackupDirectoryManager) Create(path, directoryName string, logger orchestrator.Logger) (orchestrator.Backup, error)

func (BackupDirectoryManager) Open

Jump to

Keyboard shortcuts

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