v1

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

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

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 AddToScheme(scheme *runtime.Scheme)

func Convert_autoscaling_CrossVersionObjectReference_To_v1_CrossVersionObjectReference added in v1.3.0

func Convert_autoscaling_CrossVersionObjectReference_To_v1_CrossVersionObjectReference(in *autoscaling.CrossVersionObjectReference, out *CrossVersionObjectReference, s conversion.Scope) error

func Convert_autoscaling_HorizontalPodAutoscalerList_To_v1_HorizontalPodAutoscalerList added in v1.3.0

func Convert_autoscaling_HorizontalPodAutoscalerList_To_v1_HorizontalPodAutoscalerList(in *autoscaling.HorizontalPodAutoscalerList, out *HorizontalPodAutoscalerList, s conversion.Scope) error

func Convert_autoscaling_HorizontalPodAutoscalerSpec_To_v1_HorizontalPodAutoscalerSpec added in v1.3.0

func Convert_autoscaling_HorizontalPodAutoscalerSpec_To_v1_HorizontalPodAutoscalerSpec(in *autoscaling.HorizontalPodAutoscalerSpec, out *HorizontalPodAutoscalerSpec, s conversion.Scope) error

func Convert_autoscaling_HorizontalPodAutoscalerStatus_To_v1_HorizontalPodAutoscalerStatus added in v1.3.0

func Convert_autoscaling_HorizontalPodAutoscalerStatus_To_v1_HorizontalPodAutoscalerStatus(in *autoscaling.HorizontalPodAutoscalerStatus, out *HorizontalPodAutoscalerStatus, s conversion.Scope) error

func Convert_autoscaling_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler added in v1.3.0

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 added in v1.3.0

func Convert_v1_CrossVersionObjectReference_To_autoscaling_CrossVersionObjectReference(in *CrossVersionObjectReference, out *autoscaling.CrossVersionObjectReference, s conversion.Scope) error

func Convert_v1_HorizontalPodAutoscalerList_To_autoscaling_HorizontalPodAutoscalerList added in v1.3.0

func Convert_v1_HorizontalPodAutoscalerList_To_autoscaling_HorizontalPodAutoscalerList(in *HorizontalPodAutoscalerList, out *autoscaling.HorizontalPodAutoscalerList, s conversion.Scope) error

func Convert_v1_HorizontalPodAutoscalerSpec_To_autoscaling_HorizontalPodAutoscalerSpec added in v1.3.0

func Convert_v1_HorizontalPodAutoscalerSpec_To_autoscaling_HorizontalPodAutoscalerSpec(in *HorizontalPodAutoscalerSpec, out *autoscaling.HorizontalPodAutoscalerSpec, s conversion.Scope) error

func Convert_v1_HorizontalPodAutoscalerStatus_To_autoscaling_HorizontalPodAutoscalerStatus added in v1.3.0

func Convert_v1_HorizontalPodAutoscalerStatus_To_autoscaling_HorizontalPodAutoscalerStatus(in *HorizontalPodAutoscalerStatus, out *autoscaling.HorizontalPodAutoscalerStatus, s conversion.Scope) error

func Convert_v1_HorizontalPodAutoscaler_To_autoscaling_HorizontalPodAutoscaler added in v1.3.0

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 added in v1.3.0

func DeepCopy_v1_CrossVersionObjectReference(in CrossVersionObjectReference, out *CrossVersionObjectReference, c *conversion.Cloner) error

func DeepCopy_v1_HorizontalPodAutoscaler added in v1.3.0

func DeepCopy_v1_HorizontalPodAutoscaler(in HorizontalPodAutoscaler, out *HorizontalPodAutoscaler, c *conversion.Cloner) error

func DeepCopy_v1_HorizontalPodAutoscalerList added in v1.3.0

func DeepCopy_v1_HorizontalPodAutoscalerList(in HorizontalPodAutoscalerList, out *HorizontalPodAutoscalerList, c *conversion.Cloner) error

func DeepCopy_v1_HorizontalPodAutoscalerSpec added in v1.3.0

func DeepCopy_v1_HorizontalPodAutoscalerSpec(in HorizontalPodAutoscalerSpec, out *HorizontalPodAutoscalerSpec, c *conversion.Cloner) error

func DeepCopy_v1_HorizontalPodAutoscalerStatus added in v1.3.0

func DeepCopy_v1_HorizontalPodAutoscalerStatus(in HorizontalPodAutoscalerStatus, out *HorizontalPodAutoscalerStatus, c *conversion.Cloner) error

