v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the backsnap v1alpha1 API group +kubebuilder:object:generate=true +groupName=backsnap.skyb.it

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "backsnap.skyb.it", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type PVCBackup

type PVCBackup struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PVCBackupSpec   `json:"spec,omitempty"`
	Status PVCBackupStatus `json:"status,omitempty"`
}

PVCBackup is the Schema for the pvcbackups API

func (*PVCBackup) DeepCopy

func (in *PVCBackup) DeepCopy() *PVCBackup

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

func (*PVCBackup) DeepCopyInto

func (in *PVCBackup) DeepCopyInto(out *PVCBackup)

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

func (*PVCBackup) DeepCopyObject

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

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

type PVCBackupList

type PVCBackupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PVCBackup `json:"items"`
}

PVCBackupList contains a list of PVCBackup

func (*PVCBackupList) DeepCopy

func (in *PVCBackupList) DeepCopy() *PVCBackupList

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

func (*PVCBackupList) DeepCopyInto

func (in *PVCBackupList) DeepCopyInto(out *PVCBackupList)

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

func (*PVCBackupList) DeepCopyObject

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

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

type PVCBackupSpec

type PVCBackupSpec struct {
	// Name of the PVC to back up. Must be in the same namespace.
	PVCName string `json:"pvc"`

	// How long will the backup object be retained after the backup completes.
	// If not set, the object will be retained for at least one day. The
	// controller will also always keep the last PVCBackup for a particular PVC
	// around, so that it knows when the last backup was completed.
	TTL metav1.Duration `json:"ttl,omitempty"`
}

func (*PVCBackupSpec) DeepCopy

func (in *PVCBackupSpec) DeepCopy() *PVCBackupSpec

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

func (*PVCBackupSpec) DeepCopyInto

func (in *PVCBackupSpec) DeepCopyInto(out *PVCBackupSpec)

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

type PVCBackupStatus

type PVCBackupStatus struct {
	FinishedAt *metav1.Time `json:"finishedAt,omitempty"`
	Result     *Result      `json:"result,omitempty"`
}

func (*PVCBackupStatus) DeepCopy

func (in *PVCBackupStatus) DeepCopy() *PVCBackupStatus

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

func (*PVCBackupStatus) DeepCopyInto

func (in *PVCBackupStatus) DeepCopyInto(out *PVCBackupStatus)

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

type PVCRestore

type PVCRestore struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PVCRestoreSpec   `json:"spec,omitempty"`
	Status PVCRestoreStatus `json:"status,omitempty"`
}

PVCRestore is the Schema for the pvcrestores API

func (*PVCRestore) DeepCopy

func (in *PVCRestore) DeepCopy() *PVCRestore

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

func (*PVCRestore) DeepCopyInto

func (in *PVCRestore) DeepCopyInto(out *PVCRestore)

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

func (*PVCRestore) DeepCopyObject

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

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

type PVCRestoreList

type PVCRestoreList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PVCRestore `json:"items"`
}

PVCRestoreList contains a list of PVCRestore

func (*PVCRestoreList) DeepCopy

func (in *PVCRestoreList) DeepCopy() *PVCRestoreList

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

func (*PVCRestoreList) DeepCopyInto

func (in *PVCRestoreList) DeepCopyInto(out *PVCRestoreList)

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

func (*PVCRestoreList) DeepCopyObject

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

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

type PVCRestoreSpec

type PVCRestoreSpec struct {
	// The name of the source PVC that will be restored. The source PVC does not
	// need to exist anymore, this is just for finding its data.
	SourcePVC string `json:"sourcePvc,omitempty"`
	// The namespace that the source PVC used to exist in. If empty, assume that
	// the source namespace is the same as the namespace where this PVCRestore
	// object exists.
	SourceNamespace string `json:"sourceNamespace,omitempty"`
	// The snapshot to restore, or empty to restore the latest snapshot.
	SourceSnapshot string `json:"sourceSnapshot,omitempty"`

	// The name of the new PVC where the source contents will be restored into.
	// The PVC must not exist, and will be created. If empty, assume that the
	// target PVC is the same name as the source PVC.
	TargetPVC string `json:"targetPvc,omitempty"`

	// The size of the target PVC. Must be large enough to contain the backup's
	// contents.
	TargetPVCSize resource.Quantity `json:"targetPvcSize,omitempty"`
}

PVCRestoreSpec defines the desired state of PVCRestore

func (*PVCRestoreSpec) DeepCopy

func (in *PVCRestoreSpec) DeepCopy() *PVCRestoreSpec

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

func (*PVCRestoreSpec) DeepCopyInto

func (in *PVCRestoreSpec) DeepCopyInto(out *PVCRestoreSpec)

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

type PVCRestoreStatus

type PVCRestoreStatus struct {
	FinishedAt *metav1.Time `json:"finishedAt,omitempty"`
	Result     *Result      `json:"result,omitempty"`
}

PVCRestoreStatus defines the observed state of PVCRestore

func (*PVCRestoreStatus) DeepCopy

func (in *PVCRestoreStatus) DeepCopy() *PVCRestoreStatus

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

func (*PVCRestoreStatus) DeepCopyInto

func (in *PVCRestoreStatus) DeepCopyInto(out *PVCRestoreStatus)

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

type Result

type Result string

+kubebuilder:validation:Enum=Succeeded;Failed

Jump to

Keyboard shortcuts

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