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 AzureSpec
- type B2Spec
- type Backend
- type Backup
- type BackupList
- type BackupSpec
- type BackupStatus
- type GCSSpec
- type LocalSpec
- type RestServerSpec
- type RetentionPolicy
- type S3Spec
- type SwiftSpec
Constants ¶
const ( BackupKind = "Backup" BackupName = "backup" BackupPlural = "backups" BackupScope = apiextensionsv1beta1.NamespaceScoped )
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 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 { // Password contains the repository password. ONLY for development Password string `json:"password,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.
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.
type BackupSpec ¶
type BackupSpec struct { // DryRun will set the backup to dryrun mode or not. // +optional DryRun bool `json:"dryRun,omitempty"` // Schedule defines when the backup job should run Schedule string `json:"schedule,omitempty"` // CheckSchedule defines when the check jobs should run default once a week CheckSchedule string `json:"checkSchedule,omitempty"` // Backend contains the restic repo where the job should backup to. Backend Backend `json:"backend,omitempty"` // Paused indicates if the backup is currently paused or not. // +optional Paused bool `json:"paused,omitempty"` // KeepJobs amount of jobs to keep for later analysis KeepJobs int32 `json:"keepJobs,omitempty"` // Retention sets how many backups should be kept after a forget and prune Retention RetentionPolicy `json:"retention,omitempty"` // PromURL sets a prometheus push URL where the backup container send metrics to // +optional PromURL string `json:"promURL,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:"last_backup_start,omitempty"` // LastBackupEnd time // +optional LastBackupEnd string `json:"last_backup_end,omitempty"` // LastBackupStatus // +optional LastBackupStatus string `json:"lastBackupDtatus,omitempty"` }
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 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 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 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 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"` // +optional CredentialsSecretName string `json:"credentialssecretname,omitempty"` Username string `json:"username,omitempty"` //ONLY for development Password string `json:"password,omitempty"` //ONLY for development }
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 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.