Documentation ¶
Index ¶
- func BuildBackupsToComplete(gcpServiceAccountKey string, config map[string]Config) (map[string]BackupToComplete, error)
- func CreateBucketsForBackupArtifact(gcpSerivceAccountKey string, bucketBackups map[string]BucketBackup) (map[string]BucketBackup, error)
- func MarkSameBackupsToComplete(backupsToComplete map[string]BackupToComplete) map[string]BackupToComplete
- func ParseConfig(configFilePath string) (map[string]Config, error)
- func ReadGCPServiceAccountKey(gcpConfigFilePath string) (string, error)
- type Artifact
- type BackupArtifact
- type BackupToComplete
- type Backuper
- type Blob
- type Bucket
- type BucketBackup
- type BucketPair
- type Config
- type ExecutableBackup
- type Restorer
- type SDKBucket
- func (b SDKBucket) CopyBlobToBucket(dstBucket Bucket, srcBlob, dstBlob string) error
- func (b SDKBucket) CopyBlobsToBucket(dstBucket Bucket, srcPrefix string) error
- func (b SDKBucket) DeleteBlob(blob string) error
- func (b SDKBucket) ListBlobs(prefix string) ([]Blob, error)
- func (b SDKBucket) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBackupsToComplete ¶ added in v1.15.0
func CreateBucketsForBackupArtifact ¶ added in v1.15.0
func CreateBucketsForBackupArtifact(gcpSerivceAccountKey string, bucketBackups map[string]BucketBackup) (map[string]BucketBackup, error)
func MarkSameBackupsToComplete ¶ added in v1.15.0
func MarkSameBackupsToComplete(backupsToComplete map[string]BackupToComplete) map[string]BackupToComplete
func ReadGCPServiceAccountKey ¶ added in v1.11.0
Types ¶
type Artifact ¶
type Artifact struct {
// contains filtered or unexported fields
}
func NewArtifact ¶
type BackupArtifact ¶ added in v1.11.0
type BackupArtifact interface { Write(backups map[string]BucketBackup) error Read() (map[string]BucketBackup, error) }
type BackupToComplete ¶ added in v1.15.0
type BackupToComplete struct { BucketPair BucketPair SameAsBucketID string }
type Backuper ¶
type Backuper struct {
// contains filtered or unexported fields
}
func NewBackuper ¶
func NewBackuper(backupsToComplete map[string]BackupToComplete) Backuper
type BucketBackup ¶
type BucketPair ¶ added in v1.11.0
type ExecutableBackup ¶ added in v1.13.0
type ExecutableBackup struct {
// contains filtered or unexported fields
}
func (ExecutableBackup) Execute ¶ added in v1.13.0
func (e ExecutableBackup) Execute() error
type Restorer ¶
type Restorer struct {
// contains filtered or unexported fields
}
func NewRestorer ¶
func NewRestorer(backupsToComplete map[string]BackupToComplete) Restorer
type SDKBucket ¶
type SDKBucket struct {
// contains filtered or unexported fields
}
func (SDKBucket) CopyBlobToBucket ¶ added in v1.11.2
func (SDKBucket) CopyBlobsToBucket ¶ added in v1.11.2
func (SDKBucket) DeleteBlob ¶ added in v1.11.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.