v1beta1

package
v1.5.9-beta.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package v1beta1 is a generated protocol buffer package.

It is generated from these files:

k8s.io/kubernetes/pkg/apis/apps/v1beta1/generated.proto

It has these top-level messages:

StatefulSet
StatefulSetList
StatefulSetSpec
StatefulSetStatus

Index

Constants

View Source
const GroupName = "apps"

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 (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs, addConversionFuncs)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_apps_StatefulSetList_To_v1beta1_StatefulSetList

func Convert_apps_StatefulSetList_To_v1beta1_StatefulSetList(in *apps.StatefulSetList, out *StatefulSetList, s conversion.Scope) error

func Convert_apps_StatefulSetSpec_To_v1beta1_StatefulSetSpec

func Convert_apps_StatefulSetSpec_To_v1beta1_StatefulSetSpec(in *apps.StatefulSetSpec, out *StatefulSetSpec, s conversion.Scope) error

func Convert_apps_StatefulSetStatus_To_v1beta1_StatefulSetStatus

func Convert_apps_StatefulSetStatus_To_v1beta1_StatefulSetStatus(in *apps.StatefulSetStatus, out *StatefulSetStatus, s conversion.Scope) error

func Convert_apps_StatefulSet_To_v1beta1_StatefulSet

func Convert_apps_StatefulSet_To_v1beta1_StatefulSet(in *apps.StatefulSet, out *StatefulSet, s conversion.Scope) error

func Convert_v1beta1_StatefulSetList_To_apps_StatefulSetList

func Convert_v1beta1_StatefulSetList_To_apps_StatefulSetList(in *StatefulSetList, out *apps.StatefulSetList, s conversion.Scope) error

func Convert_v1beta1_StatefulSetSpec_To_apps_StatefulSetSpec

func Convert_v1beta1_StatefulSetSpec_To_apps_StatefulSetSpec(in *StatefulSetSpec, out *apps.StatefulSetSpec, s conversion.Scope) error

func Convert_v1beta1_StatefulSetStatus_To_apps_StatefulSetStatus

func Convert_v1beta1_StatefulSetStatus_To_apps_StatefulSetStatus(in *StatefulSetStatus, out *apps.StatefulSetStatus, s conversion.Scope) error

func Convert_v1beta1_StatefulSet_To_apps_StatefulSet

func Convert_v1beta1_StatefulSet_To_apps_StatefulSet(in *StatefulSet, out *apps.StatefulSet, s conversion.Scope) error

func DeepCopy_v1beta1_StatefulSet

func DeepCopy_v1beta1_StatefulSet(in interface{}, out interface{}, c *conversion.Cloner) error

func DeepCopy_v1beta1_StatefulSetList

func DeepCopy_v1beta1_StatefulSetList(in interface{}, out interface{}, c *conversion.Cloner) error

func DeepCopy_v1beta1_StatefulSetSpec

func DeepCopy_v1beta1_StatefulSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error

func DeepCopy_v1beta1_StatefulSetStatus

func DeepCopy_v1beta1_StatefulSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error

func RegisterConversions

