Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the mantle v1 API group +kubebuilder:object:generate=true +groupName=mantle.cybozu.io
Index ¶
- Constants
- Variables
- type MantleBackup
- type MantleBackupConfig
- type MantleBackupConfigList
- type MantleBackupConfigSpec
- type MantleBackupConfigStatus
- type MantleBackupList
- type MantleBackupSpec
- type MantleBackupStatus
- type MantleRestore
- type MantleRestoreList
- type MantleRestoreSpec
- type MantleRestoreStatus
Constants ¶
const ( BackupConditionReadyToUse = "ReadyToUse" BackupConditionSyncedToRemote = "SyncedToRemote" // Reasons for ConditionReadyToUse BackupReasonNone = "NoProblem" BackupReasonFailedToCreateBackup = "FailedToCreateBackup" )
const ( RestoreConditionReadyToUse = "ReadyToUse" // Reasons for ConditionReadyToUse RestoreReasonNone = "NoProblem" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "mantle.cybozu.io", Version: "v1"} // 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 MantleBackup ¶
type MantleBackup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MantleBackupSpec `json:"spec,omitempty"` Status MantleBackupStatus `json:"status,omitempty"` }
MantleBackup is the Schema for the mantlebackups API
func (*MantleBackup) DeepCopy ¶
func (in *MantleBackup) DeepCopy() *MantleBackup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MantleBackup.
func (*MantleBackup) DeepCopyInto ¶
func (in *MantleBackup) DeepCopyInto(out *MantleBackup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MantleBackup) DeepCopyObject ¶
func (in *MantleBackup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MantleBackupConfig ¶ added in v0.2.0
type MantleBackupConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MantleBackupConfigSpec `json:"spec,omitempty"` Status MantleBackupConfigStatus `json:"status,omitempty"` }
MantleBackupConfig is the Schema for the mantlebackupconfigs API
func (*MantleBackupConfig) DeepCopy ¶ added in v0.2.0
func (in *MantleBackupConfig) DeepCopy() *MantleBackupConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MantleBackupConfig.
func (*MantleBackupConfig) DeepCopyInto ¶ added in v0.2.0
func (in *MantleBackupConfig) DeepCopyInto(out *MantleBackupConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MantleBackupConfig) DeepCopyObject ¶ added in v0.2.0
func (in *MantleBackupConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MantleBackupConfigList ¶ added in v0.2.0
type MantleBackupConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MantleBackupConfig `json:"items"` }
MantleBackupConfigList contains a list of MantleBackupConfig
func (*MantleBackupConfigList) DeepCopy ¶ added in v0.2.0
func (in *MantleBackupConfigList) DeepCopy() *MantleBackupConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MantleBackupConfigList.
func (*MantleBackupConfigList) DeepCopyInto ¶ added in v0.2.0
func (in *MantleBackupConfigList) DeepCopyInto(out *MantleBackupConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MantleBackupConfigList) DeepCopyObject ¶ added in v0.2.0
func (in *MantleBackupConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MantleBackupConfigSpec ¶ added in v0.2.0
type MantleBackupConfigSpec struct { //+kubebuilder:validation:XValidation:message="spec.pvc is immutable",rule="self == oldSelf" PVC string `json:"pvc"` //+kubebuilder:validation:Pattern:=^\s*([0-5]?[0-9])\s+(0?[0-9]|1[0-9]|2[0-3])\s+\*\s+\*\s+\*\s*$ Schedule string `json:"schedule"` //+kubebuilder:validation:Format:="duration" //+kubebuilder:validation:XValidation:message="expire must be >= 1d",rule="self >= duration('24h')" //+kubebuilder:validation:XValidation:message="expire must be <= 15d",rule="self <= duration('360h')" //+kubebuilder:validation:XValidation:message="spec.expire is immutable",rule="self == oldSelf" Expire string `json:"expire"` //+kubebuilder:default:=false Suspend bool `json:"suspend,omitempty"` }
MantleBackupConfigSpec defines the desired state of MantleBackupConfig
func (*MantleBackupConfigSpec) DeepCopy ¶ added in v0.2.0
func (in *MantleBackupConfigSpec) DeepCopy() *MantleBackupConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MantleBackupConfigSpec.
func (*MantleBackupConfigSpec) DeepCopyInto ¶ added in v0.2.0
func (in *MantleBackupConfigSpec) DeepCopyInto(out *MantleBackupConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MantleBackupConfigStatus ¶ added in v0.2.0
type MantleBackupConfigStatus struct { }
MantleBackupConfigStatus defines the observed state of MantleBackupConfig
func (*MantleBackupConfigStatus) DeepCopy ¶ added in v0.2.0
func (in *MantleBackupConfigStatus) DeepCopy() *MantleBackupConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MantleBackupConfigStatus.
func (*MantleBackupConfigStatus) DeepCopyInto ¶ added in v0.2.0
func (in *MantleBackupConfigStatus) DeepCopyInto(out *MantleBackupConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MantleBackupList ¶
type MantleBackupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MantleBackup `json:"items"` }
MantleBackupList contains a list of MantleBackup
func (*MantleBackupList) DeepCopy ¶
func (in *MantleBackupList) DeepCopy() *MantleBackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MantleBackupList.
func (*MantleBackupList) DeepCopyInto ¶
func (in *MantleBackupList) DeepCopyInto(out *MantleBackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MantleBackupList) DeepCopyObject ¶
func (in *MantleBackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MantleBackupSpec ¶
type MantleBackupSpec struct { // 'pvc' specifies backup target PVC // +kubebuilder:validation:Required PVC string `json:"pvc,omitempty"` // 'expire' specifies the expiration duration of the backup //+kubebuilder:validation:Format:="duration" //+kubebuilder:validation:XValidation:message="expire must be >= 1d",rule="self >= duration('24h')" //+kubebuilder:validation:XValidation:message="expire must be <= 15d",rule="self <= duration('360h')" //+kubebuilder:validation:XValidation:message="spec.expire is immutable",rule="self == oldSelf" Expire string `json:"expire"` }
MantleBackupSpec defines the desired state of MantleBackup
func (*MantleBackupSpec) DeepCopy ¶
func (in *MantleBackupSpec) DeepCopy() *MantleBackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MantleBackupSpec.
func (*MantleBackupSpec) DeepCopyInto ¶
func (in *MantleBackupSpec) DeepCopyInto(out *MantleBackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MantleBackupStatus ¶
type MantleBackupStatus struct { // 'createdAt' specifies the creation date and time CreatedAt metav1.Time `json:"createdAt,omitempty"` // 'conditions' specifies current backup conditions Conditions []metav1.Condition `json:"conditions,omitempty"` // 'pvcManifest' saving backup target PVC manifests PVCManifest string `json:"pvcManifest,omitempty"` // 'pvManifest' saving backup target PV manifest PVManifest string `json:"pvManifest,omitempty"` // 'snapID' indicates SNAPID of `rbd snap ls` SnapID *int `json:"snapID,omitempty"` }
MantleBackupStatus defines the observed state of MantleBackup
func (*MantleBackupStatus) DeepCopy ¶
func (in *MantleBackupStatus) DeepCopy() *MantleBackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MantleBackupStatus.
func (*MantleBackupStatus) DeepCopyInto ¶
func (in *MantleBackupStatus) DeepCopyInto(out *MantleBackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MantleRestore ¶ added in v0.2.0
type MantleRestore struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MantleRestoreSpec `json:"spec,omitempty"` Status MantleRestoreStatus `json:"status,omitempty"` }
MantleRestore is the Schema for the mantlerestores API
func (*MantleRestore) DeepCopy ¶ added in v0.2.0
func (in *MantleRestore) DeepCopy() *MantleRestore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MantleRestore.
func (*MantleRestore) DeepCopyInto ¶ added in v0.2.0
func (in *MantleRestore) DeepCopyInto(out *MantleRestore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MantleRestore) DeepCopyObject ¶ added in v0.2.0
func (in *MantleRestore) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MantleRestoreList ¶ added in v0.2.0
type MantleRestoreList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MantleRestore `json:"items"` }
MantleRestoreList contains a list of MantleRestore
func (*MantleRestoreList) DeepCopy ¶ added in v0.2.0
func (in *MantleRestoreList) DeepCopy() *MantleRestoreList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MantleRestoreList.
func (*MantleRestoreList) DeepCopyInto ¶ added in v0.2.0
func (in *MantleRestoreList) DeepCopyInto(out *MantleRestoreList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MantleRestoreList) DeepCopyObject ¶ added in v0.2.0
func (in *MantleRestoreList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MantleRestoreSpec ¶ added in v0.2.0
type MantleRestoreSpec struct { // 'backup' specifies restore target backup resource name // +kubebuilder:validation:Required Backup string `json:"backup,omitempty"` }
MantleRestoreSpec defines the desired state of MantleRestore
func (*MantleRestoreSpec) DeepCopy ¶ added in v0.2.0
func (in *MantleRestoreSpec) DeepCopy() *MantleRestoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MantleRestoreSpec.
func (*MantleRestoreSpec) DeepCopyInto ¶ added in v0.2.0
func (in *MantleRestoreSpec) DeepCopyInto(out *MantleRestoreSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MantleRestoreStatus ¶ added in v0.2.0
type MantleRestoreStatus struct { // 'conditions' specifies current restore conditions Conditions []metav1.Condition `json:"conditions,omitempty"` // 'clusterID' specifies the Ceph cluster ID the source PV/PVC belongs to ClusterID string `json:"clusterID,omitempty"` // 'pool' specifies pool name the volumes are restored to Pool string `json:"pool,omitempty"` }
MantleRestoreStatus defines the observed state of MantleRestore
func (*MantleRestoreStatus) DeepCopy ¶ added in v0.2.0
func (in *MantleRestoreStatus) DeepCopy() *MantleRestoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MantleRestoreStatus.
func (*MantleRestoreStatus) DeepCopyInto ¶ added in v0.2.0
func (in *MantleRestoreStatus) DeepCopyInto(out *MantleRestoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.