Documentation ¶
Index ¶
Constants ¶
View Source
const ( // InstanceBackupNameLabel is the label used to store the name of the backup for an instance // backup. InstanceBackupNameLabel = "replicated.com/backup-name" // InstanceBackupTypeAnnotation is the annotation used to store the type of backup for an // instance backup. InstanceBackupTypeAnnotation = "replicated.com/backup-type" // InstanceBackupCountAnnotation is the annotation used to store the expected number of backups // for an instance backup. InstanceBackupCountAnnotation = "replicated.com/backup-count" // InstanceBackupRestoreSpecAnnotation is the annotation used to store the corresponding restore // spec for an instance backup. InstanceBackupRestoreSpecAnnotation = "replicated.com/restore-spec" // InstanceBackupTypeInfra indicates that the backup is of type infrastructure. InstanceBackupTypeInfra = "infra" // InstanceBackupTypeApp indicates that the backup is of type application. InstanceBackupTypeApp = "app" // InstanceBackupTypeLegacy indicates that the backup is of type legacy (infra + app). InstanceBackupTypeLegacy = "legacy" // InstanceBackupAnnotation is the annotation used to indicate that a backup is an instance // backup. InstanceBackupAnnotation = "kots.io/instance" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup struct { Name string `json:"name"` Status string `json:"status"` Trigger string `json:"trigger"` AppID string `json:"appID"` // TODO: remove with app backups Sequence int64 `json:"sequence"` // TODO: remove with app backups StartedAt *time.Time `json:"startedAt,omitempty"` FinishedAt *time.Time `json:"finishedAt,omitempty"` ExpiresAt *time.Time `json:"expiresAt,omitempty"` VolumeCount int `json:"volumeCount"` VolumeSuccessCount int `json:"volumeSuccessCount"` VolumeBytes int64 `json:"volumeBytes"` VolumeSizeHuman string `json:"volumeSizeHuman"` SupportBundleID string `json:"supportBundleId,omitempty"` IncludedApps []App `json:"includedApps,omitempty"` }
type BackupDetail ¶
type BackupDetail struct { Name string `json:"name"` Status string `json:"status"` VolumeSizeHuman string `json:"volumeSizeHuman"` Namespaces []string `json:"namespaces"` Hooks []*SnapshotHook `json:"hooks"` Volumes []SnapshotVolume `json:"volumes"` Errors []SnapshotError `json:"errors"` Warnings []SnapshotError `json:"warnings"` }
type ReplicatedBackup ¶ added in v1.122.0
type ReplicatedBackup struct { Name string `json:"name"` // number of backups expected to exist for the ReplicatedBackup to be considered complete ExpectedBackupCount int `json:"expectedBackupCount"` Backups []Backup `json:"backups"` }
ReplicatedBackup holds both the infrastructure and app backups for an EC cluster
type RestoreDetail ¶
type RestoreDetail struct { Name string `json:"name"` Phase velerov1.RestorePhase `json:"phase"` Volumes []RestoreVolume `json:"volumes"` Errors []SnapshotError `json:"errors"` Warnings []SnapshotError `json:"warnings"` }
type RestoreVolume ¶
type RestoreVolume struct { Name string `json:"name"` PodName string `json:"podName"` PodNamespace string `json:"podNamespace"` PodVolumeName string `json:"podVolumeName"` SizeBytesHuman string `json:"sizeBytesHuman"` DoneBytesHuman string `json:"doneBytesHuman"` CompletionPercent int `json:"completionPercent"` RemainingSecondsExist bool `json:"remainingSecondsExist"` TimeRemainingSeconds int `json:"timeRemainingSeconds"` StartedAt *time.Time `json:"startedAt,omitempty"` FinishedAt *time.Time `json:"finishedAt,omitempty"` Phase string `json:"phase"` }
type ScheduledSnapshot ¶
type SnapshotError ¶
type SnapshotHook ¶
type SnapshotHook struct { Name string `json:"name"` Namespace string `json:"namespace"` Phase string `json:"phase"` PodName string `json:"podName"` ContainerName string `json:"containerName"` Command string `json:"command"` Stdout string `json:"stdout"` Stderr string `json:"stderr"` StartedAt *time.Time `json:"startedAt,omitempty"` FinishedAt *time.Time `json:"finishedAt,omitempty"` Errors []SnapshotError `json:"errors"` Warnings []SnapshotError `json:"warnings"` }
type SnapshotSchedule ¶
type SnapshotSchedule struct {
Schedule string `json:"schedule"`
}
type SnapshotTTL ¶
type SnapshotVolume ¶
type SnapshotVolume struct { Name string `json:"name"` PodName string `json:"podName"` PodNamespace string `json:"podNamespace"` PodVolumeName string `json:"podVolumeName"` SizeBytesHuman string `json:"sizeBytesHuman"` DoneBytesHuman string `json:"doneBytesHuman"` CompletionPercent int `json:"completionPercent"` TimeRemainingSeconds int `json:"timeRemainingSeconds"` StartedAt *time.Time `json:"startedAt,omitempty"` FinishedAt *time.Time `json:"finishedAt,omitempty"` Phase string `json:"phase"` }
Click to show internal directories.
Click to hide internal directories.