Help us shape the future of Go! Take the 2026 Go Developer Survey

backup

package
v1.9.82 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

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.9.76

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

func (*BackupDirectory) GetArtifactSize added in v1.4.0

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