Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the mongo v1 API group +kubebuilder:object:generate=true +groupName=mongo.snappcloud.io
Index ¶
- Variables
- type MongoDBConfig
- func (in *MongoDBConfig) DeepCopy() *MongoDBConfig
- func (in *MongoDBConfig) DeepCopyInto(out *MongoDBConfig)
- func (in *MongoDBConfig) DeepCopyObject() runtime.Object
- func (r *MongoDBConfig) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *MongoDBConfig) ValidateCreate() error
- func (r *MongoDBConfig) ValidateDelete() error
- func (r *MongoDBConfig) ValidateUpdate(old runtime.Object) error
- type MongoDBConfigConditionType
- type MongoDBConfigList
- type MongoDBConfigSpec
- type MongoDBConfigStatus
- type MongoDBData
- func (in *MongoDBData) DeepCopy() *MongoDBData
- func (in *MongoDBData) DeepCopyInto(out *MongoDBData)
- func (in *MongoDBData) DeepCopyObject() runtime.Object
- func (r *MongoDBData) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *MongoDBData) ValidateCreate() error
- func (r *MongoDBData) ValidateDelete() error
- func (r *MongoDBData) ValidateUpdate(old runtime.Object) error
- type MongoDBDataConditionType
- type MongoDBDataField
- type MongoDBDataList
- type MongoDBDataSpec
- type MongoDBDataStatus
Constants ¶
This section is empty.
Variables ¶
var ( GroupKind = schema.GroupKind{Group: "mongo.snappcloud.io", Kind: "mongodb"} // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "mongo.snappcloud.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 MongoDBConfig ¶
type MongoDBConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MongoDBConfigSpec `json:"spec,omitempty"` Status MongoDBConfigStatus `json:"status,omitempty"` }
MongoDBConfig is the Schema for the mongodbconfigs API
func (*MongoDBConfig) DeepCopy ¶
func (in *MongoDBConfig) DeepCopy() *MongoDBConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBConfig.
func (*MongoDBConfig) DeepCopyInto ¶
func (in *MongoDBConfig) DeepCopyInto(out *MongoDBConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDBConfig) DeepCopyObject ¶
func (in *MongoDBConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MongoDBConfig) SetupWebhookWithManager ¶
func (r *MongoDBConfig) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*MongoDBConfig) ValidateCreate ¶
func (r *MongoDBConfig) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*MongoDBConfig) ValidateDelete ¶
func (r *MongoDBConfig) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*MongoDBConfig) ValidateUpdate ¶
func (r *MongoDBConfig) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type MongoDBConfigConditionType ¶
type MongoDBConfigConditionType string
const ( Ready MongoDBConfigConditionType = "Ready" NoMongoURLSpecified MongoDBConfigConditionType = "NoMongoURLSpecified" ConnectError MongoDBConfigConditionType = "ConnectError" Terminating MongoDBConfigConditionType = "Terminating" )
type MongoDBConfigList ¶
type MongoDBConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MongoDBConfig `json:"items"` }
MongoDBConfigList contains a list of MongoDBConfig
func (*MongoDBConfigList) DeepCopy ¶
func (in *MongoDBConfigList) DeepCopy() *MongoDBConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBConfigList.
func (*MongoDBConfigList) DeepCopyInto ¶
func (in *MongoDBConfigList) DeepCopyInto(out *MongoDBConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDBConfigList) DeepCopyObject ¶
func (in *MongoDBConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MongoDBConfigSpec ¶
type MongoDBConfigSpec struct { // MongoURL is a mongodb connection url MongoURL string `json:"mongourl"` // Collection is a mongodb collection name Collection string `json:"collection"` }
MongoDBConfigSpec defines the desired state of MongoDBConfig
func (*MongoDBConfigSpec) DeepCopy ¶
func (in *MongoDBConfigSpec) DeepCopy() *MongoDBConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBConfigSpec.
func (*MongoDBConfigSpec) DeepCopyInto ¶
func (in *MongoDBConfigSpec) DeepCopyInto(out *MongoDBConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBConfigStatus ¶
type MongoDBConfigStatus struct { Ready string `json:"ready,omitempty"` Conditions []metav1.Condition `json:"conditions"` }
MongoDBConfigStatus defines the observed state of MongoDBConfig
func (*MongoDBConfigStatus) DeepCopy ¶
func (in *MongoDBConfigStatus) DeepCopy() *MongoDBConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBConfigStatus.
func (*MongoDBConfigStatus) DeepCopyInto ¶
func (in *MongoDBConfigStatus) DeepCopyInto(out *MongoDBConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBData ¶
type MongoDBData struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MongoDBDataSpec `json:"spec,omitempty"` Status MongoDBDataStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:subresource:status MongoDBData is the Schema for the mongodbdata API +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.state",description="Current state of the MongoDBData" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC." +operator-sdk:csv:customresourcedefinitions:displayName="MongoDBData" +kubebuilder:resource:shortName=mdbd
func (*MongoDBData) DeepCopy ¶
func (in *MongoDBData) DeepCopy() *MongoDBData
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBData.
func (*MongoDBData) DeepCopyInto ¶
func (in *MongoDBData) DeepCopyInto(out *MongoDBData)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDBData) DeepCopyObject ¶
func (in *MongoDBData) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MongoDBData) SetupWebhookWithManager ¶
func (r *MongoDBData) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*MongoDBData) ValidateCreate ¶
func (r *MongoDBData) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*MongoDBData) ValidateDelete ¶
func (r *MongoDBData) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*MongoDBData) ValidateUpdate ¶
func (r *MongoDBData) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type MongoDBDataConditionType ¶
type MongoDBDataConditionType string
const ( MongoDBDataConditionPending MongoDBDataConditionType = "Pending" MongoDBDataConditionInserted MongoDBDataConditionType = "Inserted" MongoDBDataConditionDeleting MongoDBDataConditionType = "Deleting" MongoDBDataConditionFailed MongoDBDataConditionType = "Failed" )
type MongoDBDataField ¶
type MongoDBDataField struct { // +kubebuilder:default="mamad" // +kubebuilder:validation:Optional Firstname string `json:"firstname,omitempty"` // +kubebuilder:validation:Required Lastname string `json:"lastname"` Email string `json:"email,omitempty"` // +kubebuilder:validation:Maximum=1000 Age uint16 `json:"age,omitempty"` }
func (*MongoDBDataField) DeepCopy ¶
func (in *MongoDBDataField) DeepCopy() *MongoDBDataField
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBDataField.
func (*MongoDBDataField) DeepCopyInto ¶
func (in *MongoDBDataField) DeepCopyInto(out *MongoDBDataField)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBDataList ¶
type MongoDBDataList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MongoDBData `json:"items"` }
MongoDBDataList contains a list of MongoDBData
func (*MongoDBDataList) DeepCopy ¶
func (in *MongoDBDataList) DeepCopy() *MongoDBDataList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBDataList.
func (*MongoDBDataList) DeepCopyInto ¶
func (in *MongoDBDataList) DeepCopyInto(out *MongoDBDataList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDBDataList) DeepCopyObject ¶
func (in *MongoDBDataList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MongoDBDataSpec ¶
type MongoDBDataSpec struct { // DB is a MongoDBConfig name DB string `json:"db,omitempty"` // Data is a MongodDB insertation data to a collection Data MongoDBDataField `json:"data,omitempty"` }
MongoDBDataSpec defines the desired state of MongoDBData
func (*MongoDBDataSpec) DeepCopy ¶
func (in *MongoDBDataSpec) DeepCopy() *MongoDBDataSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBDataSpec.
func (*MongoDBDataSpec) DeepCopyInto ¶
func (in *MongoDBDataSpec) DeepCopyInto(out *MongoDBDataSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBDataStatus ¶
type MongoDBDataStatus struct { // +kubebuilder:default="Pending" State string `json:"state,omitempty"` // mongodb record ObjectID ObjectID string `json:"object_id,omitempty"` Conditions []metav1.Condition `json:"conditions,omitempty"` }
MongoDBDataStatus defines the observed state of MongoDBData
func (*MongoDBDataStatus) DeepCopy ¶
func (in *MongoDBDataStatus) DeepCopy() *MongoDBDataStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBDataStatus.
func (*MongoDBDataStatus) DeepCopyInto ¶
func (in *MongoDBDataStatus) DeepCopyInto(out *MongoDBDataStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.