Documentation
¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=some.api.group
+k8s:deepcopy-gen=package +groupName=resources.cattle.io
+k8s:deepcopy-gen=package +groupName=resources.cattle.io
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Backup
- type BackupList
- type BackupSpec
- type BackupStatus
- type ControllerReference
- type ResourceSelector
- type ResourceSet
- type ResourceSetList
- type Restore
- type RestoreList
- type RestoreSpec
- type RestoreStatus
- type S3ObjectStore
- type StorageLocation
Constants ¶
This section is empty.
Variables ¶
var ( BackupConditionReady = "Ready" BackupConditionUploaded = "Uploaded" BackupConditionReconciling = "Reconciling" BackupConditionStalled = "Stalled" RestoreConditionReconciling = "Reconciling" RestoreConditionStalled = "Stalled" RestoreConditionReady = "Ready" )
var ( BackupResourceName = "backups" ResourceSetResourceName = "resourcesets" RestoreResourceName = "restores" )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: resources.GroupName, Version: "v1"}
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
Types ¶
type Backup ¶
type Backup struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec BackupSpec `json:"spec"`
Status BackupStatus `json:"status"`
}
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 Backup 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 {
StorageLocation *StorageLocation `json:"storageLocation"`
ResourceSetName string `json:"resourceSetName"`
EncryptionConfigSecretName string `json:"encryptionConfigSecretName,omitempty"`
Schedule string `json:"schedule,omitempty"`
RetentionCount int64 `json:"retentionCount,omitempty"`
}
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 {
Conditions []genericcondition.GenericCondition `json:"conditions"`
LastSnapshotTS string `json:"lastSnapshotTs"`
NextSnapshotAt string `json:"nextSnapshotAt"`
ObservedGeneration int64 `json:"observedGeneration"`
StorageLocation string `json:"storageLocation"`
BackupType string `json:"backupType"`
Filename string `json:"filename"`
Summary string `json:"summary"`
}
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 ControllerReference ¶
type ControllerReference struct {
APIVersion string `json:"apiVersion"`
Resource string `json:"resource"`
Namespace string `json:"namespace"`
Name string `json:"name"`
Replicas int32
}
func (*ControllerReference) DeepCopy ¶
func (in *ControllerReference) DeepCopy() *ControllerReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerReference.
func (*ControllerReference) DeepCopyInto ¶
func (in *ControllerReference) DeepCopyInto(out *ControllerReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSelector ¶
type ResourceSelector struct {
APIVersion string `json:"apiVersion"`
Kinds []string `json:"kinds,omitempty"`
KindsRegexp string `json:"kindsRegexp,omitempty"`
ResourceNames []string `json:"resourceNames,omitempty"`
ResourceNameRegexp string `json:"resourceNameRegexp,omitempty"`
Namespaces []string `json:"namespaces,omitempty"`
NamespaceRegexp string `json:"namespaceRegexp,omitempty"`
LabelSelectors *metav1.LabelSelector `json:"labelSelectors,omitempty"`
}
regex+list = OR //separate fields :AND
func (*ResourceSelector) DeepCopy ¶
func (in *ResourceSelector) DeepCopy() *ResourceSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSelector.
func (*ResourceSelector) DeepCopyInto ¶
func (in *ResourceSelector) DeepCopyInto(out *ResourceSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSet ¶
type ResourceSet struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
ResourceSelectors []ResourceSelector `json:"resourceSelectors"`
ControllerReferences []ControllerReference `json:"controllerReferences"`
}
func NewResourceSet ¶
func NewResourceSet(namespace, name string, obj ResourceSet) *ResourceSet
func (*ResourceSet) DeepCopy ¶
func (in *ResourceSet) DeepCopy() *ResourceSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSet.
func (*ResourceSet) DeepCopyInto ¶
func (in *ResourceSet) DeepCopyInto(out *ResourceSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceSet) DeepCopyObject ¶
func (in *ResourceSet) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceSetList ¶
type ResourceSetList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []ResourceSet `json:"items"`
}
ResourceSetList is a list of ResourceSet resources
func (*ResourceSetList) DeepCopy ¶
func (in *ResourceSetList) DeepCopy() *ResourceSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSetList.
func (*ResourceSetList) DeepCopyInto ¶
func (in *ResourceSetList) DeepCopyInto(out *ResourceSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceSetList) DeepCopyObject ¶
func (in *ResourceSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Restore ¶
type Restore struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec RestoreSpec `json:"spec"`
Status RestoreStatus `json:"status"`
}
func NewRestore ¶
func (*Restore) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Restore.
func (*Restore) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Restore) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RestoreList ¶
type RestoreList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata"`
Items []Restore `json:"items"`
}
RestoreList is a list of Restore resources
func (*RestoreList) DeepCopy ¶
func (in *RestoreList) DeepCopy() *RestoreList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreList.
func (*RestoreList) DeepCopyInto ¶
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 ¶
func (in *RestoreList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RestoreSpec ¶
type RestoreSpec struct {
BackupFilename string `json:"backupFilename"`
StorageLocation *StorageLocation `json:"storageLocation"`
Prune *bool `json:"prune"` //prune by default
DeleteTimeoutSeconds int `json:"deleteTimeoutSeconds,omitempty"`
EncryptionConfigSecretName string `json:"encryptionConfigSecretName,omitempty"`
// When set to true, the controller ignores any errors during the restore process
IgnoreErrors bool `json:"ignoreErrors,omitempty"`
}
func (*RestoreSpec) DeepCopy ¶
func (in *RestoreSpec) DeepCopy() *RestoreSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreSpec.
func (*RestoreSpec) DeepCopyInto ¶
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 ¶
type RestoreStatus struct {
Conditions []genericcondition.GenericCondition `json:"conditions,omitempty"`
RestoreCompletionTS string `json:"restoreCompletionTs"`
ObservedGeneration int64 `json:"observedGeneration"`
BackupSource string `json:"backupSource"`
Summary string `json:"summary"`
}
func (*RestoreStatus) DeepCopy ¶
func (in *RestoreStatus) DeepCopy() *RestoreStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RestoreStatus.
func (*RestoreStatus) DeepCopyInto ¶
func (in *RestoreStatus) DeepCopyInto(out *RestoreStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type S3ObjectStore ¶
type S3ObjectStore struct {
Endpoint string `json:"endpoint"`
EndpointCA string `json:"endpointCA"`
InsecureTLSSkipVerify bool `json:"insecureTLSSkipVerify"`
CredentialSecretName string `json:"credentialSecretName"`
CredentialSecretNamespace string `json:"credentialSecretNamespace"`
BucketName string `json:"bucketName"`
Region string `json:"region"`
Folder string `json:"folder"`
}
func (*S3ObjectStore) DeepCopy ¶
func (in *S3ObjectStore) DeepCopy() *S3ObjectStore
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3ObjectStore.
func (*S3ObjectStore) DeepCopyInto ¶
func (in *S3ObjectStore) DeepCopyInto(out *S3ObjectStore)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageLocation ¶
type StorageLocation struct {
S3 *S3ObjectStore `json:"s3"`
}
func (*StorageLocation) DeepCopy ¶
func (in *StorageLocation) DeepCopy() *StorageLocation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageLocation.
func (*StorageLocation) DeepCopyInto ¶
func (in *StorageLocation) DeepCopyInto(out *StorageLocation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.