v1alpha1

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains portable resource claims for caching services such as Redis clusters. +kubebuilder:object:generate=true +groupName=cache.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "cache.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
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}
)
View Source
var (
	RedisClusterKind             = reflect.TypeOf(RedisCluster{}).Name()
	RedisClusterKindAPIVersion   = RedisClusterKind + "." + SchemeGroupVersion.String()
	RedisClusterGroupVersionKind = SchemeGroupVersion.WithKind(RedisClusterKind)
)

RedisCluster type metadata.

View Source
var (
	RedisClusterClassKind             = reflect.TypeOf(RedisClusterClass{}).Name()
	RedisClusterClassKindAPIVersion   = RedisClusterClassKind + "." + SchemeGroupVersion.String()
	RedisClusterClassGroupVersionKind = SchemeGroupVersion.WithKind(RedisClusterClassKind)
)

RedisClusterClass type metadata.

View Source
var (
	RedisClusterClassListKind             = reflect.TypeOf(RedisClusterClassList{}).Name()
	RedisClusterClassListKindAPIVersion   = RedisClusterClassListKind + "." + SchemeGroupVersion.String()
	RedisClusterClassListGroupVersionKind = SchemeGroupVersion.WithKind(RedisClusterClassListKind)
)

RedisClusterClassList type metadata.

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 runtimev1alpha1.ResourceClaimStatus `json:"status,omitempty"`
}

A RedisCluster is a portable resource claim that may be satisfied by binding to a Redis managed resource such as a GCP CloudMemorystore instance or an AWS ReplicationGroup. Despite the name RedisCluster claims may bind to Redis managed resources that are a single node, or not in cluster mode. +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.bindingPhase" +kubebuilder:printcolumn:name="CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="VERSION",type="string",JSONPath=".spec.engineVersion" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status

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) GetBindingPhase

func (rc *RedisCluster) GetBindingPhase() runtimev1alpha1.BindingPhase

GetBindingPhase of this RedisCluster.

func (*RedisCluster) GetPortableClassReference

func (rc *RedisCluster) GetPortableClassReference() *corev1.LocalObjectReference

GetPortableClassReference of this RedisCluster.

func (*RedisCluster) GetResourceReference

func (rc *RedisCluster) GetResourceReference() *corev1.ObjectReference

GetResourceReference of this RedisCluster.

func (*RedisCluster) GetWriteConnectionSecretToReference

func (rc *RedisCluster) GetWriteConnectionSecretToReference() corev1.LocalObjectReference

GetWriteConnectionSecretToReference of this RedisCluster.

func (*RedisCluster) SetBindingPhase

func (rc *RedisCluster) SetBindingPhase(p runtimev1alpha1.BindingPhase)

SetBindingPhase of this RedisCluster.

func (*RedisCluster) SetConditions

func (rc *RedisCluster) SetConditions(c ...runtimev1alpha1.Condition)

SetConditions of this RedisCluster.

func (*RedisCluster) SetPortableClassReference

func (rc *RedisCluster) SetPortableClassReference(r *corev1.LocalObjectReference)

SetPortableClassReference of this RedisCluster.

func (*RedisCluster) SetResourceReference

func (rc *RedisCluster) SetResourceReference(r *corev1.ObjectReference)

SetResourceReference of this RedisCluster.

func (*RedisCluster) SetWriteConnectionSecretToReference

func (rc *RedisCluster) SetWriteConnectionSecretToReference(r corev1.LocalObjectReference)

SetWriteConnectionSecretToReference of this RedisCluster.

type RedisClusterClass

type RedisClusterClass struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	runtimev1alpha1.PortableClass `json:",inline"`
}

RedisClusterClass contains a namespace-scoped portable class for RedisCluster

func (*RedisClusterClass) DeepCopy

func (in *RedisClusterClass) DeepCopy() *RedisClusterClass

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterClass.

func (*RedisClusterClass) DeepCopyInto

func (in *RedisClusterClass) DeepCopyInto(out *RedisClusterClass)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RedisClusterClass) DeepCopyObject

func (in *RedisClusterClass) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RedisClusterClassList

type RedisClusterClassList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []RedisClusterClass `json:"items"`
}

RedisClusterClassList contains a list of RedisClusterClass.

func (*RedisClusterClassList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisClusterClassList.

func (*RedisClusterClassList) DeepCopyInto

func (in *RedisClusterClassList) DeepCopyInto(out *RedisClusterClassList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RedisClusterClassList) DeepCopyObject

func (in *RedisClusterClassList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*RedisClusterClassList) GetPortableClassItems

func (rc *RedisClusterClassList) GetPortableClassItems() []resource.PortableClass

GetPortableClassItems of this RedisClusterClassList.

func (*RedisClusterClassList) SetPortableClassItems

func (rc *RedisClusterClassList) SetPortableClassItems(r []resource.PortableClass)

SetPortableClassItems of this RedisClusterClassList.

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 {
	runtimev1alpha1.ResourceClaimSpec `json:",inline"`

	// EngineVersion specifies the desired Redis version.
	// +kubebuilder:validation:Enum="2.6";"2.8";"3.2";"4.0";"5.0"
	EngineVersion string `json:"engineVersion,omitempty"`
}

RedisClusterSpec specifies the desired state of a 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL