Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cache v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/crossplaneio/crossplane/pkg/apis/cache +k8s:defaulter-gen=TypeMeta +groupName=cache.crossplane.io
Package v1alpha1 contains API Schema definitions for the cache v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/crossplaneio/crossplane/pkg/apis/cache +k8s:defaulter-gen=TypeMeta +groupName=cache.crossplane.io
Index ¶
- Constants
- Variables
- type RedisCluster
- func (c *RedisCluster) ClaimStatus() *corev1alpha1.ResourceClaimStatus
- func (c *RedisCluster) ClassRef() *corev1.ObjectReference
- func (in *RedisCluster) DeepCopy() *RedisCluster
- func (in *RedisCluster) DeepCopyInto(out *RedisCluster)
- func (in *RedisCluster) DeepCopyObject() runtime.Object
- func (c *RedisCluster) ObjectReference() *corev1.ObjectReference
- func (c *RedisCluster) OwnerReference() metav1.OwnerReference
- func (c *RedisCluster) ResourceRef() *corev1.ObjectReference
- func (c *RedisCluster) SetResourceRef(ref *corev1.ObjectReference)
- type RedisClusterList
- type RedisClusterSpec
Constants ¶
const ( Group = "cache.crossplane.io" Version = "v1alpha1" APIVersion = Group + "/" + Version RedisClusterKind = "rediscluster" RedisClusterKindAPIVersion = RedisClusterKind + "." + APIVersion )
Kubernetes Group, Version, and Kind metadata.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
This section is empty.
Types ¶
type RedisCluster ¶
type RedisCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RedisClusterSpec `json:"spec,omitempty"` Status corev1alpha1.ResourceClaimStatus `json:"status,omitempty"` }
RedisCluster is the the CRD type for abstract Redis clusters. Crossplane considers a single Redis instance a 'cluster' of one instance. +k8s:openapi-gen=true +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.bindingPhase" +kubebuilder:printcolumn:name="CLASS",type="string",JSONPath=".spec.classReference.name" +kubebuilder:printcolumn:name="VERSION",type="string",JSONPath=".spec.engineVersion" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
func (*RedisCluster) ClaimStatus ¶
func (c *RedisCluster) ClaimStatus() *corev1alpha1.ResourceClaimStatus
ClaimStatus returns the status of this resource claim
func (*RedisCluster) ClassRef ¶
func (c *RedisCluster) ClassRef() *corev1.ObjectReference
ClassRef return the reference to the resource class this claim uses.
func (*RedisCluster) DeepCopy ¶
func (in *RedisCluster) DeepCopy() *RedisCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisCluster.
func (*RedisCluster) DeepCopyInto ¶
func (in *RedisCluster) DeepCopyInto(out *RedisCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisCluster) DeepCopyObject ¶
func (in *RedisCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RedisCluster) ObjectReference ¶
func (c *RedisCluster) ObjectReference() *corev1.ObjectReference
ObjectReference returns the Kubernetes object reference to this resource.
func (*RedisCluster) OwnerReference ¶
func (c *RedisCluster) OwnerReference() metav1.OwnerReference
OwnerReference return an owner reference that points to this claim
func (*RedisCluster) ResourceRef ¶
func (c *RedisCluster) ResourceRef() *corev1.ObjectReference
ResourceRef returns the reference to the resource this claim is bound to.
func (*RedisCluster) SetResourceRef ¶
func (c *RedisCluster) SetResourceRef(ref *corev1.ObjectReference)
SetResourceRef sets the reference to the resource this claim is bound to.
type RedisClusterList ¶
type RedisClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []RedisCluster `json:"items"` }
RedisClusterList contains a list of RedisCluster
func (*RedisClusterList) DeepCopy ¶
func (in *RedisClusterList) DeepCopy() *RedisClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterList.
func (*RedisClusterList) DeepCopyInto ¶
func (in *RedisClusterList) DeepCopyInto(out *RedisClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisClusterList) DeepCopyObject ¶
func (in *RedisClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisClusterSpec ¶
type RedisClusterSpec struct { ClassRef *corev1.ObjectReference `json:"classReference,omitempty"` ResourceRef *corev1.ObjectReference `json:"resourceName,omitempty"` Selector metav1.LabelSelector `json:"selector,omitempty"` // EngineVersion specifies the desired Redis version. // +kubebuilder:validation:Enum=2.6,2.8,3.2,4.0,5.0 EngineVersion string `json:"engineVersion"` }
RedisClusterSpec defines the desired state of RedisCluster
func (*RedisClusterSpec) DeepCopy ¶
func (in *RedisClusterSpec) DeepCopy() *RedisClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterSpec.
func (*RedisClusterSpec) DeepCopyInto ¶
func (in *RedisClusterSpec) DeepCopyInto(out *RedisClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.