Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=ianlewis.org
Index ¶
Constants ¶
const ( ReplicatedRuleType = "replicated" ShardedRuleType = "sharded" )
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: ianlewisorg.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func RegisterDeepCopies
deprecated
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type McRouterSpec ¶
type McRouterSpec struct { Image string `json:"image,omitempty"` Resources corev1.ResourceRequirements `json:"resources,omitempty"` Port *int32 `json:"port,omitempty"` }
func (*McRouterSpec) ApplyDefaults ¶
func (s *McRouterSpec) ApplyDefaults(p *MemcachedProxy)
func (*McRouterSpec) DeepCopy ¶
func (in *McRouterSpec) DeepCopy() *McRouterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new McRouterSpec.
func (*McRouterSpec) DeepCopyInto ¶
func (in *McRouterSpec) DeepCopyInto(out *McRouterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MemcachedProxy ¶
type MemcachedProxy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MemcachedProxySpec `json:"spec"` Status MemcachedProxyStatus `json:"status"` }
MemcachedProxy enables creating a managed memcached cluster.
func (*MemcachedProxy) ApplyDefaults ¶
func (p *MemcachedProxy) ApplyDefaults()
func (*MemcachedProxy) DeepCopy ¶
func (in *MemcachedProxy) DeepCopy() *MemcachedProxy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcachedProxy.
func (*MemcachedProxy) DeepCopyInto ¶
func (in *MemcachedProxy) DeepCopyInto(out *MemcachedProxy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MemcachedProxy) DeepCopyObject ¶
func (in *MemcachedProxy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MemcachedProxyList ¶
type MemcachedProxyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []MemcachedProxy `json:"items"` }
MemcachedProxyList is a list of MemcachedProxy objects.
func (*MemcachedProxyList) DeepCopy ¶
func (in *MemcachedProxyList) DeepCopy() *MemcachedProxyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcachedProxyList.
func (*MemcachedProxyList) DeepCopyInto ¶
func (in *MemcachedProxyList) DeepCopyInto(out *MemcachedProxyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MemcachedProxyList) DeepCopyObject ¶
func (in *MemcachedProxyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MemcachedProxySpec ¶
type MemcachedProxySpec struct { Rules RuleSpec `json:"rules"` McRouter McRouterSpec `json:"mcrouter"` }
MemcachedProxySpec is the specification of the desired state of a MemcachedProxy.
func (*MemcachedProxySpec) ApplyDefaults ¶
func (s *MemcachedProxySpec) ApplyDefaults(p *MemcachedProxy)
func (*MemcachedProxySpec) DeepCopy ¶
func (in *MemcachedProxySpec) DeepCopy() *MemcachedProxySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcachedProxySpec.
func (*MemcachedProxySpec) DeepCopyInto ¶
func (in *MemcachedProxySpec) DeepCopyInto(out *MemcachedProxySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MemcachedProxySpec) GetHash ¶
func (s *MemcachedProxySpec) GetHash() (string, error)
UpdateHash updates the
type MemcachedProxyStatus ¶
type MemcachedProxyStatus struct { // The generation observed by the MemcachedProxy controller. Not used currently as generation is not updated for CRDs. // Proper support for CRDs is being worked on. // See: https://github.com/kubernetes/community/pull/913 // TODO: implement ObservedGeneration // ObservedGeneration int64 `json:"observedGeneration,omitempty"` // This is a workaround for the fact that Generation and sub-resources are not fully supported for CRDs yet. // We assume that end users will not update the status object and especially this field. ObservedSpecHash string `json:"observedSpecHash,omitempty"` }
MemcachedProxyStatus is the most recently observed status of the cluster
func (*MemcachedProxyStatus) DeepCopy ¶
func (in *MemcachedProxyStatus) DeepCopy() *MemcachedProxyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemcachedProxyStatus.
func (*MemcachedProxyStatus) DeepCopyInto ¶
func (in *MemcachedProxyStatus) DeepCopyInto(out *MemcachedProxyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RuleSpec ¶
type RuleSpec struct { Type string `json:"type"` Service *ServiceSpec `json:"service,omitempty"` Children []RuleSpec `json:"children,omitempty"` }
RuleSpec defines a routing rule to either a list of services or child rules
func (*RuleSpec) ApplyDefaults ¶
func (r *RuleSpec) ApplyDefaults(p *MemcachedProxy)
func (*RuleSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleSpec.
func (*RuleSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceSpec ¶
type ServiceSpec struct { Name string `json:"name"` Namespace string `json:"namespace"` Port intstr.IntOrString `json:"port"` }
func (*ServiceSpec) ApplyDefaults ¶
func (s *ServiceSpec) ApplyDefaults(p *MemcachedProxy)
func (*ServiceSpec) DeepCopy ¶
func (in *ServiceSpec) DeepCopy() *ServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSpec.
func (*ServiceSpec) DeepCopyInto ¶
func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.