Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package,register +k8s:openapi-gen=true +k8s:defaulter-gen=TypeMeta +groupName=ui.stash.appscode.com
Package v1alpha1 contains API Schema definitions for the kubedb v1alpha1 API group +kubebuilder:object:generate=true +groupName=ui.stash.appscode.com
Index ¶
Constants ¶
const ( ResourceKindBackupOverview = "BackupOverview" ResourceBackupOverview = "backupoverview" ResourceBackupOverviews = "backupoverviews" )
const ( BackupStatusActive = "Active" BackupStatusPaused = "Paused" )
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: ui.GroupName, Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
Types ¶
type BackupOverview ¶
type BackupOverview struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BackupOverviewSpec `json:"spec,omitempty"` Status api.BackupConfigurationStatus `json:"status,omitempty"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*BackupOverview) DeepCopy ¶
func (in *BackupOverview) DeepCopy() *BackupOverview
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupOverview.
func (*BackupOverview) DeepCopyInto ¶
func (in *BackupOverview) DeepCopyInto(out *BackupOverview)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupOverview) DeepCopyObject ¶
func (in *BackupOverview) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackupOverviewList ¶
type BackupOverviewList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []BackupOverview `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*BackupOverviewList) DeepCopy ¶
func (in *BackupOverviewList) DeepCopy() *BackupOverviewList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupOverviewList.
func (*BackupOverviewList) DeepCopyInto ¶
func (in *BackupOverviewList) DeepCopyInto(out *BackupOverviewList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupOverviewList) DeepCopyObject ¶
func (in *BackupOverviewList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackupOverviewSpec ¶
type BackupOverviewSpec struct { Schedule string `json:"schedule,omitempty"` Status BackupStatus `json:"status,omitempty"` LastBackupTime *metav1.Time `json:"lastBackupTime,omitempty"` UpcomingBackupTime *metav1.Time `json:"upcomingBackupTime,omitempty"` Repository string `json:"repository,omitempty"` DataSize string `json:"dataSize,omitempty"` NumberOfSnapshots int64 `json:"numberOfSnapshots,omitempty"` DataIntegrity bool `json:"dataIntegrity,omitempty"` }
BackupOverviewSpec defines the desired state of BackupOverview
func (*BackupOverviewSpec) DeepCopy ¶
func (in *BackupOverviewSpec) DeepCopy() *BackupOverviewSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupOverviewSpec.
func (*BackupOverviewSpec) DeepCopyInto ¶
func (in *BackupOverviewSpec) DeepCopyInto(out *BackupOverviewSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBMode ¶
type MongoDBMode string
+kubebuilder:validation:Enum=Standalone;ReplicaSet;Sharded
const ( MongoDBModeStandalone MongoDBMode = "Standalone" MongoDBModeReplicaSet MongoDBMode = "ReplicaSet" MongoDBModeSharded MongoDBMode = "Sharded" )
type MongoDBOperation ¶
type MongoDBOperation string
+kubebuilder:validation:Enum=QUERY;INSERT;UPDATE;DELETE;GETMORE
const ( MongoDBOperationQuery MongoDBOperation = "QUERY" MongoDBOperationInsert MongoDBOperation = "INSERT" MongoDBOperationUpdate MongoDBOperation = "UPDATE" MongoDBOperationDelete MongoDBOperation = "DELETE" MongoDBOperationGetMore MongoDBOperation = "GETMORE" )