Documentation ¶
Overview ¶
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 ¶
- Variables
- type CrossVersionObjectReference
- func (*CrossVersionObjectReference) Descriptor() ([]byte, []int)
- func (m *CrossVersionObjectReference) GetApiVersion() string
- func (m *CrossVersionObjectReference) GetKind() string
- func (m *CrossVersionObjectReference) GetName() string
- 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 (m *CrossVersionObjectReference) Unmarshal(dAtA []byte) error
- type HorizontalPodAutoscaler
- func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int)
- func (m *HorizontalPodAutoscaler) GetMetadata() *k8s_io_kubernetes_pkg_api_v1.ObjectMeta
- func (m *HorizontalPodAutoscaler) GetSpec() *HorizontalPodAutoscalerSpec
- func (m *HorizontalPodAutoscaler) GetStatus() *HorizontalPodAutoscalerStatus
- 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 (m *HorizontalPodAutoscaler) Unmarshal(dAtA []byte) error
- type HorizontalPodAutoscalerList
- func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int)
- func (m *HorizontalPodAutoscalerList) GetItems() []*HorizontalPodAutoscaler
- func (m *HorizontalPodAutoscalerList) GetMetadata() *k8s_io_kubernetes_pkg_api_unversioned.ListMeta
- 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 (m *HorizontalPodAutoscalerList) Unmarshal(dAtA []byte) error
- type HorizontalPodAutoscalerSpec
- func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int)
- func (m *HorizontalPodAutoscalerSpec) GetMaxReplicas() int32
- func (m *HorizontalPodAutoscalerSpec) GetMinReplicas() int32
- func (m *HorizontalPodAutoscalerSpec) GetScaleTargetRef() *CrossVersionObjectReference
- func (m *HorizontalPodAutoscalerSpec) GetTargetCPUUtilizationPercentage() int32
- 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 (m *HorizontalPodAutoscalerSpec) Unmarshal(dAtA []byte) error
- type HorizontalPodAutoscalerStatus
- func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int)
- func (m *HorizontalPodAutoscalerStatus) GetCurrentCPUUtilizationPercentage() int32
- func (m *HorizontalPodAutoscalerStatus) GetCurrentReplicas() int32
- func (m *HorizontalPodAutoscalerStatus) GetDesiredReplicas() int32
- func (m *HorizontalPodAutoscalerStatus) GetLastScaleTime() *k8s_io_kubernetes_pkg_api_unversioned.Time
- func (m *HorizontalPodAutoscalerStatus) GetObservedGeneration() int64
- 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 (m *HorizontalPodAutoscalerStatus) Unmarshal(dAtA []byte) error
- type Scale
- func (*Scale) Descriptor() ([]byte, []int)
- func (m *Scale) GetMetadata() *k8s_io_kubernetes_pkg_api_v1.ObjectMeta
- func (m *Scale) GetSpec() *ScaleSpec
- func (m *Scale) GetStatus() *ScaleStatus
- 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 (m *Scale) Unmarshal(dAtA []byte) error
- type ScaleSpec
- func (*ScaleSpec) Descriptor() ([]byte, []int)
- func (m *ScaleSpec) GetReplicas() int32
- 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 (m *ScaleSpec) Unmarshal(dAtA []byte) error
- type ScaleStatus
- func (*ScaleStatus) Descriptor() ([]byte, []int)
- func (m *ScaleStatus) GetReplicas() int32
- func (m *ScaleStatus) GetSelector() string
- 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 (m *ScaleStatus) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type CrossVersionObjectReference ¶
type CrossVersionObjectReference struct { // Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds" Kind *string `protobuf:"bytes,1,opt,name=kind" json:"kind,omitempty"` // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` // API version of the referent // +optional ApiVersion *string `protobuf:"bytes,3,opt,name=apiVersion" json:"apiVersion,omitempty"` XXX_unrecognized []byte `json:"-"` }
CrossVersionObjectReference contains enough information to let you identify the referred resource.
func (*CrossVersionObjectReference) Descriptor ¶
func (*CrossVersionObjectReference) Descriptor() ([]byte, []int)
func (*CrossVersionObjectReference) GetApiVersion ¶
func (m *CrossVersionObjectReference) GetApiVersion() string
func (*CrossVersionObjectReference) GetKind ¶
func (m *CrossVersionObjectReference) GetKind() string
func (*CrossVersionObjectReference) GetName ¶
func (m *CrossVersionObjectReference) GetName() string
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) Unmarshal ¶
func (m *CrossVersionObjectReference) Unmarshal(dAtA []byte) error
type HorizontalPodAutoscaler ¶
type HorizontalPodAutoscaler struct { // Standard object metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata // +optional Metadata *k8s_io_kubernetes_pkg_api_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. // +optional Spec *HorizontalPodAutoscalerSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` // current information about the autoscaler. // +optional Status *HorizontalPodAutoscalerStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` XXX_unrecognized []byte `json:"-"` }
configuration of a horizontal pod autoscaler.
func (*HorizontalPodAutoscaler) Descriptor ¶
func (*HorizontalPodAutoscaler) Descriptor() ([]byte, []int)
func (*HorizontalPodAutoscaler) GetMetadata ¶
func (m *HorizontalPodAutoscaler) GetMetadata() *k8s_io_kubernetes_pkg_api_v1.ObjectMeta
func (*HorizontalPodAutoscaler) GetSpec ¶
func (m *HorizontalPodAutoscaler) GetSpec() *HorizontalPodAutoscalerSpec
func (*HorizontalPodAutoscaler) GetStatus ¶
func (m *HorizontalPodAutoscaler) GetStatus() *HorizontalPodAutoscalerStatus
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) Unmarshal ¶
func (m *HorizontalPodAutoscaler) Unmarshal(dAtA []byte) error
type HorizontalPodAutoscalerList ¶
type HorizontalPodAutoscalerList struct { // Standard list metadata. // +optional Metadata *k8s_io_kubernetes_pkg_api_unversioned.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // list of horizontal pod autoscaler objects. Items []*HorizontalPodAutoscaler `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` XXX_unrecognized []byte `json:"-"` }
list of horizontal pod autoscaler objects.
func (*HorizontalPodAutoscalerList) Descriptor ¶
func (*HorizontalPodAutoscalerList) Descriptor() ([]byte, []int)
func (*HorizontalPodAutoscalerList) GetItems ¶
func (m *HorizontalPodAutoscalerList) GetItems() []*HorizontalPodAutoscaler
func (*HorizontalPodAutoscalerList) GetMetadata ¶
func (m *HorizontalPodAutoscalerList) GetMetadata() *k8s_io_kubernetes_pkg_api_unversioned.ListMeta
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) 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 `protobuf:"bytes,1,opt,name=scaleTargetRef" json:"scaleTargetRef,omitempty"` // lower limit for the number of pods that can be set by the autoscaler, default 1. // +optional MinReplicas *int32 `protobuf:"varint,2,opt,name=minReplicas" json:"minReplicas,omitempty"` // upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. MaxReplicas *int32 `protobuf:"varint,3,opt,name=maxReplicas" json:"maxReplicas,omitempty"` // 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. // +optional TargetCPUUtilizationPercentage *int32 `protobuf:"varint,4,opt,name=targetCPUUtilizationPercentage" json:"targetCPUUtilizationPercentage,omitempty"` XXX_unrecognized []byte `json:"-"` }
specification of a horizontal pod autoscaler.
func (*HorizontalPodAutoscalerSpec) Descriptor ¶
func (*HorizontalPodAutoscalerSpec) Descriptor() ([]byte, []int)
func (*HorizontalPodAutoscalerSpec) GetMaxReplicas ¶
func (m *HorizontalPodAutoscalerSpec) GetMaxReplicas() int32
func (*HorizontalPodAutoscalerSpec) GetMinReplicas ¶
func (m *HorizontalPodAutoscalerSpec) GetMinReplicas() int32
func (*HorizontalPodAutoscalerSpec) GetScaleTargetRef ¶
func (m *HorizontalPodAutoscalerSpec) GetScaleTargetRef() *CrossVersionObjectReference
func (*HorizontalPodAutoscalerSpec) GetTargetCPUUtilizationPercentage ¶
func (m *HorizontalPodAutoscalerSpec) GetTargetCPUUtilizationPercentage() int32
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) Unmarshal ¶
func (m *HorizontalPodAutoscalerSpec) Unmarshal(dAtA []byte) error
type HorizontalPodAutoscalerStatus ¶
type HorizontalPodAutoscalerStatus struct { // most recent generation observed by this autoscaler. // +optional ObservedGeneration *int64 `protobuf:"varint,1,opt,name=observedGeneration" json:"observedGeneration,omitempty"` // last time the HorizontalPodAutoscaler scaled the number of pods; // used by the autoscaler to control how often the number of pods is changed. // +optional LastScaleTime *k8s_io_kubernetes_pkg_api_unversioned.Time `protobuf:"bytes,2,opt,name=lastScaleTime" json:"lastScaleTime,omitempty"` // current number of replicas of pods managed by this autoscaler. CurrentReplicas *int32 `protobuf:"varint,3,opt,name=currentReplicas" json:"currentReplicas,omitempty"` // desired number of replicas of pods managed by this autoscaler. DesiredReplicas *int32 `protobuf:"varint,4,opt,name=desiredReplicas" json:"desiredReplicas,omitempty"` // 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. // +optional CurrentCPUUtilizationPercentage *int32 `protobuf:"varint,5,opt,name=currentCPUUtilizationPercentage" json:"currentCPUUtilizationPercentage,omitempty"` XXX_unrecognized []byte `json:"-"` }
current status of a horizontal pod autoscaler
func (*HorizontalPodAutoscalerStatus) Descriptor ¶
func (*HorizontalPodAutoscalerStatus) Descriptor() ([]byte, []int)
func (*HorizontalPodAutoscalerStatus) GetCurrentCPUUtilizationPercentage ¶
func (m *HorizontalPodAutoscalerStatus) GetCurrentCPUUtilizationPercentage() int32
func (*HorizontalPodAutoscalerStatus) GetCurrentReplicas ¶
func (m *HorizontalPodAutoscalerStatus) GetCurrentReplicas() int32
func (*HorizontalPodAutoscalerStatus) GetDesiredReplicas ¶
func (m *HorizontalPodAutoscalerStatus) GetDesiredReplicas() int32
func (*HorizontalPodAutoscalerStatus) GetLastScaleTime ¶
func (m *HorizontalPodAutoscalerStatus) GetLastScaleTime() *k8s_io_kubernetes_pkg_api_unversioned.Time
func (*HorizontalPodAutoscalerStatus) GetObservedGeneration ¶
func (m *HorizontalPodAutoscalerStatus) GetObservedGeneration() int64
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) Unmarshal ¶
func (m *HorizontalPodAutoscalerStatus) Unmarshal(dAtA []byte) error
type Scale ¶
type Scale struct { // Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. // +optional Metadata *k8s_io_kubernetes_pkg_api_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. // +optional Spec *ScaleSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"` // current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. // +optional Status *ScaleStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"` XXX_unrecognized []byte `json:"-"` }
Scale represents a scaling request for a resource.
func (*Scale) Descriptor ¶
func (*Scale) GetMetadata ¶
func (m *Scale) GetMetadata() *k8s_io_kubernetes_pkg_api_v1.ObjectMeta
func (*Scale) GetStatus ¶
func (m *Scale) GetStatus() *ScaleStatus
func (*Scale) ProtoMessage ¶
func (*Scale) ProtoMessage()
type ScaleSpec ¶
type ScaleSpec struct { // desired number of instances for the scaled object. // +optional Replicas *int32 `protobuf:"varint,1,opt,name=replicas" json:"replicas,omitempty"` XXX_unrecognized []byte `json:"-"` }
ScaleSpec describes the attributes of a scale subresource.
func (*ScaleSpec) Descriptor ¶
func (*ScaleSpec) GetReplicas ¶
func (*ScaleSpec) ProtoMessage ¶
func (*ScaleSpec) ProtoMessage()
type ScaleStatus ¶
type ScaleStatus struct { // actual number of observed instances of the scaled object. Replicas *int32 `protobuf:"varint,1,opt,name=replicas" json:"replicas,omitempty"` // 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://kubernetes.io/docs/user-guide/labels#label-selectors // +optional Selector *string `protobuf:"bytes,2,opt,name=selector" json:"selector,omitempty"` XXX_unrecognized []byte `json:"-"` }
ScaleStatus represents the current status of a scale subresource.
func (*ScaleStatus) Descriptor ¶
func (*ScaleStatus) Descriptor() ([]byte, []int)
func (*ScaleStatus) GetReplicas ¶
func (m *ScaleStatus) GetReplicas() int32
func (*ScaleStatus) GetSelector ¶
func (m *ScaleStatus) GetSelector() string
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) Unmarshal ¶
func (m *ScaleStatus) Unmarshal(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.