func DeepCopy_v1_Scale added in v1.3.0

func DeepCopy_v1_Scale(in Scale, out *Scale, c *conversion.Cloner) error

func DeepCopy_v1_ScaleSpec added in v1.3.0

func DeepCopy_v1_ScaleSpec(in ScaleSpec, out *ScaleSpec, c *conversion.Cloner) error

func DeepCopy_v1_ScaleStatus added in v1.3.0

func DeepCopy_v1_ScaleStatus(in ScaleStatus, out *ScaleStatus, c *conversion.Cloner) error

func SetDefaults_HorizontalPodAutoscaler added in v1.3.0

func SetDefaults_HorizontalPodAutoscaler(obj *HorizontalPodAutoscaler)

Types

type CrossVersionObjectReference

type CrossVersionObjectReference struct {
	// Kind of the referent; More info: http://releases.k8s.io/release-1.3/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/release-1.3/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) Marshal added in v1.3.0

func (m *CrossVersionObjectReference) Marshal() (data []byte, err error)

func (*CrossVersionObjectReference) MarshalTo added in v1.3.0

func (m *CrossVersionObjectReference) MarshalTo(data []byte) (int, error)

func (*CrossVersionObjectReference) ProtoMessage added in v1.3.0

func (*CrossVersionObjectReference) ProtoMessage()

func (*CrossVersionObjectReference) Reset added in v1.3.0

func (m *CrossVersionObjectReference) Reset()

func (*CrossVersionObjectReference) Size added in v1.3.0

func (m *CrossVersionObjectReference) Size() (n int)

func (*CrossVersionObjectReference) String added in v1.3.0

func (m *CrossVersionObjectReference) String() string

func (CrossVersionObjectReference) SwaggerDoc

func (CrossVersionObjectReference) SwaggerDoc() map[string]string

func (*CrossVersionObjectReference) Unmarshal added in v1.3.0

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/release-1.3/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/release-1.3/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) Marshal added in v1.3.0

func (m *HorizontalPodAutoscaler) Marshal() (data []byte, err error)

func (*HorizontalPodAutoscaler) MarshalTo added in v1.3.0

func (m *HorizontalPodAutoscaler) MarshalTo(data []byte) (int, error)

func (*HorizontalPodAutoscaler) ProtoMessage added in v1.3.0

func (*HorizontalPodAutoscaler) ProtoMessage()

func (*HorizontalPodAutoscaler) Reset added in v1.3.0

func (m *HorizontalPodAutoscaler) Reset()

func (*HorizontalPodAutoscaler) Size added in v1.3.0

func (m *HorizontalPodAutoscaler) Size() (n int)

func (*HorizontalPodAutoscaler) String added in v1.3.0

func (m *HorizontalPodAutoscaler) String() string

func (HorizontalPodAutoscaler) SwaggerDoc

func (HorizontalPodAutoscaler) SwaggerDoc() map[string]string

func (*HorizontalPodAutoscaler) Unmarshal added in v1.3.0

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) Marshal added in v1.3.0

func (m *HorizontalPodAutoscalerList) Marshal() (data []byte, err error)

func (*HorizontalPodAutoscalerList) MarshalTo added in v1.3.0

func (m *HorizontalPodAutoscalerList) MarshalTo(data []byte) (int, error)

func (*HorizontalPodAutoscalerList) ProtoMessage added in v1.3.0

func (*HorizontalPodAutoscalerList) ProtoMessage()

func (*HorizontalPodAutoscalerList) Reset added in v1.3.0

func (m *HorizontalPodAutoscalerList) Reset()

func (*HorizontalPodAutoscalerList) Size added in v1.3.0

func (m *HorizontalPodAutoscalerList) Size() (n int)

func (*HorizontalPodAutoscalerList) String added in v1.3.0

func (m *HorizontalPodAutoscalerList) String() string

func (HorizontalPodAutoscalerList) SwaggerDoc

func (HorizontalPodAutoscalerList) SwaggerDoc() map[string]string

func (*HorizontalPodAutoscalerList) Unmarshal added in v1.3.0

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) Marshal added in v1.3.0

func (m *HorizontalPodAutoscalerSpec) Marshal() (data []byte, err error)

func (*HorizontalPodAutoscalerSpec) MarshalTo added in v1.3.0

func (m *HorizontalPodAutoscalerSpec) MarshalTo(data []byte) (int, error)

func (*HorizontalPodAutoscalerSpec) ProtoMessage added in v1.3.0

