Documentation ¶
Index ¶
- type BackupDirectory
- func (backupDirectory *BackupDirectory) AddChecksum(artifactIdentifier orchestrator.ArtifactIdentifier, ...) error
- func (backupDirectory *BackupDirectory) AddFinishTime(finishTime time.Time) error
- func (backupDirectory *BackupDirectory) CalculateChecksum(artifactIdentifier orchestrator.ArtifactIdentifier) (orchestrator.BackupChecksum, error)
- func (backupDirectory *BackupDirectory) CreateArtifact(artifactIdentifier orchestrator.ArtifactIdentifier) (io.WriteCloser, error)
- func (backupDirectory *BackupDirectory) CreateMetadataFileWithStartTime(startTime time.Time) error
- func (backupDirectory *BackupDirectory) DeploymentMatches(deployment string, instances []orchestrator.Instance) (bool, error)
- func (backupDirectory *BackupDirectory) FetchChecksum(artifactIdentifier orchestrator.ArtifactIdentifier) (orchestrator.BackupChecksum, error)
- func (backupDirectory *BackupDirectory) GetArtifactByteSize(artifactIdentifier orchestrator.ArtifactIdentifier) (int, error)
- func (backupDirectory *BackupDirectory) GetArtifactSize(artifactIdentifier orchestrator.ArtifactIdentifier) (string, error)
- func (backupDirectory *BackupDirectory) ReadArtifact(artifactIdentifier orchestrator.ArtifactIdentifier) (io.ReadCloser, error)
- func (backupDirectory *BackupDirectory) SaveManifest(manifest string) error
- func (backupDirectory *BackupDirectory) Valid() (bool, error)
- type BackupDirectoryManager
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 ¶
func (BackupDirectoryManager) Open(name string, logger orchestrator.Logger) (orchestrator.Backup, error)
Click to show internal directories.
Click to hide internal directories.