autoscaling

package
v0.0.0-...-53c5426 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "autoscaling"

GroupName is the group name use in this package

Variables

View Source
var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

Functions

func AddToScheme

func AddToScheme(scheme *runtime.Scheme)

func DeepCopy_autoscaling_Scale

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

func DeepCopy_autoscaling_ScaleSpec

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

func DeepCopy_autoscaling_ScaleStatus

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

func Kind

func Kind(kind string) unversioned.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) unversioned.GroupResource

Resource takes an unqualified resource and returns back a Group qualified GroupResource

Types

type Scale

type Scale struct {
	unversioned.TypeMeta `json:",inline"`
	// Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.
	api.ObjectMeta `json:"metadata,omitempty"`

	// defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.
	Spec ScaleSpec `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.
	Status ScaleStatus `json:"status,omitempty"`
}

Scale represents a scaling request for a resource.

func (*Scale) CodecDecodeSelf

func (x *Scale) CodecDecodeSelf(d *codec1978.Decoder)

func (*Scale) CodecEncodeSelf

func (x *Scale) CodecEncodeSelf(e *codec1978.Encoder)

func (*Scale) GetObjectKind

func (obj *Scale) GetObjectKind() unversioned.ObjectKind

type ScaleSpec

type ScaleSpec struct {
	// desired number of instances for the scaled object.
	Replicas int `json:"replicas,omitempty"`
}

ScaleSpec describes the attributes of a scale subresource.

func (*ScaleSpec) CodecDecodeSelf

func (x *ScaleSpec) CodecDecodeSelf(d *codec1978.Decoder)

func (*ScaleSpec) CodecEncodeSelf

func (x *ScaleSpec) CodecEncodeSelf(e *codec1978.Encoder)

type ScaleStatus

type ScaleStatus struct {
	// actual number of observed instances of the scaled object.
	Replicas int `json:"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: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors
	Selector string `json:"selector,omitempty"`
}

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)

Directories

Path Synopsis
Package install installs the experimental API group, making it available as an option to all of the API encoding/decoding machinery.
Package install installs the experimental API group, making it available as an option to all of the API encoding/decoding machinery.

Jump to

Keyboard shortcuts

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