Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cache v1alpha1 API group +kubebuilder:object:generate=true +groupName=cache.donaldsebleung.com
Index ¶
- Variables
- type Memcached
- func (in *Memcached) DeepCopy() *Memcached
- func (in *Memcached) DeepCopyInto(out *Memcached)
- func (in *Memcached) DeepCopyObject() runtime.Object
- func (r *Memcached) Default()
- func (r *Memcached) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Memcached) ValidateCreate() (admission.Warnings, error)
- func (r *Memcached) ValidateDelete() (admission.Warnings, error)
- func (r *Memcached) ValidateUpdate(old runtime.Object) (admission.Warnings, error)
- type MemcachedList
- type MemcachedSpec
- type MemcachedStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cache.donaldsebleung.com", 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 Memcached ¶
type Memcached struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MemcachedSpec `json:"spec,omitempty"`
Status MemcachedStatus `json:"status,omitempty"`
}
Memcached is the Schema for the memcacheds API
func (*Memcached) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Memcached.
func (*Memcached) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Memcached) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Memcached) Default ¶
func (r *Memcached) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Memcached) SetupWebhookWithManager ¶
SetupWebhookWithManager will setup the manager to manage the webhooks
func (*Memcached) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Memcached) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type MemcachedList ¶
type MemcachedList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Memcached `json:"items"`
}
MemcachedList contains a list of Memcached
func (*MemcachedList) DeepCopy ¶
func (in *MemcachedList) DeepCopy() *MemcachedList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcachedList.
func (*MemcachedList) DeepCopyInto ¶
func (in *MemcachedList) DeepCopyInto(out *MemcachedList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MemcachedList) DeepCopyObject ¶
func (in *MemcachedList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MemcachedSpec ¶
type MemcachedSpec struct {
// Size defines the number of Memcached instances
// +operator-sdk:csv:customresourcedefinitions:type=spec
Size int32 `json:"size,omitempty"`
// ContainerPort defines the port that will be used to init the container with the image
// +operator-sdk:csv:customresourcedefinitions:type=spec
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=65536
// +kubebuilder:validation:ExclusiveMinimum=true
// +kubebuilder:validation:ExclusiveMaximum=true
// +kubebuilder:default=11211
ContainerPort int32 `json:"containerPort,omitempty"`
}
MemcachedSpec defines the desired state of Memcached
func (*MemcachedSpec) DeepCopy ¶
func (in *MemcachedSpec) DeepCopy() *MemcachedSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcachedSpec.
func (*MemcachedSpec) DeepCopyInto ¶
func (in *MemcachedSpec) DeepCopyInto(out *MemcachedSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MemcachedStatus ¶
type MemcachedStatus struct {
// Conditions store the status conditions of the Memcached instances
// +operator-sdk:csv:customresourcedefinitions:type=status
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
}
MemcachedStatus defines the observed state of Memcached
func (*MemcachedStatus) DeepCopy ¶
func (in *MemcachedStatus) DeepCopy() *MemcachedStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcachedStatus.
func (*MemcachedStatus) DeepCopyInto ¶
func (in *MemcachedStatus) DeepCopyInto(out *MemcachedStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.