Documentation ¶
Overview ¶
+genconversion=true
Package v1 is a generated protocol buffer package. It is generated from these files: k8s.io/kubernetes/pkg/apis/autoscaling/v1/generated.proto It has these top-level messages: CrossVersionObjectReference HorizontalPodAutoscaler HorizontalPodAutoscalerList HorizontalPodAutoscalerSpec HorizontalPodAutoscalerStatus Scale ScaleSpec ScaleStatus
Index ¶
- Constants
- Variables
- func AddToScheme(scheme *runtime.Scheme)
- func Convert_autoscaling_CrossVersionObjectReference_To_v1_CrossVersionObjectReference(in *autoscaling.CrossVersionObjectReference, out *CrossVersionObjectReference, ...) error
- func Convert_autoscaling_HorizontalPodAutoscalerList_To_v1_HorizontalPodAutoscalerList(in *autoscaling.HorizontalPodAutoscalerList, out *HorizontalPodAutoscalerList, ...) error
- func Convert_autoscaling_HorizontalPodAutoscalerSpec_To_v1_HorizontalPodAutoscalerSpec(in *autoscaling.HorizontalPodAutoscalerSpec, out *HorizontalPodAutoscalerSpec, ...) error
- func Convert_autoscaling_HorizontalPodAutoscalerStatus_To_v1_HorizontalPodAutoscalerStatus(in *autoscaling.HorizontalPodAutoscalerStatus, ...) error
- func Convert_autoscaling_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler(in *autoscaling.HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, ...) error
- func Convert_autoscaling_ScaleSpec_To_v1_ScaleSpec(in *autoscaling.ScaleSpec, out *ScaleSpec, s conversion.Scope) error
- func Convert_autoscaling_ScaleStatus_To_v1_ScaleStatus(in *autoscaling.ScaleStatus, out *ScaleStatus, s conversion.Scope) error
- func Convert_autoscaling_Scale_To_v1_Scale(in *autoscaling.Scale, out *Scale, s conversion.Scope) error
- func Convert_v1_CrossVersionObjectReference_To_autoscaling_CrossVersionObjectReference(in *CrossVersionObjectReference, out *autoscaling.CrossVersionObjectReference, ...) error
- func Convert_v1_HorizontalPodAutoscalerList_To_autoscaling_HorizontalPodAutoscalerList(in *HorizontalPodAutoscalerList, out *autoscaling.HorizontalPodAutoscalerList, ...) error
- func Convert_v1_HorizontalPodAutoscalerSpec_To_autoscaling_HorizontalPodAutoscalerSpec(in *HorizontalPodAutoscalerSpec, out *autoscaling.HorizontalPodAutoscalerSpec, ...) error
- func Convert_v1_HorizontalPodAutoscalerStatus_To_autoscaling_HorizontalPodAutoscalerStatus(in *HorizontalPodAutoscalerStatus, ...) error
- func Convert_v1_HorizontalPodAutoscaler_To_autoscaling_HorizontalPodAutoscaler(in *HorizontalPodAutoscaler, out *autoscaling.HorizontalPodAutoscaler, ...) error
- func Convert_v1_ScaleSpec_To_autoscaling_ScaleSpec(in *ScaleSpec, out *autoscaling.ScaleSpec, s conversion.Scope) error
- func Convert_v1_ScaleStatus_To_autoscaling_ScaleStatus(in *ScaleStatus, out *autoscaling.ScaleStatus, s conversion.Scope) error
- func Convert_v1_Scale_To_autoscaling_Scale(in *Scale, out *autoscaling.Scale, s conversion.Scope) error
- func DeepCopy_v1_CrossVersionObjectReference(in CrossVersionObjectReference, out *CrossVersionObjectReference, ...) error
- func DeepCopy_v1_HorizontalPodAutoscaler(in HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, c *conversion.Cloner) error
- func DeepCopy_v1_HorizontalPodAutoscalerList(in HorizontalPodAutoscalerList, out *HorizontalPodAutoscalerList, ...) error
- func DeepCopy_v1_HorizontalPodAutoscalerSpec(in HorizontalPodAutoscalerSpec, out *HorizontalPodAutoscalerSpec, ...) error
- func DeepCopy_v1_HorizontalPodAutoscalerStatus(in HorizontalPodAutoscalerStatus, out *HorizontalPodAutoscalerStatus, ...) error
- func DeepCopy_v1_Scale(in Scale, out *Scale, c *conversion.Cloner) error
- func DeepCopy_v1_ScaleSpec(in ScaleSpec, out *ScaleSpec, c *conversion.Cloner) error
- func DeepCopy_v1_ScaleStatus(in ScaleStatus, out *ScaleStatus, c *conversion.Cloner) error
- func SetDefaults_HorizontalPodAutoscaler(obj *HorizontalPodAutoscaler)
- type CrossVersionObjectReference
- func (x *CrossVersionObjectReference) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *CrossVersionObjectReference) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *CrossVersionObjectReference) Marshal() (data []byte, err error)
- func (m *CrossVersionObjectReference) MarshalTo(data []byte) (int, error)
- func (*CrossVersionObjectReference) ProtoMessage()
- func (m *CrossVersionObjectReference) Reset()
- func (m *CrossVersionObjectReference) Size() (n int)
- func (m *CrossVersionObjectReference) String() string
- func (CrossVersionObjectReference) SwaggerDoc() map[string]string
- func (m *CrossVersionObjectReference) Unmarshal(data []byte) error
- type HorizontalPodAutoscaler
- func (x *HorizontalPodAutoscaler) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *HorizontalPodAutoscaler) CodecEncodeSelf(e *codec1978.Encoder)
- func (obj *HorizontalPodAutoscaler) GetObjectKind() unversioned.ObjectKind
- func (m *HorizontalPodAutoscaler) Marshal() (data []byte, err error)
- func (m *HorizontalPodAutoscaler) MarshalTo(data []byte) (int, error)
- func (*HorizontalPodAutoscaler) ProtoMessage()
- func (m *HorizontalPodAutoscaler) Reset()
- func (m *HorizontalPodAutoscaler) Size() (n int)
- func (m *HorizontalPodAutoscaler) String() string
- func (HorizontalPodAutoscaler) SwaggerDoc() map[string]string
- func (m *HorizontalPodAutoscaler) Unmarshal(data []byte) error
- type HorizontalPodAutoscalerList
- func (x *HorizontalPodAutoscalerList) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *HorizontalPodAutoscalerList) CodecEncodeSelf(e *codec1978.Encoder)
- func (obj *HorizontalPodAutoscalerList) GetObjectKind() unversioned.ObjectKind
- func (m *HorizontalPodAutoscalerList) Marshal() (data []byte, err error)
- func (m *HorizontalPodAutoscalerList) MarshalTo(data []byte) (int, error)
- func (*HorizontalPodAutoscalerList) ProtoMessage()
- func (m *HorizontalPodAutoscalerList) Reset()
- func (m *HorizontalPodAutoscalerList) Size() (n int)
- func (m *HorizontalPodAutoscalerList) String() string
- func (HorizontalPodAutoscalerList) SwaggerDoc() map[string]string
- func (m *HorizontalPodAutoscalerList) Unmarshal(data []byte) error
- type HorizontalPodAutoscalerSpec
- func (x *HorizontalPodAutoscalerSpec) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *HorizontalPodAutoscalerSpec) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *HorizontalPodAutoscalerSpec) Marshal() (data []byte, err error)
- func (m *HorizontalPodAutoscalerSpec) MarshalTo(data []byte) (int, error)
- func (*HorizontalPodAutoscalerSpec) ProtoMessage()
- func (m *HorizontalPodAutoscalerSpec) Reset()
- func (m *HorizontalPodAutoscalerSpec) Size() (n int)
- func (m *HorizontalPodAutoscalerSpec) String() string
- func (HorizontalPodAutoscalerSpec) SwaggerDoc() map[string]string
- func (m *HorizontalPodAutoscalerSpec) Unmarshal(data []byte) error
- type HorizontalPodAutoscalerStatus
- func (x *HorizontalPodAutoscalerStatus) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *HorizontalPodAutoscalerStatus) Marshal() (data []byte, err error)
- func (m *HorizontalPodAutoscalerStatus) MarshalTo(data []byte) (int, error)
- func (*HorizontalPodAutoscalerStatus) ProtoMessage()
- func (m *HorizontalPodAutoscalerStatus) Reset()
- func (m *HorizontalPodAutoscalerStatus) Size() (n int)
- func (m *HorizontalPodAutoscalerStatus) String() string
- func (HorizontalPodAutoscalerStatus) SwaggerDoc() map[string]string
- func (m *HorizontalPodAutoscalerStatus) Unmarshal(data []byte) error
- type Scale
- func (x *Scale) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *Scale) CodecEncodeSelf(e *codec1978.Encoder)
- func (obj *Scale) GetObjectKind() unversioned.ObjectKind
- func (m *Scale) Marshal() (data []byte, err error)
- func (m *Scale) MarshalTo(data []byte) (int, error)
- func (*Scale) ProtoMessage()
- func (m *Scale) Reset()
- func (m *Scale) Size() (n int)
- func (m *Scale) String() string
- func (Scale) SwaggerDoc() map[string]string
- func (m *Scale) Unmarshal(data []byte) error
- type ScaleSpec
- func (x *ScaleSpec) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *ScaleSpec) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *ScaleSpec) Marshal() (data []byte, err error)
- func (m *ScaleSpec) MarshalTo(data []byte) (int, error)
- func (*ScaleSpec) ProtoMessage()
- func (m *ScaleSpec) Reset()
- func (m *ScaleSpec) Size() (n int)
- func (m *ScaleSpec) String() string
- func (ScaleSpec) SwaggerDoc() map[string]string
- func (m *ScaleSpec) Unmarshal(data []byte) error
- type ScaleStatus
- func (x *ScaleStatus) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder)
- func (m *ScaleStatus) Marshal() (data []byte, err error)
- func (m *ScaleStatus) MarshalTo(data []byte) (int, error)
- func (*ScaleStatus) ProtoMessage()
- func (m *ScaleStatus) Reset()
- func (m *ScaleStatus) Size() (n int)
- func (m *ScaleStatus) String() string
- func (ScaleStatus) SwaggerDoc() map[string]string
- func (m *ScaleStatus) Unmarshal(data []byte) error
Constants ¶
View Source
const GroupName = "autoscaling"
GroupName is the group name use in this package
Variables ¶
View Source
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") )
View Source
var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func AddToScheme ¶
func Convert_autoscaling_CrossVersionObjectReference_To_v1_CrossVersionObjectReference ¶
func Convert_autoscaling_CrossVersionObjectReference_To_v1_CrossVersionObjectReference(in *autoscaling.CrossVersionObjectReference, out *CrossVersionObjectReference, s conversion.Scope) error
func Convert_autoscaling_HorizontalPodAutoscalerList_To_v1_HorizontalPodAutoscalerList ¶
func Convert_autoscaling_HorizontalPodAutoscalerList_To_v1_HorizontalPodAutoscalerList(in *autoscaling.HorizontalPodAutoscalerList, out *HorizontalPodAutoscalerList, s conversion.Scope) error
func Convert_autoscaling_HorizontalPodAutoscalerSpec_To_v1_HorizontalPodAutoscalerSpec ¶
func Convert_autoscaling_HorizontalPodAutoscalerSpec_To_v1_HorizontalPodAutoscalerSpec(in *autoscaling.HorizontalPodAutoscalerSpec, out *HorizontalPodAutoscalerSpec, s conversion.Scope) error
func Convert_autoscaling_HorizontalPodAutoscalerStatus_To_v1_HorizontalPodAutoscalerStatus ¶
func Convert_autoscaling_HorizontalPodAutoscalerStatus_To_v1_HorizontalPodAutoscalerStatus(in *autoscaling.HorizontalPodAutoscalerStatus, out *HorizontalPodAutoscalerStatus, s conversion.Scope) error
func Convert_autoscaling_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler ¶
func Convert_autoscaling_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler(in *autoscaling.HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, s conversion.Scope) error
func Convert_autoscaling_ScaleSpec_To_v1_ScaleSpec ¶
func Convert_autoscaling_ScaleSpec_To_v1_ScaleSpec(in *autoscaling.ScaleSpec, out *ScaleSpec, s conversion.Scope) error
func Convert_autoscaling_ScaleStatus_To_v1_ScaleStatus ¶
func Convert_autoscaling_ScaleStatus_To_v1_ScaleStatus(in *autoscaling.ScaleStatus, out *ScaleStatus, s conversion.Scope) error
func Convert_autoscaling_Scale_To_v1_Scale ¶
func Convert_autoscaling_Scale_To_v1_Scale(in *autoscaling.Scale, out *Scale, s conversion.Scope) error
func Convert_v1_CrossVersionObjectReference_To_autoscaling_CrossVersionObjectReference ¶
func Convert_v1_CrossVersionObjectReference_To_autoscaling_CrossVersionObjectReference(in *CrossVersionObjectReference, out *autoscaling.CrossVersionObjectReference, s conversion.Scope) error
func Convert_v1_HorizontalPodAutoscalerList_To_autoscaling_HorizontalPodAutoscalerList ¶
func Convert_v1_HorizontalPodAutoscalerList_To_autoscaling_HorizontalPodAutoscalerList(in *HorizontalPodAutoscalerList, out *autoscaling.HorizontalPodAutoscalerList, s conversion.Scope) error
func Convert_v1_HorizontalPodAutoscalerSpec_To_autoscaling_HorizontalPodAutoscalerSpec ¶
func Convert_v1_HorizontalPodAutoscalerSpec_To_autoscaling_HorizontalPodAutoscalerSpec(in *HorizontalPodAutoscalerSpec, out *autoscaling.HorizontalPodAutoscalerSpec, s conversion.Scope) error
func Convert_v1_HorizontalPodAutoscalerStatus_To_autoscaling_HorizontalPodAutoscalerStatus ¶
func Convert_v1_HorizontalPodAutoscalerStatus_To_autoscaling_HorizontalPodAutoscalerStatus(in *HorizontalPodAutoscalerStatus, out *autoscaling.HorizontalPodAutoscalerStatus, s conversion.Scope) error
func Convert_v1_HorizontalPodAutoscaler_To_autoscaling_HorizontalPodAutoscaler ¶
func Convert_v1_HorizontalPodAutoscaler_To_autoscaling_HorizontalPodAutoscaler(in *HorizontalPodAutoscaler, out *autoscaling.HorizontalPodAutoscaler, s conversion.Scope) error
func Convert_v1_ScaleSpec_To_autoscaling_ScaleSpec ¶
func Convert_v1_ScaleSpec_To_autoscaling_ScaleSpec(in *ScaleSpec, out *autoscaling.ScaleSpec, s conversion.Scope) error
func Convert_v1_ScaleStatus_To_autoscaling_ScaleStatus ¶
func Convert_v1_ScaleStatus_To_autoscaling_ScaleStatus(in *ScaleStatus, out *autoscaling.ScaleStatus, s conversion.Scope) error
func Convert_v1_Scale_To_autoscaling_Scale ¶
func Convert_v1_Scale_To_autoscaling_Scale(in *Scale, out *autoscaling.Scale, s conversion.Scope) error
func DeepCopy_v1_CrossVersionObjectReference ¶
func DeepCopy_v1_CrossVersionObjectReference(in CrossVersionObjectReference, out *CrossVersionObjectReference, c *conversion.Cloner) error
func DeepCopy_v1_HorizontalPodAutoscaler ¶
func DeepCopy_v1_HorizontalPodAutoscaler(in HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, c *conversion.Cloner) error
func DeepCopy_v1_HorizontalPodAutoscalerList ¶
func DeepCopy_v1_HorizontalPodAutoscalerList(in HorizontalPodAutoscalerList, out *HorizontalPodAutoscalerList, c *conversion.Cloner) error
func DeepCopy_v1_HorizontalPodAutoscalerSpec ¶
func DeepCopy_v1_HorizontalPodAutoscalerSpec(in HorizontalPodAutoscalerSpec, out *HorizontalPodAutoscalerSpec, c *conversion.Cloner) error
func DeepCopy_v1_HorizontalPodAutoscalerStatus ¶
func DeepCopy_v1_HorizontalPodAutoscalerStatus(in HorizontalPodAutoscalerStatus, out *HorizontalPodAutoscalerStatus, c *conversion.Cloner) error
func DeepCopy_v1_Scale ¶
func DeepCopy_v1_Scale(in Scale, out *Scale, c *conversion.Cloner) error
func DeepCopy_v1_ScaleSpec ¶
func DeepCopy_v1_ScaleSpec(in ScaleSpec, out *ScaleSpec, c *conversion.Cloner) error
func DeepCopy_v1_ScaleStatus ¶
func DeepCopy_v1_ScaleStatus(in ScaleStatus, out *ScaleStatus, c *conversion.Cloner) error
func SetDefaults_HorizontalPodAutoscaler ¶
func SetDefaults_HorizontalPodAutoscaler(obj *HorizontalPodAutoscaler)
Types ¶
type CrossVersionObjectReference ¶
type CrossVersionObjectReference struct { // Kind of the referent; More info: http://releases.k8s.io/v1.4.0-alpha.0/docs/devel/api-conventions.md#types-kinds" Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"` // Name of the referent; More info: http://releases.k8s.io/v1.4.0-alpha.0/docs/user-guide/identifiers.md#names Name string `json:"name" protobuf:"bytes,2,opt,name=name"` // API version of the referent APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,3,opt,name=apiVersion"` }
CrossVersionObjectReference contains enough information to let you identify the referred resource.
func (*CrossVersionObjectReference) CodecDecodeSelf ¶
func (x *CrossVersionObjectReference) CodecDecodeSelf(d *codec1978.Decoder)
func (*CrossVersionObjectReference) CodecEncodeSelf ¶
func (x *CrossVersionObjectReference) CodecEncodeSelf(e *codec1978.Encoder)
func (*CrossVersionObjectReference) Marshal ¶
func (m *CrossVersionObjectReference) Marshal() (data []byte, err error)
func (*CrossVersionObjectReference) MarshalTo ¶
func (m *CrossVersionObjectReference) MarshalTo(data []byte) (int, error)
func (*CrossVersionObjectReference) ProtoMessage ¶
func (*CrossVersionObjectReference) ProtoMessage()
func (*CrossVersionObjectReference) Reset ¶
func (m *CrossVersionObjectReference) Reset()
func (*CrossVersionObjectReference) Size ¶
func (m *CrossVersionObjectReference) Size() (n int)
func (*CrossVersionObjectReference) String ¶
func (m *CrossVersionObjectReference) String() string
func (CrossVersionObjectReference) SwaggerDoc ¶
func (CrossVersionObjectReference) SwaggerDoc() map[string]string
func (*CrossVersionObjectReference) Unmarshal ¶
func (m *CrossVersionObjectReference) Unmarshal(data []byte) error
type HorizontalPodAutoscaler ¶
type HorizontalPodAutoscaler struct { unversioned.TypeMeta `json:",inline"` // Standard object metadata. More info: http://releases.k8s.io/v1.4.0-alpha.0/docs/devel/api-conventions.md#metadata v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // behaviour of autoscaler. More info: http://releases.k8s.io/v1.4.0-alpha.0/docs/devel/api-conventions.md#spec-and-status. Spec HorizontalPodAutoscalerSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // current information about the autoscaler. Status HorizontalPodAutoscalerStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
configuration of a horizontal pod autoscaler.
func (*HorizontalPodAutoscaler) CodecDecodeSelf ¶
func (x *HorizontalPodAutoscaler) CodecDecodeSelf(d *codec1978.Decoder)
func (*HorizontalPodAutoscaler) CodecEncodeSelf ¶
func (x *HorizontalPodAutoscaler) CodecEncodeSelf(e *codec1978.Encoder)
func (*HorizontalPodAutoscaler) GetObjectKind ¶
func (obj *HorizontalPodAutoscaler) GetObjectKind() unversioned.ObjectKind
func (*HorizontalPodAutoscaler) Marshal ¶
func (m *HorizontalPodAutoscaler) Marshal() (data []byte, err error)
func (*HorizontalPodAutoscaler) MarshalTo ¶
func (m *HorizontalPodAutoscaler) MarshalTo(data []byte) (int, error)
func (*HorizontalPodAutoscaler) ProtoMessage ¶
func (*HorizontalPodAutoscaler) ProtoMessage()
func (*HorizontalPodAutoscaler) Reset ¶
func (m *HorizontalPodAutoscaler) Reset()
func (*HorizontalPodAutoscaler) Size ¶
func (m *HorizontalPodAutoscaler) Size() (n int)
func (*HorizontalPodAutoscaler) String ¶
func (m *HorizontalPodAutoscaler) String() string
func (HorizontalPodAutoscaler) SwaggerDoc ¶
func (HorizontalPodAutoscaler) SwaggerDoc() map[string]string
func (*HorizontalPodAutoscaler) Unmarshal ¶
func (m *HorizontalPodAutoscaler) Unmarshal(data []byte) error
type HorizontalPodAutoscalerList ¶
type HorizontalPodAutoscalerList struct { unversioned.TypeMeta `json:",inline"` // Standard list metadata. unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // list of horizontal pod autoscaler objects. Items []HorizontalPodAutoscaler `json:"items" protobuf:"bytes,2,rep,name=items"` }
list of horizontal pod autoscaler objects.
func (*HorizontalPodAutoscalerList) CodecDecodeSelf ¶
func (x *HorizontalPodAutoscalerList) CodecDecodeSelf(d *codec1978.Decoder)
func (*HorizontalPodAutoscalerList) CodecEncodeSelf ¶
func (x *HorizontalPodAutoscalerList) CodecEncodeSelf(e *codec1978.Encoder)
func (*HorizontalPodAutoscalerList) GetObjectKind ¶
func (obj *HorizontalPodAutoscalerList) GetObjectKind() unversioned.ObjectKind
func (*HorizontalPodAutoscalerList) Marshal ¶
func (m *HorizontalPodAutoscalerList) Marshal() (data []byte, err error)
func (*HorizontalPodAutoscalerList) MarshalTo ¶
func (m *HorizontalPodAutoscalerList) MarshalTo(data []byte) (int, error)
func (*HorizontalPodAutoscalerList) ProtoMessage ¶
func (*HorizontalPodAutoscalerList) ProtoMessage()
func (*HorizontalPodAutoscalerList) Reset ¶
func (m *HorizontalPodAutoscalerList) Reset()
func (*HorizontalPodAutoscalerList) Size ¶
func (m *HorizontalPodAutoscalerList) Size() (n int)
func (*HorizontalPodAutoscalerList) String ¶
func (m *HorizontalPodAutoscalerList) String() string
func (HorizontalPodAutoscalerList) SwaggerDoc ¶
func (HorizontalPodAutoscalerList) SwaggerDoc() map[string]string
func (*HorizontalPodAutoscalerList) Unmarshal ¶
func (m *HorizontalPodAutoscalerList) Unmarshal(data []byte) error
type HorizontalPodAutoscalerSpec ¶
type HorizontalPodAutoscalerSpec struct { // reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption // and will set the desired number of pods by using its Scale subresource. ScaleTargetRef CrossVersionObjectReference `json:"scaleTargetRef" protobuf:"bytes,1,opt,name=scaleTargetRef"` // lower limit for the number of pods that can be set by the autoscaler, default 1. MinReplicas *int32 `json:"minReplicas,omitempty" protobuf:"varint,2,opt,name=minReplicas"` // upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. MaxReplicas int32 `json:"maxReplicas" protobuf:"varint,3,opt,name=maxReplicas"` // target average CPU utilization (represented as a percentage of requested CPU) over all the pods; // if not specified the default autoscaling policy will be used. TargetCPUUtilizationPercentage *int32 `json:"targetCPUUtilizationPercentage,omitempty" protobuf:"varint,4,opt,name=targetCPUUtilizationPercentage"` }
specification of a horizontal pod autoscaler.
func (*HorizontalPodAutoscalerSpec) CodecDecodeSelf ¶
func (x *HorizontalPodAutoscalerSpec) CodecDecodeSelf(d *codec1978.Decoder)
func (*HorizontalPodAutoscalerSpec) CodecEncodeSelf ¶
func (x *HorizontalPodAutoscalerSpec) CodecEncodeSelf(e *codec1978.Encoder)
func (*HorizontalPodAutoscalerSpec) Marshal ¶
func (m *HorizontalPodAutoscalerSpec) Marshal() (data []byte, err error)
func (*HorizontalPodAutoscalerSpec) MarshalTo ¶
func (m *HorizontalPodAutoscalerSpec) MarshalTo(data []byte) (int, error)
func (*HorizontalPodAutoscalerSpec) ProtoMessage ¶
func (*HorizontalPodAutoscalerSpec) ProtoMessage()
func (*HorizontalPodAutoscalerSpec) Reset ¶
func (m *HorizontalPodAutoscalerSpec) Reset()
func (*HorizontalPodAutoscalerSpec) Size ¶
func (m *HorizontalPodAutoscalerSpec) Size() (n int)
func (*HorizontalPodAutoscalerSpec) String ¶
func (m *HorizontalPodAutoscalerSpec) String() string
func (HorizontalPodAutoscalerSpec) SwaggerDoc ¶
func (HorizontalPodAutoscalerSpec) SwaggerDoc() map[string]string
func (*HorizontalPodAutoscalerSpec) Unmarshal ¶
func (m *HorizontalPodAutoscalerSpec) Unmarshal(data []byte) error
type HorizontalPodAutoscalerStatus ¶
type HorizontalPodAutoscalerStatus struct { // most recent generation observed by this autoscaler. ObservedGeneration *int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` // last time the HorizontalPodAutoscaler scaled the number of pods; // used by the autoscaler to control how often the number of pods is changed. LastScaleTime *unversioned.Time `json:"lastScaleTime,omitempty" protobuf:"bytes,2,opt,name=lastScaleTime"` // current number of replicas of pods managed by this autoscaler. CurrentReplicas int32 `json:"currentReplicas" protobuf:"varint,3,opt,name=currentReplicas"` // desired number of replicas of pods managed by this autoscaler. DesiredReplicas int32 `json:"desiredReplicas" protobuf:"varint,4,opt,name=desiredReplicas"` // current average CPU utilization over all pods, represented as a percentage of requested CPU, // e.g. 70 means that an average pod is using now 70% of its requested CPU. CurrentCPUUtilizationPercentage *int32 `json:"currentCPUUtilizationPercentage,omitempty" protobuf:"varint,5,opt,name=currentCPUUtilizationPercentage"` }
current status of a horizontal pod autoscaler
func (*HorizontalPodAutoscalerStatus) CodecDecodeSelf ¶
func (x *HorizontalPodAutoscalerStatus) CodecDecodeSelf(d *codec1978.Decoder)
func (*HorizontalPodAutoscalerStatus) CodecEncodeSelf ¶
func (x *HorizontalPodAutoscalerStatus) CodecEncodeSelf(e *codec1978.Encoder)
func (*HorizontalPodAutoscalerStatus) Marshal ¶
func (m *HorizontalPodAutoscalerStatus) Marshal() (data []byte, err error)
func (*HorizontalPodAutoscalerStatus) MarshalTo ¶
func (m *HorizontalPodAutoscalerStatus) MarshalTo(data []byte) (int, error)
func (*HorizontalPodAutoscalerStatus) ProtoMessage ¶
func (*HorizontalPodAutoscalerStatus) ProtoMessage()
func (*HorizontalPodAutoscalerStatus) Reset ¶
func (m *HorizontalPodAutoscalerStatus) Reset()
func (*HorizontalPodAutoscalerStatus) Size ¶
func (m *HorizontalPodAutoscalerStatus) Size() (n int)
func (*HorizontalPodAutoscalerStatus) String ¶
func (m *HorizontalPodAutoscalerStatus) String() string
func (HorizontalPodAutoscalerStatus) SwaggerDoc ¶
func (HorizontalPodAutoscalerStatus) SwaggerDoc() map[string]string
func (*HorizontalPodAutoscalerStatus) Unmarshal ¶
func (m *HorizontalPodAutoscalerStatus) Unmarshal(data []byte) error
type Scale ¶
type Scale struct { unversioned.TypeMeta `json:",inline"` // Standard object metadata; More info: http://releases.k8s.io/v1.4.0-alpha.0/docs/devel/api-conventions.md#metadata. v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // defines the behavior of the scale. More info: http://releases.k8s.io/v1.4.0-alpha.0/docs/devel/api-conventions.md#spec-and-status. Spec ScaleSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // current status of the scale. More info: http://releases.k8s.io/v1.4.0-alpha.0/docs/devel/api-conventions.md#spec-and-status. Read-only. Status ScaleStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
Scale represents a scaling request for a resource.
func (*Scale) CodecDecodeSelf ¶
func (*Scale) CodecEncodeSelf ¶
func (*Scale) GetObjectKind ¶
func (obj *Scale) GetObjectKind() unversioned.ObjectKind
func (*Scale) ProtoMessage ¶
func (*Scale) ProtoMessage()
func (Scale) SwaggerDoc ¶
type ScaleSpec ¶
type ScaleSpec struct { // desired number of instances for the scaled object. Replicas int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"` }
ScaleSpec describes the attributes of a scale subresource.
func (*ScaleSpec) CodecDecodeSelf ¶
func (*ScaleSpec) CodecEncodeSelf ¶
func (*ScaleSpec) ProtoMessage ¶
func (*ScaleSpec) ProtoMessage()
func (ScaleSpec) SwaggerDoc ¶
type ScaleStatus ¶
type ScaleStatus struct { // actual number of observed instances of the scaled object. Replicas int32 `json:"replicas" protobuf:"varint,1,opt,name=replicas"` // label query over pods that should match the replicas count. This is same // as the label selector but in the string format to avoid introspection // by clients. The string will be in the same format as the query-param syntax. // More info about label selectors: http://releases.k8s.io/v1.4.0-alpha.0/docs/user-guide/labels.md#label-selectors Selector string `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"` }
ScaleStatus represents the current status of a scale subresource.
func (*ScaleStatus) CodecDecodeSelf ¶
func (x *ScaleStatus) CodecDecodeSelf(d *codec1978.Decoder)
func (*ScaleStatus) CodecEncodeSelf ¶
func (x *ScaleStatus) CodecEncodeSelf(e *codec1978.Encoder)
func (*ScaleStatus) Marshal ¶
func (m *ScaleStatus) Marshal() (data []byte, err error)
func (*ScaleStatus) ProtoMessage ¶
func (*ScaleStatus) ProtoMessage()
func (*ScaleStatus) Reset ¶
func (m *ScaleStatus) Reset()
func (*ScaleStatus) Size ¶
func (m *ScaleStatus) Size() (n int)
func (*ScaleStatus) String ¶
func (m *ScaleStatus) String() string
func (ScaleStatus) SwaggerDoc ¶
func (ScaleStatus) SwaggerDoc() map[string]string
func (*ScaleStatus) Unmarshal ¶
func (m *ScaleStatus) Unmarshal(data []byte) error
Click to show internal directories.
Click to hide internal directories.