func RegisterConversions(scheme *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDeepCopies

func RegisterDeepCopies(scheme *runtime.Scheme) error

RegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func SetDefaults_StatefulSet

func SetDefaults_StatefulSet(obj *StatefulSet)

func SetObjectDefaults_StatefulSet

func SetObjectDefaults_StatefulSet(in *StatefulSet)

func SetObjectDefaults_StatefulSetList

func SetObjectDefaults_StatefulSetList(in *StatefulSetList)

Types

type StatefulSet

type StatefulSet struct {
	unversioned.TypeMeta `json:",inline"`
	// +optional
	v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// Spec defines the desired identities of pods in this set.
	// +optional
	Spec StatefulSetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`

	// Status is the current status of Pods in this StatefulSet. This data
	// may be out of date by some window of time.
	// +optional
	Status StatefulSetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

StatefulSet represents a set of pods with consistent identities. Identities are defined as:

  • Network: A single stable DNS and hostname.
  • Storage: As many VolumeClaims as requested.

The StatefulSet guarantees that a given network identity will always map to the same storage identity.

func (*StatefulSet) CodecDecodeSelf

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

func (*StatefulSet) CodecEncodeSelf

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

func (*StatefulSet) Descriptor

func (*StatefulSet) Descriptor() ([]byte, []int)

func (*StatefulSet) GetObjectKind

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

func (*StatefulSet) Marshal

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

func (*StatefulSet) MarshalTo

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

func (*StatefulSet) ProtoMessage

func (*StatefulSet) ProtoMessage()

func (*StatefulSet) Reset

func (m *StatefulSet) Reset()

func (*StatefulSet) Size

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

func (*StatefulSet) String

func (this *StatefulSet) String() string

func (StatefulSet) SwaggerDoc

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

func (*StatefulSet) Unmarshal

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

type StatefulSetList

type StatefulSetList struct {
	unversioned.TypeMeta `json:",inline"`
	// +optional
	unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items                []StatefulSet `json:"items" protobuf:"bytes,2,rep,name=items"`
}

StatefulSetList is a collection of StatefulSets.

func (*StatefulSetList) CodecDecodeSelf

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

func (*StatefulSetList) CodecEncodeSelf

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

func (*StatefulSetList) Descriptor

func (*StatefulSetList) Descriptor() ([]byte, []int)

func (*StatefulSetList) GetObjectKind

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

func (*StatefulSetList) Marshal

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

func (*StatefulSetList) MarshalTo

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

func (*StatefulSetList) ProtoMessage

func (*StatefulSetList) ProtoMessage()

func (*StatefulSetList) Reset

func (m *StatefulSetList) Reset()

func (*StatefulSetList) Size

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

func (*StatefulSetList) String

func (this *StatefulSetList) String() string

func (StatefulSetList) SwaggerDoc

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

func (*StatefulSetList) Unmarshal

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

type StatefulSetSpec

type StatefulSetSpec struct {
	// Replicas is the desired number of replicas of the given Template.
	// These are replicas in the sense that they are instantiations of the
	// same Template, but individual replicas also have a consistent identity.
	// If unspecified, defaults to 1.
	// TODO: Consider a rename of this field.
	// +optional
	Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"`

	// Selector is a label query over pods that should match the replica count.
	// If empty, defaulted to labels on the pod template.
	// More info: http://kubernetes.io/docs/user-guide/labels#label-selectors
	// +optional
	Selector *unversioned.LabelSelector `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"`

	// Template is the object that describes the pod that will be created if
	// insufficient replicas are detected. Each pod stamped out by the StatefulSet
	// will fulfill this Template, but have a unique identity from the rest
	// of the StatefulSet.
	Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,3,opt,name=template"`

	// VolumeClaimTemplates is a list of claims that pods are allowed to reference.
	// The StatefulSet controller is responsible for mapping network identities to
	// claims in a way that maintains the identity of a pod. Every claim in
	// this list must have at least one matching (by name) volumeMount in one
	// container in the template. A claim in this list takes precedence over
	// any volumes in the template, with the same name.
	// TODO: Define the behavior if a claim already exists with the same name.
	// +optional
	VolumeClaimTemplates []v1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty" protobuf:"bytes,4,rep,name=volumeClaimTemplates"`

	// ServiceName is the name of the service that governs this StatefulSet.
	// This service must exist before the StatefulSet, and is responsible for
	// the network identity of the set. Pods get DNS/hostnames that follow the
	// pattern: pod-specific-string.serviceName.default.svc.cluster.local
	// where "pod-specific-string" is managed by the StatefulSet controller.
	ServiceName string `json:"serviceName" protobuf:"bytes,5,opt,name=serviceName"`
}

A StatefulSetSpec is the specification of a StatefulSet.

func (*StatefulSetSpec) CodecDecodeSelf

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

func (*StatefulSetSpec) CodecEncodeSelf

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

func (*StatefulSetSpec) Descriptor

func (*StatefulSetSpec) Descriptor() ([]byte, []int)

func (*StatefulSetSpec) Marshal

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

func (*StatefulSetSpec) MarshalTo

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

func (*StatefulSetSpec) ProtoMessage

func (*StatefulSetSpec) ProtoMessage()

func (*StatefulSetSpec) Reset

func (m *StatefulSetSpec) Reset()

func (*StatefulSetSpec) Size

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

func (*StatefulSetSpec) String

func (this *StatefulSetSpec) String() string

func (StatefulSetSpec) SwaggerDoc

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

func (*StatefulSetSpec) Unmarshal

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

type StatefulSetStatus

type StatefulSetStatus struct {
	// most recent generation observed by this autoscaler.
	// +optional
	ObservedGeneration *int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"`

	// Replicas is the number of actual replicas.
	Replicas int32 `json:"replicas" protobuf:"varint,2,opt,name=replicas"`
}

StatefulSetStatus represents the current state of a StatefulSet.

func (*StatefulSetStatus) CodecDecodeSelf

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

func (*StatefulSetStatus) CodecEncodeSelf

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

func (*StatefulSetStatus) Descriptor

func (*StatefulSetStatus) Descriptor() ([]byte, []int)

func (*StatefulSetStatus) Marshal

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

func (*StatefulSetStatus) MarshalTo

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

func (*StatefulSetStatus) ProtoMessage

func (*StatefulSetStatus) ProtoMessage()

func (*StatefulSetStatus) Reset

func (m *StatefulSetStatus) Reset()

func (*StatefulSetStatus) Size

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

func (*StatefulSetStatus) String

func (this *StatefulSetStatus) String() string

func (StatefulSetStatus) SwaggerDoc

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

func (*StatefulSetStatus) Unmarshal

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

Jump to

Keyboard shortcuts

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