client-go: k8s.io/client-go/scale/scheme Index | Files | Directories

package scheme

import "k8s.io/client-go/scale/scheme"

Package scheme contains a runtime.Scheme to be used for serializing and deserializing different versions of Scale, and for converting in between them.

Index

Package Files

doc.go register.go types.go zz_generated.deepcopy.go

Constants

const GroupName = autoscalingv1.GroupName

GroupName is the group name use in this package

Variables

var (
    SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
    AddToScheme   = SchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

func Kind Uses

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type Scale Uses

type Scale struct {
    metav1.TypeMeta
    // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.
    // +optional
    metav1.ObjectMeta

    // defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.
    // +optional
    Spec ScaleSpec

    // current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.
    // +optional
    Status ScaleStatus
}

Scale represents a scaling request for a resource.

func (*Scale) DeepCopy Uses

func (in *Scale) DeepCopy() *Scale

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scale.

func (*Scale) DeepCopyInto Uses

func (in *Scale) DeepCopyInto(out *Scale)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Scale) DeepCopyObject Uses

func (in *Scale) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ScaleSpec Uses

type ScaleSpec struct {
    // desired number of instances for the scaled object.
    // +optional
    Replicas int32
}

ScaleSpec describes the attributes of a scale subresource.

func (*ScaleSpec) DeepCopy Uses

func (in *ScaleSpec) DeepCopy() *ScaleSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleSpec.

func (*ScaleSpec) DeepCopyInto Uses

func (in *ScaleSpec) DeepCopyInto(out *ScaleSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ScaleStatus Uses

type ScaleStatus struct {
    // actual number of observed instances of the scaled object.
    Replicas int32

    // label query over pods that should match the replicas count.
    // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
    // +optional
    Selector *metav1.LabelSelector
}

ScaleStatus represents the current status of a scale subresource.

func (*ScaleStatus) DeepCopy Uses

func (in *ScaleStatus) DeepCopy() *ScaleStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScaleStatus.

func (*ScaleStatus) DeepCopyInto Uses

func (in *ScaleStatus) DeepCopyInto(out *ScaleStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Directories

PathSynopsis
appsintPackage appsint contains the necessary scaffolding of the internal version of extensions as required by conversion logic.
appsv1beta1
appsv1beta2
autoscalingv1
extensionsintPackage extensionsint contains the necessary scaffolding of the internal version of extensions as required by conversion logic.
extensionsv1beta1

Package scheme imports 4 packages (graph) and is imported by 17 packages. Updated 2018-07-27. Refresh now. Tools for package owners.