v1alpha1

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 is a generated protocol buffer package.

It is generated from these files:

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

It has these top-level messages:

PetSet
PetSetList
PetSetSpec
PetSetStatus

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type PetSet

type PetSet struct {
	Metadata *k8s_io_kubernetes_pkg_api_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Spec defines the desired identities of pets in this set.
	Spec *PetSetSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
	// Status is the current status of Pets in this PetSet. This data
	// may be out of date by some window of time.
	Status           *PetSetStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
	XXX_unrecognized []byte        `json:"-"`
}

PetSet 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 PetSet guarantees that a given network identity will always map to the same storage identity. PetSet is currently in alpha and subject to change without notice.

func (*PetSet) Descriptor

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

func (*PetSet) GetMetadata

func (*PetSet) GetSpec

func (m *PetSet) GetSpec() *PetSetSpec

func (*PetSet) GetStatus

func (m *PetSet) GetStatus() *PetSetStatus

func (*PetSet) Marshal

func (m *PetSet) Marshal() (dAtA []byte, err error)

func (*PetSet) MarshalTo

func (m *PetSet) MarshalTo(dAtA []byte) (int, error)

func (*PetSet) ProtoMessage

func (*PetSet) ProtoMessage()

func (*PetSet) Reset

func (m *PetSet) Reset()

func (*PetSet) Size

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

func (*PetSet) String

func (m *PetSet) String() string

func (*PetSet) Unmarshal

func (m *PetSet) Unmarshal(dAtA []byte) error

type PetSetList

type PetSetList struct {
	Metadata         *k8s_io_kubernetes_pkg_api_unversioned.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	Items            []*PetSet                                       `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
	XXX_unrecognized []byte                                          `json:"-"`
}

PetSetList is a collection of PetSets.

func (*PetSetList) Descriptor

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

func (*PetSetList) GetItems

func (m *PetSetList) GetItems() []*PetSet

func (*PetSetList) GetMetadata

func (*PetSetList) Marshal

func (m *PetSetList) Marshal() (dAtA []byte, err error)

func (*PetSetList) MarshalTo

func (m *PetSetList) MarshalTo(dAtA []byte) (int, error)

func (*PetSetList) ProtoMessage

func (*PetSetList) ProtoMessage()

func (*PetSetList) Reset

func (m *PetSetList) Reset()

func (*PetSetList) Size

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

func (*PetSetList) String

func (m *PetSetList) String() string

func (*PetSetList) Unmarshal

func (m *PetSetList) Unmarshal(dAtA []byte) error

type PetSetSpec

type PetSetSpec 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.
	Replicas *int32 `protobuf:"varint,1,opt,name=replicas" json:"replicas,omitempty"`
	// 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://releases.k8s.io/release-1.4/docs/user-guide/labels.md#label-selectors
	Selector *k8s_io_kubernetes_pkg_api_unversioned.LabelSelector `protobuf:"bytes,2,opt,name=selector" json:"selector,omitempty"`
	// Template is the object that describes the pod that will be created if
	// insufficient replicas are detected. Each pod stamped out by the PetSet
	// will fulfill this Template, but have a unique identity from the rest
	// of the PetSet.
	Template *k8s_io_kubernetes_pkg_api_v1.PodTemplateSpec `protobuf:"bytes,3,opt,name=template" json:"template,omitempty"`
	// VolumeClaimTemplates is a list of claims that pets are allowed to reference.
	// The PetSet controller is responsible for mapping network identities to
	// claims in a way that maintains the identity of a pet. 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.
	VolumeClaimTemplates []*k8s_io_kubernetes_pkg_api_v1.PersistentVolumeClaim `protobuf:"bytes,4,rep,name=volumeClaimTemplates" json:"volumeClaimTemplates,omitempty"`
	// ServiceName is the name of the service that governs this PetSet.
	// This service must exist before the PetSet, and is responsible for
	// the network identity of the set. Pets get DNS/hostnames that follow the
	// pattern: pet-specific-string.serviceName.default.svc.cluster.local
	// where "pet-specific-string" is managed by the PetSet controller.
	ServiceName      *string `protobuf:"bytes,5,opt,name=serviceName" json:"serviceName,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

A PetSetSpec is the specification of a PetSet.

func (*PetSetSpec) Descriptor

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

func (*PetSetSpec) GetReplicas

func (m *PetSetSpec) GetReplicas() int32

func (*PetSetSpec) GetSelector

func (*PetSetSpec) GetServiceName

func (m *PetSetSpec) GetServiceName() string

func (*PetSetSpec) GetTemplate

func (*PetSetSpec) GetVolumeClaimTemplates

func (m *PetSetSpec) GetVolumeClaimTemplates() []*k8s_io_kubernetes_pkg_api_v1.PersistentVolumeClaim

func (*PetSetSpec) Marshal

func (m *PetSetSpec) Marshal() (dAtA []byte, err error)

func (*PetSetSpec) MarshalTo

func (m *PetSetSpec) MarshalTo(dAtA []byte) (int, error)

func (*PetSetSpec) ProtoMessage

func (*PetSetSpec) ProtoMessage()

func (*PetSetSpec) Reset

func (m *PetSetSpec) Reset()

func (*PetSetSpec) Size

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

func (*PetSetSpec) String

func (m *PetSetSpec) String() string

func (*PetSetSpec) Unmarshal

func (m *PetSetSpec) Unmarshal(dAtA []byte) error

type PetSetStatus

type PetSetStatus struct {
	// most recent generation observed by this autoscaler.
	ObservedGeneration *int64 `protobuf:"varint,1,opt,name=observedGeneration" json:"observedGeneration,omitempty"`
	// Replicas is the number of actual replicas.
	Replicas         *int32 `protobuf:"varint,2,opt,name=replicas" json:"replicas,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

PetSetStatus represents the current state of a PetSet.

func (*PetSetStatus) Descriptor

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

func (*PetSetStatus) GetObservedGeneration

func (m *PetSetStatus) GetObservedGeneration() int64

func (*PetSetStatus) GetReplicas

func (m *PetSetStatus) GetReplicas() int32

func (*PetSetStatus) Marshal

func (m *PetSetStatus) Marshal() (dAtA []byte, err error)

func (*PetSetStatus) MarshalTo

func (m *PetSetStatus) MarshalTo(dAtA []byte) (int, error)

func (*PetSetStatus) ProtoMessage

func (*PetSetStatus) ProtoMessage()

func (*PetSetStatus) Reset

func (m *PetSetStatus) Reset()

func (*PetSetStatus) Size

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

func (*PetSetStatus) String

func (m *PetSetStatus) String() string

func (*PetSetStatus) Unmarshal

func (m *PetSetStatus) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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