v1alpha1

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=appuio.ch

Index

Constants

View Source
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"
)
View Source
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"

	NamespaceScope = apiextensionsv1beta1.NamespaceScoped
	ClusterScope   = apiextensionsv1beta1.ClusterScoped
)

Backup constants

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: backup.GroupName, Version: version}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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

func (in *Archive) DeepCopy() *Archive

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Archive.

func (*Archive) DeepCopyInto added in v0.1.0

func (in *Archive) DeepCopyInto(out *Archive)

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

func (in *Archive) DeepCopyObject() runtime.Object

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

func (in *AzureSpec) DeepCopy() *AzureSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureSpec.

func (*AzureSpec) DeepCopyInto

func (in *AzureSpec) DeepCopyInto(out *AzureSpec)

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

func (in *B2Spec) DeepCopy() *B2Spec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new B2Spec.

func (*B2Spec) DeepCopyInto

func (in *B2Spec) DeepCopyInto(out *B2Spec)

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

func (in *Backend) DeepCopy() *Backend

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backend.

func (*Backend) DeepCopyInto

func (in *Backend) DeepCopyInto(out *Backend)

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

func (b *Backend) Merge(config config.Global)

func (*Backend) PasswordEnvVar added in v0.1.2

func (b *Backend) PasswordEnvVar(config config.Global) corev1.EnvVar

func (*Backend) String added in v0.0.6

func (b *Backend) String() string

String returns the string representation of the repository. If no repo is defined it'll return empty string.

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

func (in *Backup) DeepCopy() *Backup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backup.

func (*Backup) DeepCopyInto

func (in *Backup) DeepCopyInto(out *Backup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Backup) DeepCopyObject

func (in *Backup) DeepCopyObject() runtime.Object

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

func (in *Check) DeepCopy() *Check

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Check.

func (*Check) DeepCopyInto added in v0.1.0

func (in *Check) DeepCopyInto(out *Check)

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

func (in *Check) DeepCopyObject() runtime.Object

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

func (in *CheckList) DeepCopy() *CheckList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CheckList.

func (*CheckList) DeepCopyInto added in v0.1.0

func (in *CheckList) DeepCopyInto(out *CheckList)

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

func (in *CheckList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (CheckList) Len added in v0.1.2

func (c CheckList) Len() int

func (CheckList) Less added in v0.1.2

func (c CheckList) Less(i, j int) bool

func (CheckList) Swap added in v0.1.2

func (c CheckList) Swap(i, j int)

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

func (in *CheckSpec) DeepCopy() *CheckSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CheckSpec.

func (*CheckSpec) DeepCopyInto added in v0.1.0

func (in *CheckSpec) DeepCopyInto(out *CheckSpec)

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

func (in *GCSSpec) DeepCopy() *GCSSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCSSpec.

func (*GCSSpec) DeepCopyInto

func (in *GCSSpec) DeepCopyInto(out *GCSSpec)

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

func (in *JobStatus) DeepCopy() *JobStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobStatus.

func (*JobStatus) DeepCopyInto added in v0.1.0

func (in *JobStatus) DeepCopyInto(out *JobStatus)

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

func (in *LocalSpec) DeepCopy() *LocalSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalSpec.

func (*LocalSpec) DeepCopyInto

func (in *LocalSpec) DeepCopyInto(out *LocalSpec)

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

func (in *Prune) DeepCopy() *Prune

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Prune.

func (*Prune) DeepCopyInto added in v0.1.0

func (in *Prune) DeepCopyInto(out *Prune)

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

func (in *Prune) DeepCopyObject() runtime.Object

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

func (in *PruneList) DeepCopy() *PruneList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PruneList.

func (*PruneList) DeepCopyInto added in v0.1.0

func (in *PruneList) DeepCopyInto(out *PruneList)

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

func (in *PruneList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (PruneList) Len added in v0.1.2

func (p PruneList) Len() int

func (PruneList) Less added in v0.1.2

func (p PruneList) Less(i, j int) bool

func (PruneList) Swap added in v0.1.2

func (p PruneList) Swap(i, j int)

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

func (in *PruneSpec) DeepCopy() *PruneSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PruneSpec.

func (*PruneSpec) DeepCopyInto added in v0.1.0

func (in *PruneSpec) DeepCopyInto(out *PruneSpec)

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

func (in *Restore) DeepCopy() *Restore

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Restore.

func (*Restore) DeepCopyInto added in v0.1.0

func (in *Restore) DeepCopyInto(out *Restore)

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

func (in *Restore) DeepCopyObject() runtime.Object

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 (s *S3Spec) BackupEnvs(config config.Global) []corev1.EnvVar

func (*S3Spec) DeepCopy

func (in *S3Spec) DeepCopy() *S3Spec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Spec.

func (*S3Spec) DeepCopyInto

func (in *S3Spec) DeepCopyInto(out *S3Spec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*S3Spec) RestoreEnvs added in v0.1.2

func (s *S3Spec) RestoreEnvs(config config.Global) []corev1.EnvVar

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

func (in *Schedule) DeepCopy() *Schedule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Schedule.

func (*Schedule) DeepCopyInto added in v0.1.0

func (in *Schedule) DeepCopyInto(out *Schedule)

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

func (in *Schedule) DeepCopyObject() runtime.Object

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

func (in *SwiftSpec) DeepCopy() *SwiftSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SwiftSpec.

func (*SwiftSpec) DeepCopyInto

func (in *SwiftSpec) DeepCopyInto(out *SwiftSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL