Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder is a SchemaBuilder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is an AddToSchema AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: keda.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ObjectReference ¶
type ObjectReference struct { DeploymentName string `json:"deploymentName"` ContainerName string `json:"containerName"` }
ObjectReference holds the a reference to the deployment this ScaledObject applies
func (*ObjectReference) DeepCopy ¶
func (in *ObjectReference) DeepCopy() *ObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
func (*ObjectReference) DeepCopyInto ¶
func (in *ObjectReference) DeepCopyInto(out *ObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScaleTriggers ¶
type ScaleTriggers struct { Type string `json:"type"` Name string `json:"name"` Metadata map[string]string `json:"metadata"` }
func (*ScaleTriggers) DeepCopy ¶
func (in *ScaleTriggers) DeepCopy() *ScaleTriggers
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleTriggers.
func (*ScaleTriggers) DeepCopyInto ¶
func (in *ScaleTriggers) DeepCopyInto(out *ScaleTriggers)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScaledObject ¶
type ScaledObject struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ScaledObjectSpec `json:"spec"` Status ScaledObjectStatus `json:"status"` }
ScaledObject is a spoecification for a ScaledObject resource
func (*ScaledObject) DeepCopy ¶
func (in *ScaledObject) DeepCopy() *ScaledObject
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaledObject.
func (*ScaledObject) DeepCopyInto ¶
func (in *ScaledObject) DeepCopyInto(out *ScaledObject)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScaledObject) DeepCopyObject ¶
func (in *ScaledObject) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScaledObjectList ¶
type ScaledObjectList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ScaledObject `json:"items"` }
ScaledObjectList is a list of ScaledObject resources
func (*ScaledObjectList) DeepCopy ¶
func (in *ScaledObjectList) DeepCopy() *ScaledObjectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaledObjectList.
func (*ScaledObjectList) DeepCopyInto ¶
func (in *ScaledObjectList) DeepCopyInto(out *ScaledObjectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScaledObjectList) DeepCopyObject ¶
func (in *ScaledObjectList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScaledObjectSpec ¶
type ScaledObjectSpec struct { ScaleTargetRef ObjectReference `json:"scaleTargetRef"` PollingInterval *int32 `json:"pollingInterval"` CooldownPeriod *int32 `json:"cooldownPeriod"` MinReplicaCount *int32 `json:"minReplicaCount"` MaxReplicaCount *int32 `json:"maxReplicaCount"` Triggers []ScaleTriggers `json:"triggers"` }
ScaledObjectSpec is the spec for a ScaledObject resource
func (*ScaledObjectSpec) DeepCopy ¶
func (in *ScaledObjectSpec) DeepCopy() *ScaledObjectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaledObjectSpec.
func (*ScaledObjectSpec) DeepCopyInto ¶
func (in *ScaledObjectSpec) DeepCopyInto(out *ScaledObjectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScaledObjectStatus ¶
type ScaledObjectStatus struct { LastActiveTime *metav1.Time `json:"lastActiveTime,omitempty"` CurrentReplicas int32 `json:"currentReplicas"` DesiredReplicas int32 `json:"desiredReplicas"` }
ScaledObjectStatus is the status for a ScaledObject resource
func (*ScaledObjectStatus) DeepCopy ¶
func (in *ScaledObjectStatus) DeepCopy() *ScaledObjectStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaledObjectStatus.
func (*ScaledObjectStatus) DeepCopyInto ¶
func (in *ScaledObjectStatus) DeepCopyInto(out *ScaledObjectStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.