Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=appuio.ch
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- func VersionKind(kind string) schema.GroupVersionKind
- type Archive
- type ArchiveList
- type ArchiveSchedule
- type ArchiveSpec
- type ArchiveStatus
- type AzureSpec
- type B2Spec
- type Backend
- type Backup
- type BackupList
- type BackupSchedule
- type BackupSpec
- type BackupStatus
- type Check
- type CheckList
- type CheckSchedule
- type CheckSpec
- type CheckStatus
- type FolderRestore
- type GCSSpec
- type JobStatus
- type LocalSpec
- type Pod
- type PreBackupPod
- type PreBackupPodList
- type PreBackupPodSpec
- type Prune
- type PruneList
- type PruneSchedule
- type PruneSpec
- type PruneStatus
- type RestServerSpec
- type Restore
- type RestoreList
- type RestoreMethod
- type RestoreSchedule
- type RestoreSpec
- type RestoreStatus
- type RetentionPolicy
- type S3Spec
- type Schedule
- type ScheduleCommon
- type ScheduleList
- type ScheduleSpec
- type SecretKeySelector
- type SwiftSpec
Constants ¶
const ( RestoreS3Endpoint = "RESTORE_S3ENDPOINT" RestoreS3AccessKeyID = "RESTORE_ACCESSKEYID" RestoreS3SecretAccessKey = "RESTORE_SECRETACCESSKEY" ResticRepository = "RESTIC_REPOSITORY" ResticPassword = "RESTIC_PASSWORD" AwsAccessKeyID = "AWS_ACCESS_KEY_ID" AwsSecretAccessKey = "AWS_SECRET_ACCESS_KEY" )
const ( BackupKind = "Backup" BackupName = "backup" BackupPlural = "backups" RestoreKind = "Restore" RestoreName = "restore" RestorePlural = "restores" ArchiveKind = "Archive" ArchiveName = "archive" ArchivePlural = "archives" ScheduleKind = "Schedule" ScheduleName = "schedule" SchedulePlural = "schedules" CheckKind = "Check" CheckName = "check" CheckPlural = "checks" PruneKind = "Prune" PruneName = "prune" PrunePlural = "prunes" PreBackupPodKind = "PreBackupPod" PreBackupPodName = "prebackuppod" PreBackupPodPlural = "prebackuppods" NamespaceScope = apiextensionsv1beta1.NamespaceScoped ClusterScope = apiextensionsv1beta1.ClusterScoped )
Backup constants
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: backup.GroupName, Version: version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func VersionKind ¶
func VersionKind(kind string) schema.GroupVersionKind
VersionKind takes an unqualified kind and returns back a Group qualified GroupVersionKind
Types ¶
type Archive ¶ added in v0.1.0
type Archive struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec *ArchiveSpec `json:"spec,omitempty"` Status ArchiveStatus `json:"status,omitempty"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Archive) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Archive.
func (*Archive) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Archive) DeepCopyObject ¶ added in v0.1.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ArchiveList ¶ added in v0.1.0
type ArchiveList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Archive `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ArchiveList) DeepCopy ¶ added in v0.1.0
func (in *ArchiveList) DeepCopy() *ArchiveList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArchiveList.
func (*ArchiveList) DeepCopyInto ¶ added in v0.1.0
func (in *ArchiveList) DeepCopyInto(out *ArchiveList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArchiveList) DeepCopyObject ¶ added in v0.1.0
func (in *ArchiveList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ArchiveList) Len ¶ added in v0.1.2
func (a ArchiveList) Len() int
func (ArchiveList) Less ¶ added in v0.1.2
func (a ArchiveList) Less(i, j int) bool
func (ArchiveList) Swap ¶ added in v0.1.2
func (a ArchiveList) Swap(i, j int)
type ArchiveSchedule ¶ added in v0.1.0
type ArchiveSchedule struct { ArchiveSpec `json:",inline"` *ScheduleCommon `json:",inline"` }
ArchiveSchedule manages schedules for the archival service
func (*ArchiveSchedule) DeepCopy ¶ added in v0.1.0
func (in *ArchiveSchedule) DeepCopy() *ArchiveSchedule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArchiveSchedule.
func (*ArchiveSchedule) DeepCopyInto ¶ added in v0.1.0
func (in *ArchiveSchedule) DeepCopyInto(out *ArchiveSchedule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArchiveSpec ¶ added in v0.1.0
type ArchiveSpec struct {
*RestoreSpec `json:",inline"`
}
ArchiveSpec specifies how the archiv CRD looks like currently this is a simple wrapper for the RestoreSpec but this might get extended in the future.
func (*ArchiveSpec) DeepCopy ¶ added in v0.1.0
func (in *ArchiveSpec) DeepCopy() *ArchiveSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArchiveSpec.
func (*ArchiveSpec) DeepCopyInto ¶ added in v0.1.0
func (in *ArchiveSpec) DeepCopyInto(out *ArchiveSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArchiveStatus ¶ added in v0.1.0
type ArchiveStatus struct {
JobStatus `json:",inline"`
}
func (*ArchiveStatus) DeepCopy ¶ added in v0.1.0
func (in *ArchiveStatus) DeepCopy() *ArchiveStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArchiveStatus.
func (*ArchiveStatus) DeepCopyInto ¶ added in v0.1.0
func (in *ArchiveStatus) DeepCopyInto(out *ArchiveStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureSpec ¶
type AzureSpec struct { Container string `json:"container,omitempty"` Prefix string `json:"prefix,omitempty"` }
func (*AzureSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureSpec.
func (*AzureSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type B2Spec ¶
type B2Spec struct { Bucket string `json:"bucket,omitempty"` Prefix string `json:"prefix,omitempty"` }
func (*B2Spec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new B2Spec.
func (*B2Spec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Backend ¶
type Backend struct { // RepoPasswordSecretRef references a secret key to look up the restic repository password // +optional RepoPasswordSecretRef *SecretKeySelector `json:"repoPasswordSecretRef,omitempty"` Local *LocalSpec `json:"local,omitempty"` S3 *S3Spec `json:"s3,omitempty"` GCS *GCSSpec `json:"gcs,omitempty"` Azure *AzureSpec `json:"azure,omitempty"` Swift *SwiftSpec `json:"swift,omitempty"` B2 *B2Spec `json:"b2,omitempty"` Rest *RestServerSpec `json:"rest,omitempty"` }
func (*Backend) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backend.
func (*Backend) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Backend) Merge ¶ added in v0.1.2
Merge will merge the backend configuration with the global config. It also accepts another backend with defaults. Precedence (highest to lowest): b -> defaults -> config
func (*Backend) PasswordEnvVar ¶ added in v0.1.2
type Backup ¶
type Backup struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Specification of the desired behaviour of the pod terminator. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status // +optional Spec *BackupSpec `json:"spec,omitempty"` // Status of the backups // +optional Status BackupStatus `json:"status,omitempty"` }
Backup represents a baas worker.
func (*Backup) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backup.
func (*Backup) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Backup) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackupList ¶
type BackupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Backup `json:"items"` }
BackupList is a list of BassWorker resources
func (*BackupList) DeepCopy ¶
func (in *BackupList) DeepCopy() *BackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupList.
func (*BackupList) DeepCopyInto ¶
func (in *BackupList) DeepCopyInto(out *BackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupList) DeepCopyObject ¶
func (in *BackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (BackupList) Len ¶ added in v0.1.2
func (b BackupList) Len() int
func (BackupList) Less ¶ added in v0.1.2
func (b BackupList) Less(i, j int) bool
func (BackupList) Swap ¶ added in v0.1.2
func (b BackupList) Swap(i, j int)
type BackupSchedule ¶ added in v0.1.0
type BackupSchedule struct { BackupSpec `json:",inline"` *ScheduleCommon `json:",inline"` }
BackupSchedule manages schedules for the backup service
func (*BackupSchedule) DeepCopy ¶ added in v0.1.0
func (in *BackupSchedule) DeepCopy() *BackupSchedule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupSchedule.
func (*BackupSchedule) DeepCopyInto ¶ added in v0.1.0
func (in *BackupSchedule) DeepCopyInto(out *BackupSchedule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupSpec ¶
type BackupSpec struct { // Backend contains the restic repo where the job should backup to. Backend *Backend `json:"backend,omitempty"` // KeepJobs amount of jobs to keep for later analysis KeepJobs int `json:"keepJobs,omitempty"` // PromURL sets a prometheus push URL where the backup container send metrics to // +optional PromURL string `json:"promURL,omitempty"` // StatsURL sets an arbitrary URL where the wrestic container posts metrics and // information about the snapshots to. This is in addition to the prometheus // pushgateway. StatsURL string `json:"statsURL,omitempty"` }
BackupSpec is the spec for a BassWorker resource.
func (*BackupSpec) DeepCopy ¶
func (in *BackupSpec) DeepCopy() *BackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupSpec.
func (*BackupSpec) DeepCopyInto ¶
func (in *BackupSpec) DeepCopyInto(out *BackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupStatus ¶
type BackupStatus struct { // LastBackupStart time // +optional LastBackupStart string `json:"lastBackupStart,omitempty"` // LastBackupEnd time // +optional LastBackupEnd string `json:"lastBackupEnd,omitempty"` // LastBackupStatus // +optional LastBackupStatus string `json:"lastBackupDtatus,omitempty"` JobStatus `json:",inline"` }
func (*BackupStatus) DeepCopy ¶
func (in *BackupStatus) DeepCopy() *BackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStatus.
func (*BackupStatus) DeepCopyInto ¶
func (in *BackupStatus) DeepCopyInto(out *BackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Check ¶ added in v0.1.0
type Check struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec *CheckSpec `json:"spec,omitempty"` Status CheckStatus `json:"status,omitempty"` }
Check defines the check CRD
func (*Check) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Check.
func (*Check) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Check) DeepCopyObject ¶ added in v0.1.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CheckList ¶ added in v0.1.0
type CheckList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Check `json:"items,omitempty"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*CheckList) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CheckList.
func (*CheckList) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CheckList) DeepCopyObject ¶ added in v0.1.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CheckSchedule ¶ added in v0.1.0
type CheckSchedule struct { CheckSpec `json:",inline"` *ScheduleCommon `json:",inline"` }
CheckSchedule manages the schedules for the checks
func (*CheckSchedule) DeepCopy ¶ added in v0.1.0
func (in *CheckSchedule) DeepCopy() *CheckSchedule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CheckSchedule.
func (*CheckSchedule) DeepCopyInto ¶ added in v0.1.0
func (in *CheckSchedule) DeepCopyInto(out *CheckSchedule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CheckSpec ¶ added in v0.1.0
type CheckSpec struct { PromURL string `json:"promURL,omitempty"` Backend *Backend `json:"backend,omitempty"` KeepJobs int `json:"keepJobs,omitempty"` }
CheckSpec only needs to hold the repository information for which the check should run.
func (*CheckSpec) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CheckSpec.
func (*CheckSpec) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CheckStatus ¶ added in v0.1.0
type CheckStatus struct {
JobStatus `json:",inline"`
}
func (*CheckStatus) DeepCopy ¶ added in v0.1.0
func (in *CheckStatus) DeepCopy() *CheckStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CheckStatus.
func (*CheckStatus) DeepCopyInto ¶ added in v0.1.0
func (in *CheckStatus) DeepCopyInto(out *CheckStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FolderRestore ¶ added in v0.1.0
type FolderRestore struct {
*corev1.PersistentVolumeClaimVolumeSource `json:",inline"`
}
func (*FolderRestore) DeepCopy ¶ added in v0.1.0
func (in *FolderRestore) DeepCopy() *FolderRestore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FolderRestore.
func (*FolderRestore) DeepCopyInto ¶ added in v0.1.0
func (in *FolderRestore) DeepCopyInto(out *FolderRestore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GCSSpec ¶
type GCSSpec struct { Bucket string `json:"bucket,omitempty"` Prefix string `json:"prefix,omitempty"` }
func (*GCSSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCSSpec.
func (*GCSSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JobStatus ¶ added in v0.1.0
type JobStatus struct { Started bool `json:"started,omitempty"` Finished bool `json:"finished,omitempty"` Failed bool `json:"failed,omitempty"` }
JobStatus holds information about the various jobs
func (*JobStatus) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobStatus.
func (*JobStatus) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LocalSpec ¶
type LocalSpec struct { corev1.VolumeSource `json:",inline"` MountPath string `json:"mountPath,omitempty"` SubPath string `json:"subPath,omitempty"` }
func (*LocalSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalSpec.
func (*LocalSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Pod ¶ added in v0.1.5
type Pod struct {
corev1.PodTemplateSpec `json:",inline"`
}
Pod is a dummy struct to fix some code generation issues.
func (*Pod) DeepCopy ¶ added in v0.1.5
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pod.
func (*Pod) DeepCopyInto ¶ added in v0.1.5
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PreBackupPod ¶ added in v0.1.5
type PreBackupPod struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PreBackupPodSpec `json:"spec,omitempty"` }
PreBackupPod contains a single pod that will be started before the actual backup job starts running. This can be used to achieve a given state prior to running the backup.
func (*PreBackupPod) DeepCopy ¶ added in v0.1.5
func (in *PreBackupPod) DeepCopy() *PreBackupPod
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreBackupPod.
func (*PreBackupPod) DeepCopyInto ¶ added in v0.1.5
func (in *PreBackupPod) DeepCopyInto(out *PreBackupPod)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PreBackupPod) DeepCopyObject ¶ added in v0.1.5
func (in *PreBackupPod) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PreBackupPodList ¶ added in v0.1.5
type PreBackupPodList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []PreBackupPod `json:"items"` }
PreBackupPodList holds a list of PreBackupPod
func (*PreBackupPodList) DeepCopy ¶ added in v0.1.5
func (in *PreBackupPodList) DeepCopy() *PreBackupPodList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreBackupPodList.
func (*PreBackupPodList) DeepCopyInto ¶ added in v0.1.5
func (in *PreBackupPodList) DeepCopyInto(out *PreBackupPodList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PreBackupPodList) DeepCopyObject ¶ added in v0.1.5
func (in *PreBackupPodList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PreBackupPodSpec ¶ added in v0.1.5
type PreBackupPodSpec struct { // BackupCommand will be added to the backupcommand annotation on the pod. BackupCommand string `json:"backupCommand,omitempty"` FileExtension string `json:"fileExtension,omitempty"` Pod *Pod `json:"pod,omitempty"` }
PreBackupPodSpec contains the configuration for the backup pod and the command
func (*PreBackupPodSpec) DeepCopy ¶ added in v0.1.5
func (in *PreBackupPodSpec) DeepCopy() *PreBackupPodSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreBackupPodSpec.
func (*PreBackupPodSpec) DeepCopyInto ¶ added in v0.1.5
func (in *PreBackupPodSpec) DeepCopyInto(out *PreBackupPodSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Prune ¶ added in v0.1.0
type Prune struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec *PruneSpec `json:"spec,omitempty"` Status PruneStatus `json:"status,omitempty"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Prune) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Prune.
func (*Prune) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Prune) DeepCopyObject ¶ added in v0.1.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PruneList ¶ added in v0.1.0
type PruneList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Prune `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*PruneList) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PruneList.
func (*PruneList) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PruneList) DeepCopyObject ¶ added in v0.1.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PruneSchedule ¶ added in v0.1.0
type PruneSchedule struct { PruneSpec `json:",inline"` *ScheduleCommon `json:",inline"` }
func (*PruneSchedule) DeepCopy ¶ added in v0.1.0
func (in *PruneSchedule) DeepCopy() *PruneSchedule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PruneSchedule.
func (*PruneSchedule) DeepCopyInto ¶ added in v0.1.0
func (in *PruneSchedule) DeepCopyInto(out *PruneSchedule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PruneSpec ¶ added in v0.1.0
type PruneSpec struct { // Retention sets how many backups should be kept after a forget and prune Retention RetentionPolicy `json:"retention,omitempty"` Backend *Backend `json:"backend,omitempty"` KeepJobs int `json:"keepJobs,omitempty"` }
ArchiveSpec specifies how the prune CRD looks like currently this is a simple wrapper for the RestoreSpec but this might get extended in the future.
func (*PruneSpec) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PruneSpec.
func (*PruneSpec) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PruneStatus ¶ added in v0.1.0
type PruneStatus struct {
JobStatus `json:",inline"`
}
func (*PruneStatus) DeepCopy ¶ added in v0.1.0
func (in *PruneStatus) DeepCopy() *PruneStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PruneStatus.
func (*PruneStatus) DeepCopyInto ¶ added in v0.1.0
func (in *PruneStatus) DeepCopyInto(out *PruneStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RestServerSpec ¶
type RestServerSpec struct {
URL string `json:"url,omitempty"`
}
func (*RestServerSpec) DeepCopy ¶
func (in *RestServerSpec) DeepCopy() *RestServerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestServerSpec.
func (*RestServerSpec) DeepCopyInto ¶
func (in *RestServerSpec) DeepCopyInto(out *RestServerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Restore ¶ added in v0.1.0
type Restore struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty"` Spec *RestoreSpec `json:"spec,omitempty"` Status RestoreStatus `json:"status,omitempty"` }
Restore contains the restore CRD
func (*Restore) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Restore.
func (*Restore) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Restore) DeepCopyObject ¶ added in v0.1.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RestoreList ¶ added in v0.1.0
type RestoreList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Restore `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object RestoreList is a list of BassWorker resources
func (*RestoreList) DeepCopy ¶ added in v0.1.0
func (in *RestoreList) DeepCopy() *RestoreList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreList.
func (*RestoreList) DeepCopyInto ¶ added in v0.1.0
func (in *RestoreList) DeepCopyInto(out *RestoreList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RestoreList) DeepCopyObject ¶ added in v0.1.0
func (in *RestoreList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (RestoreList) Len ¶ added in v0.1.2
func (r RestoreList) Len() int
func (RestoreList) Less ¶ added in v0.1.2
func (r RestoreList) Less(i, j int) bool
func (RestoreList) Swap ¶ added in v0.1.2
func (r RestoreList) Swap(i, j int)
type RestoreMethod ¶ added in v0.1.0
type RestoreMethod struct { S3 *S3Spec `json:"s3,omitempty"` Folder *FolderRestore `json:"folder,omitempty"` }
RestoreMethod contains how and where the restore should happen all the settings are mutual exclusive.
func (*RestoreMethod) DeepCopy ¶ added in v0.1.0
func (in *RestoreMethod) DeepCopy() *RestoreMethod
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreMethod.
func (*RestoreMethod) DeepCopyInto ¶ added in v0.1.0
func (in *RestoreMethod) DeepCopyInto(out *RestoreMethod)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RestoreSchedule ¶ added in v0.1.0
type RestoreSchedule struct { RestoreSpec `json:",inline"` *ScheduleCommon `json:",inline"` }
RestoreSchedule manages schedules for the restore service
func (*RestoreSchedule) DeepCopy ¶ added in v0.1.0
func (in *RestoreSchedule) DeepCopy() *RestoreSchedule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreSchedule.
func (*RestoreSchedule) DeepCopyInto ¶ added in v0.1.0
func (in *RestoreSchedule) DeepCopyInto(out *RestoreSchedule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RestoreSpec ¶ added in v0.1.0
type RestoreSpec struct { // Backend contains the backend information Backend *Backend `json:"backend,omitempty"` RestoreMethod *RestoreMethod `json:"restoreMethod,omitempty"` RestoreFilter string `json:"restoreFilter,omitempty"` Snapshot string `json:"snapshot,omitempty"` KeepJobs int `json:"keepJobs,omitempty"` }
RestoreSpec contains all information needed to trigger a restore
func (*RestoreSpec) DeepCopy ¶ added in v0.1.0
func (in *RestoreSpec) DeepCopy() *RestoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreSpec.
func (*RestoreSpec) DeepCopyInto ¶ added in v0.1.0
func (in *RestoreSpec) DeepCopyInto(out *RestoreSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RestoreStatus ¶ added in v0.1.0
type RestoreStatus struct {
JobStatus `json:",inline"`
}
RestoreStatus contains the status of a restore job
func (*RestoreStatus) DeepCopy ¶ added in v0.1.0
func (in *RestoreStatus) DeepCopy() *RestoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreStatus.
func (*RestoreStatus) DeepCopyInto ¶ added in v0.1.0
func (in *RestoreStatus) DeepCopyInto(out *RestoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RetentionPolicy ¶
type RetentionPolicy struct { KeepLast int `json:"keepLast,omitempty"` KeepHourly int `json:"keepHourly,omitempty"` KeepDaily int `json:"keepDaily,omitempty"` KeepWeekly int `json:"keepWeekly,omitempty"` KeepMonthly int `json:"keepMonthly,omitempty"` KeepYearly int `json:"keepYearly,omitempty"` KeepTags []string `json:"keepTags,omitempty"` }
func (*RetentionPolicy) DeepCopy ¶
func (in *RetentionPolicy) DeepCopy() *RetentionPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RetentionPolicy.
func (*RetentionPolicy) DeepCopyInto ¶
func (in *RetentionPolicy) DeepCopyInto(out *RetentionPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type S3Spec ¶
type S3Spec struct { Endpoint string `json:"endpoint,omitempty"` Bucket string `json:"bucket,omitempty"` Prefix string `json:"prefix,omitempty"` AccessKeyIDSecretRef *SecretKeySelector `json:"accessKeyIDSecretRef,omitempty"` SecretAccessKeySecretRef *SecretKeySelector `json:"secretAccessKeySecretRef,omitempty"` Username string `json:"username,omitempty"` //ONLY for development Password string `json:"password,omitempty"` //ONLY for development }
func (*S3Spec) BackupEnvs ¶ added in v0.1.2
func (*S3Spec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Spec.
func (*S3Spec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Schedule ¶ added in v0.1.0
type Schedule struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec *ScheduleSpec `json:"spec,omitempty"` }
Schedule holds schedule information about all schedulable services.
func (*Schedule) DeepCopy ¶ added in v0.1.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Schedule.
func (*Schedule) DeepCopyInto ¶ added in v0.1.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Schedule) DeepCopyObject ¶ added in v0.1.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScheduleCommon ¶ added in v0.1.0
type ScheduleCommon struct { Schedule string `json:"schedule,omitempty"` ConcurrentRunsAllowed bool `json:"concurrentRunsAllowed,omitempty"` }
ScheduleCommon contains fields every schedule needs
func (*ScheduleCommon) DeepCopy ¶ added in v0.1.0
func (in *ScheduleCommon) DeepCopy() *ScheduleCommon
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleCommon.
func (*ScheduleCommon) DeepCopyInto ¶ added in v0.1.0
func (in *ScheduleCommon) DeepCopyInto(out *ScheduleCommon)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScheduleList ¶ added in v0.1.0
type ScheduleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Schedule `json:"items"` }
ScheduleList is a list of schedule resources
func (*ScheduleList) DeepCopy ¶ added in v0.1.0
func (in *ScheduleList) DeepCopy() *ScheduleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleList.
func (*ScheduleList) DeepCopyInto ¶ added in v0.1.0
func (in *ScheduleList) DeepCopyInto(out *ScheduleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScheduleList) DeepCopyObject ¶ added in v0.1.0
func (in *ScheduleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ScheduleList) Len ¶ added in v0.1.2
func (s ScheduleList) Len() int
func (ScheduleList) Less ¶ added in v0.1.2
func (s ScheduleList) Less(i, j int) bool
func (ScheduleList) Swap ¶ added in v0.1.2
func (s ScheduleList) Swap(i, j int)
type ScheduleSpec ¶ added in v0.1.0
type ScheduleSpec struct { Restore *RestoreSchedule `json:"restore,omitempty"` Backup *BackupSchedule `json:"backup,omitempty"` Archive *ArchiveSchedule `json:"archive,omitempty"` Check *CheckSchedule `json:"check,omitempty"` Prune *PruneSchedule `json:"prune,omitempty"` Backend *Backend `json:"backend,omitempty"` KeepJobs int `json:"keepJobs,omitempty"` }
ScheduleSpec contains the schedule specifications
func (*ScheduleSpec) DeepCopy ¶ added in v0.1.0
func (in *ScheduleSpec) DeepCopy() *ScheduleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScheduleSpec.
func (*ScheduleSpec) DeepCopyInto ¶ added in v0.1.0
func (in *ScheduleSpec) DeepCopyInto(out *ScheduleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretKeySelector ¶ added in v0.0.7
type SecretKeySelector struct { // The name of the secret in the same namespace to select from. corev1.LocalObjectReference `json:",inline"` // The key of the secret to select from. Must be a valid secret key. Key string `json:"key"` }
func (*SecretKeySelector) DeepCopy ¶ added in v0.0.7
func (in *SecretKeySelector) DeepCopy() *SecretKeySelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretKeySelector.
func (*SecretKeySelector) DeepCopyInto ¶ added in v0.0.7
func (in *SecretKeySelector) DeepCopyInto(out *SecretKeySelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SwiftSpec ¶
type SwiftSpec struct { Container string `json:"container,omitempty"` Prefix string `json:"prefix,omitempty"` }
func (*SwiftSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SwiftSpec.
func (*SwiftSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.