func (*HorizontalPodAutoscalerSpec) ProtoMessage()

func (*HorizontalPodAutoscalerSpec) Reset added in v1.3.0

func (m *HorizontalPodAutoscalerSpec) Reset()

func (*HorizontalPodAutoscalerSpec) Size added in v1.3.0

func (m *HorizontalPodAutoscalerSpec) Size() (n int)

func (*HorizontalPodAutoscalerSpec) String added in v1.3.0

func (m *HorizontalPodAutoscalerSpec) String() string

func (HorizontalPodAutoscalerSpec) SwaggerDoc

func (HorizontalPodAutoscalerSpec) SwaggerDoc() map[string]string

func (*HorizontalPodAutoscalerSpec) Unmarshal added in v1.3.0

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) Marshal added in v1.3.0

func (m *HorizontalPodAutoscalerStatus) Marshal() (data []byte, err error)

func (*HorizontalPodAutoscalerStatus) MarshalTo added in v1.3.0

func (m *HorizontalPodAutoscalerStatus) MarshalTo(data []byte) (int, error)

func (*HorizontalPodAutoscalerStatus) ProtoMessage added in v1.3.0

func (*HorizontalPodAutoscalerStatus) ProtoMessage()

func (*HorizontalPodAutoscalerStatus) Reset added in v1.3.0

func (m *HorizontalPodAutoscalerStatus) Reset()

func (*HorizontalPodAutoscalerStatus) Size added in v1.3.0

func (m *HorizontalPodAutoscalerStatus) Size() (n int)

func (*HorizontalPodAutoscalerStatus) String added in v1.3.0

func (HorizontalPodAutoscalerStatus) SwaggerDoc

func (HorizontalPodAutoscalerStatus) SwaggerDoc() map[string]string

func (*HorizontalPodAutoscalerStatus) Unmarshal added in v1.3.0

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/release-1.3/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/release-1.3/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/release-1.3/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) Marshal added in v1.3.0

func (m *Scale) Marshal() (data []byte, err error)

func (*Scale) MarshalTo added in v1.3.0

func (m *Scale) MarshalTo(data []byte) (int, error)

func (*Scale) ProtoMessage added in v1.3.0

func (*Scale) ProtoMessage()

func (*Scale) Reset added in v1.3.0

func (m *Scale) Reset()

func (*Scale) Size added in v1.3.0

func (m *Scale) Size() (n int)

func (*Scale) String added in v1.3.0

func (m *Scale) String() string

func (Scale) SwaggerDoc

func (Scale) SwaggerDoc() map[string]string

func (*Scale) Unmarshal added in v1.3.0

func (m *Scale) Unmarshal(data []byte) error

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) Marshal added in v1.3.0

func (m *ScaleSpec) Marshal() (data []byte, err error)

func (*ScaleSpec) MarshalTo added in v1.3.0

func (m *ScaleSpec) MarshalTo(data []byte) (int, error)

func (*ScaleSpec) ProtoMessage added in v1.3.0

func (*ScaleSpec) ProtoMessage()

func (*ScaleSpec) Reset added in v1.3.0

func (m *ScaleSpec) Reset()

func (*ScaleSpec) Size added in v1.3.0

func (m *ScaleSpec) Size() (n int)

func (*ScaleSpec) String added in v1.3.0

func (m *ScaleSpec) String() string

func (ScaleSpec) SwaggerDoc

func (ScaleSpec) SwaggerDoc() map[string]string

func (*ScaleSpec) Unmarshal added in v1.3.0

func (m *ScaleSpec) Unmarshal(data []byte) error

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/release-1.3/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) Marshal added in v1.3.0

func (m *ScaleStatus) Marshal() (data []byte, err error)

func (*ScaleStatus) MarshalTo added in v1.3.0

func (m *ScaleStatus) MarshalTo(data []byte) (int, error)

func (*ScaleStatus) ProtoMessage added in v1.3.0

func (*ScaleStatus) ProtoMessage()

func (*ScaleStatus) Reset added in v1.3.0

func (m *ScaleStatus) Reset()

func (*ScaleStatus) Size added in v1.3.0

func (m *ScaleStatus) Size() (n int)

func (*ScaleStatus) String added in v1.3.0

func (m *ScaleStatus) String() string

func (ScaleStatus) SwaggerDoc

func (ScaleStatus) SwaggerDoc() map[string]string

func (*ScaleStatus) Unmarshal added in v1.3.0

func (m *ScaleStatus) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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