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)
Types ¶
type Scale ¶
type Scale struct {
unversioned.TypeMeta `json:",inline"`
// Standard object metadata; More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#metadata.
api.ObjectMeta `json:"metadata,omitempty"`
// defines the behavior of the scale. More info: http://releases.k8s.io/release-1.2/docs/devel/api-conventions.md#spec-and-status.
Spec ScaleSpec `json:"spec,omitempty"`
// current status of the scale. More info: http://releases.k8s.io/release-1.2/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/release-1.2/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. |
Click to show internal directories.
Click to hide internal directories.