pb

package
v0.0.0-...-e70fc09 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

pb/service.proto
pb/datadef.proto
pb/meta.proto
pb/node.proto
pb/resource.proto
pb/runtime.proto

It has these top-level messages:

ContactReqResp
AgentNode
AgentNodeSpec
AgentNodeStatus
DockerMachineStatus
OpenStackNodeStatus
PhysicalMachineStatus
Recipient
Duration
GroupVersionKind
Initializer
Initializers
LabelSelector
LabelSelectorRequirement
List
ListMeta
ListOptions
ObjectMeta
OwnerReference
Status
StatusCause
StatusDetails
Time
AttachedVolume
ConfigMapNodeConfigSource
ContainerImage
DaemonEndpoint
Node
NodeAddress
NodeCondition
NodeConfigSource
NodeConfigStatus
NodeDaemonEndpoints
NodeList
NodeSpec
NodeStatus
NodeSystemInfo
Taint
Quantity
RawExtension
TypeMeta

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Swagger = swagger
)

Variables

View Source
var Recipient_ResourceScope_name = map[int32]string{
	0: "Cluster",
	1: "Namespaced",
}
View Source
var Recipient_ResourceScope_value = map[string]int32{
	"Cluster":    0,
	"Namespaced": 1,
}

Functions

func RegisterSimpleGRpcServiceHandler

func RegisterSimpleGRpcServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSimpleGRpcServiceHandler registers the http handlers for service SimpleGRpcService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSimpleGRpcServiceHandlerFromEndpoint

func RegisterSimpleGRpcServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSimpleGRpcServiceHandlerFromEndpoint is same as RegisterSimpleGRpcServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSimpleGRpcServiceServer

func RegisterSimpleGRpcServiceServer(s *grpc.Server, srv SimpleGRpcServiceServer)

Types

type AgentNode

type AgentNode struct {
	Metadata *ListMeta        `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	Spec     *AgentNodeSpec   `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
	Status   *AgentNodeStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
}

func (*AgentNode) Descriptor

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

func (*AgentNode) GetMetadata

func (m *AgentNode) GetMetadata() *ListMeta

func (*AgentNode) GetSpec

func (m *AgentNode) GetSpec() *AgentNodeSpec

func (*AgentNode) GetStatus

func (m *AgentNode) GetStatus() *AgentNodeStatus

func (*AgentNode) ProtoMessage

func (*AgentNode) ProtoMessage()

func (*AgentNode) Reset

func (m *AgentNode) Reset()

func (*AgentNode) String

func (m *AgentNode) String() string

type AgentNodeSpec

type AgentNodeSpec struct {
	Interfaces []string  `protobuf:"bytes,1,rep,name=interfaces" json:"interfaces,omitempty"`
	Duration   *Duration `protobuf:"bytes,2,opt,name=duration" json:"duration,omitempty"`
}

func (*AgentNodeSpec) Descriptor

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

func (*AgentNodeSpec) GetDuration

func (m *AgentNodeSpec) GetDuration() *Duration

func (*AgentNodeSpec) GetInterfaces

func (m *AgentNodeSpec) GetInterfaces() []string

func (*AgentNodeSpec) ProtoMessage

func (*AgentNodeSpec) ProtoMessage()

func (*AgentNodeSpec) Reset

func (m *AgentNodeSpec) Reset()

func (*AgentNodeSpec) String

func (m *AgentNodeSpec) String() string

type AgentNodeStatus

type AgentNodeStatus struct {
	Kubernetes *NodeStatus            `protobuf:"bytes,1,opt,name=kubernetes" json:"kubernetes,omitempty"`
	Docker     *DockerMachineStatus   `protobuf:"bytes,2,opt,name=docker" json:"docker,omitempty"`
	Openstack  *OpenStackNodeStatus   `protobuf:"bytes,3,opt,name=openstack" json:"openstack,omitempty"`
	Legacy     *PhysicalMachineStatus `protobuf:"bytes,4,opt,name=legacy" json:"legacy,omitempty"`
}

func (*AgentNodeStatus) Descriptor

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

func (*AgentNodeStatus) GetDocker

func (m *AgentNodeStatus) GetDocker() *DockerMachineStatus

func (*AgentNodeStatus) GetKubernetes

func (m *AgentNodeStatus) GetKubernetes() *NodeStatus

func (*AgentNodeStatus) GetLegacy

func (m *AgentNodeStatus) GetLegacy() *PhysicalMachineStatus

func (*AgentNodeStatus) GetOpenstack

func (m *AgentNodeStatus) GetOpenstack() *OpenStackNodeStatus

func (*AgentNodeStatus) ProtoMessage

func (*AgentNodeStatus) ProtoMessage()

func (*AgentNodeStatus) Reset

func (m *AgentNodeStatus) Reset()

func (*AgentNodeStatus) String

func (m *AgentNodeStatus) String() string

type AttachedVolume

type AttachedVolume struct {
	// Name of the attached volume
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// DevicePath represents the device path where the volume should be available
	DevicePath string `protobuf:"bytes,2,opt,name=devicePath,proto3" json:"devicePath,omitempty"`
}

Inspired by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L82 AttachedVolume describes a volume attached to a node

func (*AttachedVolume) Descriptor

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

func (*AttachedVolume) GetDevicePath

func (m *AttachedVolume) GetDevicePath() string

func (*AttachedVolume) GetName

func (m *AttachedVolume) GetName() string

func (*AttachedVolume) ProtoMessage

func (*AttachedVolume) ProtoMessage()

func (*AttachedVolume) Reset

func (m *AttachedVolume) Reset()

func (*AttachedVolume) String

func (m *AttachedVolume) String() string

type ConfigMapNodeConfigSource

type ConfigMapNodeConfigSource struct {
	// Namespace is the metadata.namespace of the referenced ConfigMap.
	// This field is required in all cases.
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// Name is the metadata.name of the referenced ConfigMap.
	// This field is required in all cases.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// UID is the metadata.UID of the referenced ConfigMap.
	// This field is forbidden in Node.Spec, and required in Node.Status.
	// +optional
	Uid string `protobuf:"bytes,3,opt,name=uid,proto3" json:"uid,omitempty"`
	// ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
	// This field is forbidden in Node.Spec, and required in Node.Status.
	// +optional
	ResourceVersion string `protobuf:"bytes,4,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"`
	// KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
	// This field is required in all cases.
	KubeletConfigKey string `protobuf:"bytes,5,opt,name=kubeletConfigKey,proto3" json:"kubeletConfigKey,omitempty"`
}

Inspired by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L442 ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node.

func (*ConfigMapNodeConfigSource) Descriptor

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

func (*ConfigMapNodeConfigSource) GetKubeletConfigKey

func (m *ConfigMapNodeConfigSource) GetKubeletConfigKey() string

func (*ConfigMapNodeConfigSource) GetName

func (m *ConfigMapNodeConfigSource) GetName() string

func (*ConfigMapNodeConfigSource) GetNamespace

func (m *ConfigMapNodeConfigSource) GetNamespace() string

func (*ConfigMapNodeConfigSource) GetResourceVersion

func (m *ConfigMapNodeConfigSource) GetResourceVersion() string

func (*ConfigMapNodeConfigSource) GetUid

func (m *ConfigMapNodeConfigSource) GetUid() string

func (*ConfigMapNodeConfigSource) ProtoMessage

func (*ConfigMapNodeConfigSource) ProtoMessage()

func (*ConfigMapNodeConfigSource) Reset

func (m *ConfigMapNodeConfigSource) Reset()

func (*ConfigMapNodeConfigSource) String

func (m *ConfigMapNodeConfigSource) String() string

type ContactReqResp

type ContactReqResp struct {
	Recipe       *Recipient `protobuf:"bytes,1,opt,name=recipe" json:"recipe,omitempty"`
	StateCode    int32      `protobuf:"varint,2,opt,name=state_code,json=stateCode,proto3" json:"state_code,omitempty"`
	StateMessage string     `protobuf:"bytes,3,opt,name=state_message,json=stateMessage,proto3" json:"state_message,omitempty"`
}

func (*ContactReqResp) Descriptor

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

func (*ContactReqResp) GetRecipe

func (m *ContactReqResp) GetRecipe() *Recipient

func (*ContactReqResp) GetStateCode

func (m *ContactReqResp) GetStateCode() int32

func (*ContactReqResp) GetStateMessage

func (m *ContactReqResp) GetStateMessage() string

func (*ContactReqResp) ProtoMessage

func (*ContactReqResp) ProtoMessage()

func (*ContactReqResp) Reset

func (m *ContactReqResp) Reset()

func (*ContactReqResp) String

func (m *ContactReqResp) String() string

type ContainerImage

type ContainerImage struct {
	// Names by which this image is known.
	// e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"]
	Names []string `protobuf:"bytes,1,rep,name=names" json:"names,omitempty"`
	// The size of the image in bytes.
	// +optional
	SizeBytes int64 `protobuf:"varint,2,opt,name=sizeBytes,proto3" json:"sizeBytes,omitempty"`
}

Inspired by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L690 Describe a container image

func (*ContainerImage) Descriptor

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

func (*ContainerImage) GetNames

func (m *ContainerImage) GetNames() []string

func (*ContainerImage) GetSizeBytes

func (m *ContainerImage) GetSizeBytes() int64

func (*ContainerImage) ProtoMessage

func (*ContainerImage) ProtoMessage()

func (*ContainerImage) Reset

func (m *ContainerImage) Reset()

func (*ContainerImage) String

func (m *ContainerImage) String() string

type DaemonEndpoint

type DaemonEndpoint struct {
	// Port number of the given endpoint.
	Port int32 `protobuf:"varint,1,opt,name=Port,proto3" json:"Port,omitempty"`
}

Inspired by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L831 DaemonEndpoint contains information about a single Daemon endpoint.

func (*DaemonEndpoint) Descriptor

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

func (*DaemonEndpoint) GetPort

func (m *DaemonEndpoint) GetPort() int32

func (*DaemonEndpoint) ProtoMessage

func (*DaemonEndpoint) ProtoMessage()

func (*DaemonEndpoint) Reset

func (m *DaemonEndpoint) Reset()

func (*DaemonEndpoint) String

func (m *DaemonEndpoint) String() string

type DockerMachineStatus

type DockerMachineStatus struct {
	Capacity    map[string]*Quantity `` /* 143-byte string literal not displayed */
	Allocatable map[string]*Quantity `` /* 149-byte string literal not displayed */
	Phase       string               `protobuf:"bytes,3,opt,name=phase,proto3" json:"phase,omitempty"`
	Addresses   []*NodeAddress       `protobuf:"bytes,4,rep,name=addresses" json:"addresses,omitempty"`
}

func (*DockerMachineStatus) Descriptor

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

func (*DockerMachineStatus) GetAddresses

func (m *DockerMachineStatus) GetAddresses() []*NodeAddress

func (*DockerMachineStatus) GetAllocatable

func (m *DockerMachineStatus) GetAllocatable() map[string]*Quantity

func (*DockerMachineStatus) GetCapacity

func (m *DockerMachineStatus) GetCapacity() map[string]*Quantity

func (*DockerMachineStatus) GetPhase

func (m *DockerMachineStatus) GetPhase() string

func (*DockerMachineStatus) ProtoMessage

func (*DockerMachineStatus) ProtoMessage()

func (*DockerMachineStatus) Reset

func (m *DockerMachineStatus) Reset()

func (*DockerMachineStatus) String

func (m *DockerMachineStatus) String() string

type Duration

type Duration struct {
	Duration int64 `protobuf:"varint,1,opt,name=duration,proto3" json:"duration,omitempty"`
}

Duration is a wrapper around time.Duration which supports correct marshaling to YAML and JSON. In particular, it marshals into strings, which can be used as map keys in json.

func (*Duration) Descriptor

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

func (*Duration) GetDuration

func (m *Duration) GetDuration() int64

func (*Duration) ProtoMessage

func (*Duration) ProtoMessage()

func (*Duration) Reset

func (m *Duration) Reset()

func (*Duration) String

func (m *Duration) String() string

type GroupVersionKind

type GroupVersionKind struct {
	Group   string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Kind    string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
}

GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling

+protobuf.options.(gogoproto.goproto_stringer)=false

func (*GroupVersionKind) Descriptor

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

func (*GroupVersionKind) GetGroup

func (m *GroupVersionKind) GetGroup() string

func (*GroupVersionKind) GetKind

func (m *GroupVersionKind) GetKind() string

func (*GroupVersionKind) GetVersion

func (m *GroupVersionKind) GetVersion() string

func (*GroupVersionKind) ProtoMessage

func (*GroupVersionKind) ProtoMessage()

func (*GroupVersionKind) Reset

func (m *GroupVersionKind) Reset()

func (*GroupVersionKind) String

func (m *GroupVersionKind) String() string

type Initializer

type Initializer struct {
	// name of the process that is responsible for initializing this object.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}

Initializer is information about an initializer that has not yet completed.

func (*Initializer) Descriptor

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

func (*Initializer) GetName

func (m *Initializer) GetName() string

func (*Initializer) ProtoMessage

func (*Initializer) ProtoMessage()

func (*Initializer) Reset

func (m *Initializer) Reset()

func (*Initializer) String

func (m *Initializer) String() string

type Initializers

type Initializers struct {
	// Pending is a list of initializers that must execute in order before this object is visible.
	// When the last pending initializer is removed, and no failing result is set, the initializers
	// struct will be set to nil and the object is considered as initialized and visible to all
	// clients.
	// +patchMergeKey=name
	// +patchStrategy=merge
	Pending []*Initializer `protobuf:"bytes,1,rep,name=pending" json:"pending,omitempty"`
	// If result is set with the Failure field, the object will be persisted to storage and then deleted,
	// ensuring that other clients can observe the deletion.
	Result *Status `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"`
}

Initializers tracks the progress of initialization.

func (*Initializers) Descriptor

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

func (*Initializers) GetPending

func (m *Initializers) GetPending() []*Initializer

func (*Initializers) GetResult

func (m *Initializers) GetResult() *Status

func (*Initializers) ProtoMessage

func (*Initializers) ProtoMessage()

func (*Initializers) Reset

func (m *Initializers) Reset()

func (*Initializers) String

func (m *Initializers) String() string

type LabelSelector

type LabelSelector struct {
	// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
	// map is equivalent to an element of matchExpressions, whose key field is "key", the
	// operator is "In", and the values array contains only "value". The requirements are ANDed.
	// +optional
	MatchLabels map[string]string `` /* 156-byte string literal not displayed */
	// matchExpressions is a list of label selector requirements. The requirements are ANDed.
	// +optional
	MatchExpressions []*LabelSelectorRequirement `protobuf:"bytes,2,rep,name=matchExpressions" json:"matchExpressions,omitempty"`
}

A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.

func (*LabelSelector) Descriptor

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

func (*LabelSelector) GetMatchExpressions

func (m *LabelSelector) GetMatchExpressions() []*LabelSelectorRequirement

func (*LabelSelector) GetMatchLabels

func (m *LabelSelector) GetMatchLabels() map[string]string

func (*LabelSelector) ProtoMessage

func (*LabelSelector) ProtoMessage()

func (*LabelSelector) Reset

func (m *LabelSelector) Reset()

func (*LabelSelector) String

func (m *LabelSelector) String() string

type LabelSelectorRequirement

type LabelSelectorRequirement struct {
	// key is the label key that the selector applies to.
	// +patchMergeKey=key
	// +patchStrategy=merge
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// operator represents a key's relationship to a set of values.
	// Valid operators are In, NotIn, Exists and DoesNotExist.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// values is an array of string values. If the operator is In or NotIn,
	// the values array must be non-empty. If the operator is Exists or DoesNotExist,
	// the values array must be empty. This array is replaced during a strategic
	// merge patch.
	// +optional
	Values []string `protobuf:"bytes,3,rep,name=values" json:"values,omitempty"`
}

A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

func (*LabelSelectorRequirement) Descriptor

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

func (*LabelSelectorRequirement) GetKey

func (m *LabelSelectorRequirement) GetKey() string

func (*LabelSelectorRequirement) GetOperator

func (m *LabelSelectorRequirement) GetOperator() string

func (*LabelSelectorRequirement) GetValues

func (m *LabelSelectorRequirement) GetValues() []string

func (*LabelSelectorRequirement) ProtoMessage

func (*LabelSelectorRequirement) ProtoMessage()

func (*LabelSelectorRequirement) Reset

func (m *LabelSelectorRequirement) Reset()

func (*LabelSelectorRequirement) String

func (m *LabelSelectorRequirement) String() string

type List

type List struct {
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
	// +optional
	Metadata *ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// List of objects
	// repeated k8s.io.apimachinery.pkg.runtime.RawExtension items = 2;
	Items []*RawExtension `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
}

List holds a list of objects, which may not be known by the server.

func (*List) Descriptor

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

func (*List) GetItems

func (m *List) GetItems() []*RawExtension

func (*List) GetMetadata

func (m *List) GetMetadata() *ListMeta

func (*List) ProtoMessage

func (*List) ProtoMessage()

func (*List) Reset

func (m *List) Reset()

func (*List) String

func (m *List) String() string

type ListMeta

type ListMeta struct {
	// selfLink is a URL representing this object.
	// Populated by the system.
	// Read-only.
	// +optional
	SelfLink string `protobuf:"bytes,1,opt,name=selfLink,proto3" json:"selfLink,omitempty"`
	// String that identifies the server's internal version of this object that
	// can be used by clients to determine when objects have changed.
	// Value must be treated as opaque by clients and passed unmodified back to the server.
	// Populated by the system.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
	// +optional
	ResourceVersion string `protobuf:"bytes,2,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"`
	// continue may be set if the user set a limit on the number of items returned, and indicates that
	// the server has more data available. The value is opaque and may be used to issue another request
	// to the endpoint that served this list to retrieve the next set of available objects. Continuing a
	// list may not be possible if the server configuration has changed or more than a few minutes have
	// passed. The resourceVersion field returned when using this continue value will be identical to
	// the value in the first response.
	Continue string `protobuf:"bytes,3,opt,name=continue,proto3" json:"continue,omitempty"`
}

ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.

func (*ListMeta) Descriptor

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

func (*ListMeta) GetContinue

func (m *ListMeta) GetContinue() string

func (*ListMeta) GetResourceVersion

func (m *ListMeta) GetResourceVersion() string
func (m *ListMeta) GetSelfLink() string

func (*ListMeta) ProtoMessage

func (*ListMeta) ProtoMessage()

func (*ListMeta) Reset

func (m *ListMeta) Reset()

func (*ListMeta) String

func (m *ListMeta) String() string

type ListOptions

type ListOptions struct {
	// A selector to restrict the list of returned objects by their labels.
	// Defaults to everything.
	// +optional
	LabelSelector string `protobuf:"bytes,1,opt,name=labelSelector,proto3" json:"labelSelector,omitempty"`
	// A selector to restrict the list of returned objects by their fields.
	// Defaults to everything.
	// +optional
	FieldSelector string `protobuf:"bytes,2,opt,name=fieldSelector,proto3" json:"fieldSelector,omitempty"`
	// If true, partially initialized resources are included in the response.
	// +optional
	IncludeUninitialized bool `protobuf:"varint,6,opt,name=includeUninitialized,proto3" json:"includeUninitialized,omitempty"`
	// Watch for changes to the described resources and return them as a stream of
	// add, update, and remove notifications. Specify resourceVersion.
	// +optional
	Watch bool `protobuf:"varint,3,opt,name=watch,proto3" json:"watch,omitempty"`
	// When specified with a watch call, shows changes that occur after that particular version of a resource.
	// Defaults to changes from the beginning of history.
	// When specified for list:
	// - if unset, then the result is returned from remote storage based on quorum-read flag;
	// - if it's 0, then we simply return what we currently have in cache, no guarantee;
	// - if set to non zero, then the result is at least as fresh as given rv.
	// +optional
	ResourceVersion string `protobuf:"bytes,4,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"`
	// Timeout for the list/watch call.
	// This limits the duration of the call, regardless of any activity or inactivity.
	// +optional
	TimeoutSeconds int64 `protobuf:"varint,5,opt,name=timeoutSeconds,proto3" json:"timeoutSeconds,omitempty"`
	// limit is a maximum number of responses to return for a list call. If more items exist, the
	// server will set the `continue` field on the list metadata to a value that can be used with the
	// same initial query to retrieve the next set of results. Setting a limit may return fewer than
	// the requested amount of items (up to zero items) in the event all requested objects are
	// filtered out and clients should only use the presence of the continue field to determine whether
	// more results are available. Servers may choose not to support the limit argument and will return
	// all of the available results. If limit is specified and the continue field is empty, clients may
	// assume that no more results are available. This field is not supported if watch is true.
	//
	// The server guarantees that the objects returned when using continue will be identical to issuing
	// a single list call without a limit - that is, no objects created, modified, or deleted after the
	// first request is issued will be included in any subsequent continued requests. This is sometimes
	// referred to as a consistent snapshot, and ensures that a client that is using limit to receive
	// smaller chunks of a very large result can ensure they see all possible objects. If objects are
	// updated during a chunked list the version of the object that was present at the time the first list
	// result was calculated is returned.
	Limit int64 `protobuf:"varint,7,opt,name=limit,proto3" json:"limit,omitempty"`
	// The continue option should be set when retrieving more results from the server. Since this value
	// is server defined, clients may only use the continue value from a previous query result with
	// identical query parameters (except for the value of continue) and the server may reject a continue
	// value it does not recognize. If the specified continue value is no longer valid whether due to
	// expiration (generally five to fifteen minutes) or a configuration change on the server the server
	// will respond with a 410 ResourceExpired error indicating the client must restart their list without
	// the continue field. This field is not supported when watch is true. Clients may start a watch from
	// the last resourceVersion value returned by the server and not miss any modifications.
	Continue string `protobuf:"bytes,8,opt,name=continue,proto3" json:"continue,omitempty"`
}

ListOptions is the query options to a standard REST list call.

func (*ListOptions) Descriptor

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

func (*ListOptions) GetContinue

func (m *ListOptions) GetContinue() string

func (*ListOptions) GetFieldSelector

func (m *ListOptions) GetFieldSelector() string

func (*ListOptions) GetIncludeUninitialized

func (m *ListOptions) GetIncludeUninitialized() bool

func (*ListOptions) GetLabelSelector

func (m *ListOptions) GetLabelSelector() string

func (*ListOptions) GetLimit

func (m *ListOptions) GetLimit() int64

func (*ListOptions) GetResourceVersion

func (m *ListOptions) GetResourceVersion() string

func (*ListOptions) GetTimeoutSeconds

func (m *ListOptions) GetTimeoutSeconds() int64

func (*ListOptions) GetWatch

func (m *ListOptions) GetWatch() bool

func (*ListOptions) ProtoMessage

func (*ListOptions) ProtoMessage()

func (*ListOptions) Reset

func (m *ListOptions) Reset()

func (*ListOptions) String

func (m *ListOptions) String() string

type Node

type Node struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	// optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
	Metadata *ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Spec defines the behavior of a node.
	// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
	// +optional
	// optional NodeSpec spec = 2;
	Spec *NodeSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
	// Most recently observed status of the node.
	// Populated by the system.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
	// +optional
	// optional NodeStatus status = 3;
	Status *NodeStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
}

Inspred by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L1763 Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).

func (*Node) Descriptor

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

func (*Node) GetMetadata

func (m *Node) GetMetadata() *ListMeta

func (*Node) GetSpec

func (m *Node) GetSpec() *NodeSpec

func (*Node) GetStatus

func (m *Node) GetStatus() *NodeStatus

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) String

func (m *Node) String() string

type NodeAddress

type NodeAddress struct {
	// Node address type, one of Hostname, ExternalIP or InternalIP.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// The node address.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

Inspired by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L1784 NodeAddress contains information for the node's address.

func (*NodeAddress) Descriptor

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

func (*NodeAddress) GetAddress

func (m *NodeAddress) GetAddress() string

func (*NodeAddress) GetType

func (m *NodeAddress) GetType() string

func (*NodeAddress) ProtoMessage

func (*NodeAddress) ProtoMessage()

func (*NodeAddress) Reset

func (m *NodeAddress) Reset()

func (*NodeAddress) String

func (m *NodeAddress) String() string

type NodeCondition

type NodeCondition struct {
	// Type of node condition.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Status of the condition, one of True, False, Unknown.
	Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// Last time we got an update on a given condition.
	// +optional
	// optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3;
	LastHeartbeatTime *Time `protobuf:"bytes,3,opt,name=lastHeartbeatTime" json:"lastHeartbeatTime,omitempty"`
	// Last time the condition transit from one status to another.
	// +optional
	// optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4;
	LastTransitionTime *Time `protobuf:"bytes,4,opt,name=lastTransitionTime" json:"lastTransitionTime,omitempty"`
	// (brief) reason for the condition's last transition.
	// +optional
	Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"`
	// Human readable message indicating details about last transition.
	// +optional
	Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
}

Inspired by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L1816 NodeCondition contains condition information for a node.

func (*NodeCondition) Descriptor

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

func (*NodeCondition) GetLastHeartbeatTime

func (m *NodeCondition) GetLastHeartbeatTime() *Time

func (*NodeCondition) GetLastTransitionTime

func (m *NodeCondition) GetLastTransitionTime() *Time

func (*NodeCondition) GetMessage

func (m *NodeCondition) GetMessage() string

func (*NodeCondition) GetReason

func (m *NodeCondition) GetReason() string

func (*NodeCondition) GetStatus

func (m *NodeCondition) GetStatus() string

func (*NodeCondition) GetType

func (m *NodeCondition) GetType() string

func (*NodeCondition) ProtoMessage

func (*NodeCondition) ProtoMessage()

func (*NodeCondition) Reset

func (m *NodeCondition) Reset()

func (*NodeCondition) String

func (m *NodeCondition) String() string

type NodeConfigSource

type NodeConfigSource struct {
	// ConfigMap is a reference to a Node's ConfigMap
	ConfigMap *ConfigMapNodeConfigSource `protobuf:"bytes,2,opt,name=configMap" json:"configMap,omitempty"`
}

Inspired by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L1841 NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil.

func (*NodeConfigSource) Descriptor

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

func (*NodeConfigSource) GetConfigMap

func (m *NodeConfigSource) GetConfigMap() *ConfigMapNodeConfigSource

func (*NodeConfigSource) ProtoMessage

func (*NodeConfigSource) ProtoMessage()

func (*NodeConfigSource) Reset

func (m *NodeConfigSource) Reset()

func (*NodeConfigSource) String

func (m *NodeConfigSource) String() string

type NodeConfigStatus

type NodeConfigStatus struct {
	// Assigned reports the checkpointed config the node will try to use.
	// When Node.Spec.ConfigSource is updated, the node checkpoints the associated
	// config payload to local disk, along with a record indicating intended
	// config. The node refers to this record to choose its config checkpoint, and
	// reports this record in Assigned. Assigned only updates in the status after
	// the record has been checkpointed to disk. When the Kubelet is restarted,
	// it tries to make the Assigned config the Active config by loading and
	// validating the checkpointed payload identified by Assigned.
	// +optional
	Assigned *NodeConfigSource `protobuf:"bytes,1,opt,name=assigned" json:"assigned,omitempty"`
	// Active reports the checkpointed config the node is actively using.
	// Active will represent either the current version of the Assigned config,
	// or the current LastKnownGood config, depending on whether attempting to use the
	// Assigned config results in an error.
	// +optional
	Active *NodeConfigSource `protobuf:"bytes,2,opt,name=active" json:"active,omitempty"`
	// LastKnownGood reports the checkpointed config the node will fall back to
	// when it encounters an error attempting to use the Assigned config.
	// The Assigned config becomes the LastKnownGood config when the node determines
	// that the Assigned config is stable and correct.
	// This is currently implemented as a 10-minute soak period starting when the local
	// record of Assigned config is updated. If the Assigned config is Active at the end
	// of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
	// reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
	// because the local default config is always assumed good.
	// You should not make assumptions about the node's method of determining config stability
	// and correctness, as this may change or become configurable in the future.
	// +optional
	LastKnownGood *NodeConfigSource `protobuf:"bytes,3,opt,name=lastKnownGood" json:"lastKnownGood,omitempty"`
	// Error describes any problems reconciling the Spec.ConfigSource to the Active config.
	// Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
	// record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
	// to load or validate the Assigned config, etc.
	// Errors may occur at different points while syncing config. Earlier errors (e.g. download or
	// checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
	// Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
	// a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
	// by fixing the config assigned in Spec.ConfigSource.
	// You can find additional information for debugging by searching the error message in the Kubelet log.
	// Error is a human-readable description of the error state; machines can check whether or not Error
	// is empty, but should not rely on the stability of the Error text across Kubelet versions.
	// +optional
	Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
}

Inspred by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L1847 NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.

func (*NodeConfigStatus) Descriptor

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

func (*NodeConfigStatus) GetActive

func (m *NodeConfigStatus) GetActive() *NodeConfigSource

func (*NodeConfigStatus) GetAssigned

func (m *NodeConfigStatus) GetAssigned() *NodeConfigSource

func (*NodeConfigStatus) GetError

func (m *NodeConfigStatus) GetError() string

func (*NodeConfigStatus) GetLastKnownGood

func (m *NodeConfigStatus) GetLastKnownGood() *NodeConfigSource

func (*NodeConfigStatus) ProtoMessage

func (*NodeConfigStatus) ProtoMessage()

func (*NodeConfigStatus) Reset

func (m *NodeConfigStatus) Reset()

func (*NodeConfigStatus) String

func (m *NodeConfigStatus) String() string

type NodeDaemonEndpoints

type NodeDaemonEndpoints struct {
	// Endpoint on which Kubelet is listening.
	// +optional
	KubeletEndpoint *DaemonEndpoint `protobuf:"bytes,1,opt,name=kubeletEndpoint" json:"kubeletEndpoint,omitempty"`
}

Inspired by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L1897 NodeDaemonEndpoints lists ports opened by daemons running on the Node.

func (*NodeDaemonEndpoints) Descriptor

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

func (*NodeDaemonEndpoints) GetKubeletEndpoint

func (m *NodeDaemonEndpoints) GetKubeletEndpoint() *DaemonEndpoint

func (*NodeDaemonEndpoints) ProtoMessage

func (*NodeDaemonEndpoints) ProtoMessage()

func (*NodeDaemonEndpoints) Reset

func (m *NodeDaemonEndpoints) Reset()

func (*NodeDaemonEndpoints) String

func (m *NodeDaemonEndpoints) String() string

type NodeList

type NodeList struct {
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
	// +optional
	// optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
	Metadata *ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// List of nodes
	Items []*Node `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
}

Inspired by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L1904 NodeList is the whole list of all Nodes which have been registered with master. message NodeList {

func (*NodeList) Descriptor

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

func (*NodeList) GetItems

func (m *NodeList) GetItems() []*Node

func (*NodeList) GetMetadata

func (m *NodeList) GetMetadata() *ListMeta

func (*NodeList) ProtoMessage

func (*NodeList) ProtoMessage()

func (*NodeList) Reset

func (m *NodeList) Reset()

func (*NodeList) String

func (m *NodeList) String() string

type NodeSpec

type NodeSpec struct {
	// PodCIDR represents the pod IP range assigned to the node.
	// +optional
	PodCIDR string `protobuf:"bytes,1,opt,name=podCIDR,proto3" json:"podCIDR,omitempty"`
	// ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
	// +optional
	ProviderID string `protobuf:"bytes,3,opt,name=providerID,proto3" json:"providerID,omitempty"`
	// Unschedulable controls node schedulability of new pods. By default, node is schedulable.
	// More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
	// +optional
	Unschedulable bool `protobuf:"varint,4,opt,name=unschedulable,proto3" json:"unschedulable,omitempty"`
	// If specified, the node's taints.
	// +optional
	Taints []*Taint `protobuf:"bytes,5,rep,name=taints" json:"taints,omitempty"`
	// If specified, the source to get node configuration from
	// The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field
	// +optional
	ConfigSource *NodeConfigSource `protobuf:"bytes,6,opt,name=configSource" json:"configSource,omitempty"`
	// Deprecated. Not all kubelets will set this field. Remove field after 1.13.
	// see: https://issues.k8s.io/61966
	// +optional
	ExternalID string `protobuf:"bytes,2,opt,name=externalID,proto3" json:"externalID,omitempty"`
}

Inspred by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L1968 NodeSpec describes the attributes that a node is created with.

func (*NodeSpec) Descriptor

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

func (*NodeSpec) GetConfigSource

func (m *NodeSpec) GetConfigSource() *NodeConfigSource

func (*NodeSpec) GetExternalID

func (m *NodeSpec) GetExternalID() string

func (*NodeSpec) GetPodCIDR

func (m *NodeSpec) GetPodCIDR() string

func (*NodeSpec) GetProviderID

func (m *NodeSpec) GetProviderID() string

func (*NodeSpec) GetTaints

func (m *NodeSpec) GetTaints() []*Taint

func (*NodeSpec) GetUnschedulable

func (m *NodeSpec) GetUnschedulable() bool

func (*NodeSpec) ProtoMessage

func (*NodeSpec) ProtoMessage()

func (*NodeSpec) Reset

func (m *NodeSpec) Reset()

func (*NodeSpec) String

func (m *NodeSpec) String() string

type NodeStatus

type NodeStatus struct {
	// Capacity represents the total resources of a node.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
	// +optional
	// map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> capacity = 1;
	Capacity map[string]*Quantity `` /* 143-byte string literal not displayed */
	// Allocatable represents the resources of a node that are available for scheduling.
	// Defaults to Capacity.
	// +optional
	// map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> allocatable = 2;
	Allocatable map[string]*Quantity `` /* 149-byte string literal not displayed */
	// NodePhase is the recently observed lifecycle phase of the node.
	// More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
	// The field is never populated, and now is deprecated.
	// +optional
	Phase string `protobuf:"bytes,3,opt,name=phase,proto3" json:"phase,omitempty"`
	// Conditions is an array of current observed node conditions.
	// More info: https://kubernetes.io/docs/concepts/nodes/node/#condition
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []*NodeCondition `protobuf:"bytes,4,rep,name=conditions" json:"conditions,omitempty"`
	// List of addresses reachable to the node.
	// Queried from cloud provider, if available.
	// More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Addresses []*NodeAddress `protobuf:"bytes,5,rep,name=addresses" json:"addresses,omitempty"`
	// Endpoints of daemons running on the Node.
	// +optional
	DaemonEndpoints *NodeDaemonEndpoints `protobuf:"bytes,6,opt,name=daemonEndpoints" json:"daemonEndpoints,omitempty"`
	// Set of ids/uuids to uniquely identify the node.
	// More info: https://kubernetes.io/docs/concepts/nodes/node/#info
	// +optional
	NodeInfo *NodeSystemInfo `protobuf:"bytes,7,opt,name=nodeInfo" json:"nodeInfo,omitempty"`
	// List of container images on this node
	// +optional
	Images []*ContainerImage `protobuf:"bytes,8,rep,name=images" json:"images,omitempty"`
	// List of attachable volumes in use (mounted) by the node.
	// +optional
	VolumesInUse []string `protobuf:"bytes,9,rep,name=volumesInUse" json:"volumesInUse,omitempty"`
	// List of volumes that are attached to the node.
	// +optional
	VolumesAttached []*AttachedVolume `protobuf:"bytes,10,rep,name=volumesAttached" json:"volumesAttached,omitempty"`
	// Status of the config assigned to the node via the dynamic Kubelet config feature.
	// +optional
	Config *NodeConfigStatus `protobuf:"bytes,11,opt,name=config" json:"config,omitempty"`
}

Inspired by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L1998 NodeStatus is information about the current status of a node.

func (*NodeStatus) Descriptor

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

func (*NodeStatus) GetAddresses

func (m *NodeStatus) GetAddresses() []*NodeAddress

func (*NodeStatus) GetAllocatable

func (m *NodeStatus) GetAllocatable() map[string]*Quantity

func (*NodeStatus) GetCapacity

func (m *NodeStatus) GetCapacity() map[string]*Quantity

func (*NodeStatus) GetConditions

func (m *NodeStatus) GetConditions() []*NodeCondition

func (*NodeStatus) GetConfig

func (m *NodeStatus) GetConfig() *NodeConfigStatus

func (*NodeStatus) GetDaemonEndpoints

func (m *NodeStatus) GetDaemonEndpoints() *NodeDaemonEndpoints

func (*NodeStatus) GetImages

func (m *NodeStatus) GetImages() []*ContainerImage

func (*NodeStatus) GetNodeInfo

func (m *NodeStatus) GetNodeInfo() *NodeSystemInfo

func (*NodeStatus) GetPhase

func (m *NodeStatus) GetPhase() string

func (*NodeStatus) GetVolumesAttached

func (m *NodeStatus) GetVolumesAttached() []*AttachedVolume

func (*NodeStatus) GetVolumesInUse

func (m *NodeStatus) GetVolumesInUse() []string

func (*NodeStatus) ProtoMessage

func (*NodeStatus) ProtoMessage()

func (*NodeStatus) Reset

func (m *NodeStatus) Reset()

func (*NodeStatus) String

func (m *NodeStatus) String() string

type NodeSystemInfo

type NodeSystemInfo struct {
	// MachineID reported by the node. For unique machine identification
	// in the cluster this field is preferred. Learn more from man(5)
	// machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
	MachineID string `protobuf:"bytes,1,opt,name=machineID,proto3" json:"machineID,omitempty"`
	// SystemUUID reported by the node. For unique machine identification
	// MachineID is preferred. This field is specific to Red Hat hosts
	// https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html
	SystemUUID string `protobuf:"bytes,2,opt,name=systemUUID,proto3" json:"systemUUID,omitempty"`
	// Boot ID reported by the node.
	BootID string `protobuf:"bytes,3,opt,name=bootID,proto3" json:"bootID,omitempty"`
	// Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
	KernelVersion string `protobuf:"bytes,4,opt,name=kernelVersion,proto3" json:"kernelVersion,omitempty"`
	// OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
	OsImage string `protobuf:"bytes,5,opt,name=osImage,proto3" json:"osImage,omitempty"`
	// ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
	ContainerRuntimeVersion string `protobuf:"bytes,6,opt,name=containerRuntimeVersion,proto3" json:"containerRuntimeVersion,omitempty"`
	// Kubelet Version reported by the node.
	KubeletVersion string `protobuf:"bytes,7,opt,name=kubeletVersion,proto3" json:"kubeletVersion,omitempty"`
	// KubeProxy Version reported by the node.
	KubeProxyVersion string `protobuf:"bytes,8,opt,name=kubeProxyVersion,proto3" json:"kubeProxyVersion,omitempty"`
	// The Operating System reported by the node
	OperatingSystem string `protobuf:"bytes,9,opt,name=operatingSystem,proto3" json:"operatingSystem,omitempty"`
	// The Architecture reported by the node
	Architecture string `protobuf:"bytes,10,opt,name=architecture,proto3" json:"architecture,omitempty"`
}

Inspired by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L2057 NodeSystemInfo is a set of ids/uuids to uniquely identify the node.

func (*NodeSystemInfo) Descriptor

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

func (*NodeSystemInfo) GetArchitecture

func (m *NodeSystemInfo) GetArchitecture() string

func (*NodeSystemInfo) GetBootID

func (m *NodeSystemInfo) GetBootID() string

func (*NodeSystemInfo) GetContainerRuntimeVersion

func (m *NodeSystemInfo) GetContainerRuntimeVersion() string

func (*NodeSystemInfo) GetKernelVersion

func (m *NodeSystemInfo) GetKernelVersion() string

func (*NodeSystemInfo) GetKubeProxyVersion

func (m *NodeSystemInfo) GetKubeProxyVersion() string

func (*NodeSystemInfo) GetKubeletVersion

func (m *NodeSystemInfo) GetKubeletVersion() string

func (*NodeSystemInfo) GetMachineID

func (m *NodeSystemInfo) GetMachineID() string

func (*NodeSystemInfo) GetOperatingSystem

func (m *NodeSystemInfo) GetOperatingSystem() string

func (*NodeSystemInfo) GetOsImage

func (m *NodeSystemInfo) GetOsImage() string

func (*NodeSystemInfo) GetSystemUUID

func (m *NodeSystemInfo) GetSystemUUID() string

func (*NodeSystemInfo) ProtoMessage

func (*NodeSystemInfo) ProtoMessage()

func (*NodeSystemInfo) Reset

func (m *NodeSystemInfo) Reset()

func (*NodeSystemInfo) String

func (m *NodeSystemInfo) String() string

type ObjectMeta

type ObjectMeta struct {
	// Name must be unique within a namespace. Is required when creating resources, although
	// some resources may allow a client to request the generation of an appropriate name
	// automatically. Name is primarily intended for creation idempotence and configuration
	// definition.
	// Cannot be updated.
	// More info: http://kubernetes.io/docs/user-guide/identifiers#names
	// +optional
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// GenerateName is an optional prefix, used by the server, to generate a unique
	// name ONLY IF the Name field has not been provided.
	// If this field is used, the name returned to the client will be different
	// than the name passed. This value will also be combined with a unique suffix.
	// The provided value has the same validation rules as the Name field,
	// and may be truncated by the length of the suffix required to make the value
	// unique on the server.
	//
	// If this field is specified and the generated name exists, the server will
	// NOT return a 409 - instead, it will either return 201 Created or 500 with Reason
	// ServerTimeout indicating a unique name could not be found in the time allotted, and the client
	// should retry (optionally after the time indicated in the Retry-After header).
	//
	// Applied only if Name is not specified.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency
	// +optional
	GenerateName string `protobuf:"bytes,2,opt,name=generateName,proto3" json:"generateName,omitempty"`
	// Namespace defines the space within each name must be unique. An empty namespace is
	// equivalent to the "default" namespace, but "default" is the canonical representation.
	// Not all objects are required to be scoped to a namespace - the value of this field for
	// those objects will be empty.
	//
	// Must be a DNS_LABEL.
	// Cannot be updated.
	// More info: http://kubernetes.io/docs/user-guide/namespaces
	// +optional
	Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// SelfLink is a URL representing this object.
	// Populated by the system.
	// Read-only.
	// +optional
	SelfLink string `protobuf:"bytes,4,opt,name=selfLink,proto3" json:"selfLink,omitempty"`
	// UID is the unique in time and space value for this object. It is typically generated by
	// the server on successful creation of a resource and is not allowed to change on PUT
	// operations.
	//
	// Populated by the system.
	// Read-only.
	// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
	// +optional
	Uid string `protobuf:"bytes,5,opt,name=uid,proto3" json:"uid,omitempty"`
	// An opaque value that represents the internal version of this object that can
	// be used by clients to determine when objects have changed. May be used for optimistic
	// concurrency, change detection, and the watch operation on a resource or set of resources.
	// Clients must treat these values as opaque and passed unmodified back to the server.
	// They may only be valid for a particular resource or set of resources.
	//
	// Populated by the system.
	// Read-only.
	// Value must be treated as opaque by clients and .
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency
	// +optional
	ResourceVersion string `protobuf:"bytes,6,opt,name=resourceVersion,proto3" json:"resourceVersion,omitempty"`
	// A sequence number representing a specific generation of the desired state.
	// Populated by the system. Read-only.
	// +optional
	Generation int64 `protobuf:"varint,7,opt,name=generation,proto3" json:"generation,omitempty"`
	// CreationTimestamp is a timestamp representing the server time when this object was
	// created. It is not guaranteed to be set in happens-before order across separate operations.
	// Clients may not set this value. It is represented in RFC3339 form and is in UTC.
	//
	// Populated by the system.
	// Read-only.
	// Null for lists.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	CreationTimestamp *Time `protobuf:"bytes,8,opt,name=creationTimestamp" json:"creationTimestamp,omitempty"`
	// DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
	// field is set by the server when a graceful deletion is requested by the user, and is not
	// directly settable by a client. The resource is expected to be deleted (no longer visible
	// from resource lists, and not reachable by name) after the time in this field, once the
	// finalizers list is empty. As long as the finalizers list contains items, deletion is blocked.
	// Once the deletionTimestamp is set, this value may not be unset or be set further into the
	// future, although it may be shortened or the resource may be deleted prior to this time.
	// For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react
	// by sending a graceful termination signal to the containers in the pod. After that 30 seconds,
	// the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup,
	// remove the pod from the API. In the presence of network partitions, this object may still
	// exist after this timestamp, until an administrator or automated process can determine the
	// resource is fully terminated.
	// If not set, graceful deletion of the object has not been requested.
	//
	// Populated by the system when a graceful deletion is requested.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
	// +optional
	DeletionTimestamp *Time `protobuf:"bytes,9,opt,name=deletionTimestamp" json:"deletionTimestamp,omitempty"`
	// Number of seconds allowed for this object to gracefully terminate before
	// it will be removed from the system. Only set when deletionTimestamp is also set.
	// May only be shortened.
	// Read-only.
	// +optional
	DeletionGracePeriodSeconds int64 `protobuf:"varint,10,opt,name=deletionGracePeriodSeconds,proto3" json:"deletionGracePeriodSeconds,omitempty"`
	// Map of string keys and values that can be used to organize and categorize
	// (scope and select) objects. May match selectors of replication controllers
	// and services.
	// More info: http://kubernetes.io/docs/user-guide/labels
	// +optional
	Labels map[string]string `` /* 147-byte string literal not displayed */
	// Annotations is an unstructured key value map stored with a resource that may be
	// set by external tools to store and retrieve arbitrary metadata. They are not
	// queryable and should be preserved when modifying objects.
	// More info: http://kubernetes.io/docs/user-guide/annotations
	// +optional
	Annotations map[string]string `` /* 157-byte string literal not displayed */
	// List of objects depended by this object. If ALL objects in the list have
	// been deleted, this object will be garbage collected. If this object is managed by a controller,
	// then an entry in this list will point to this controller, with the controller field set to true.
	// There cannot be more than one managing controller.
	// +optional
	// +patchMergeKey=uid
	// +patchStrategy=merge
	OwnerReferences []*OwnerReference `protobuf:"bytes,13,rep,name=ownerReferences" json:"ownerReferences,omitempty"`
	// An initializer is a controller which enforces some system invariant at object creation time.
	// This field is a list of initializers that have not yet acted on this object. If nil or empty,
	// this object has been completely initialized. Otherwise, the object is considered uninitialized
	// and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to
	// observe uninitialized objects.
	//
	// When an object is created, the system will populate this list with the current set of initializers.
	// Only privileged users may set or modify this list. Once it is empty, it may not be modified further
	// by any user.
	Initializers *Initializers `protobuf:"bytes,16,opt,name=initializers" json:"initializers,omitempty"`
	// Must be empty before the object is deleted from the registry. Each entry
	// is an identifier for the responsible component that will remove the entry
	// from the list. If the deletionTimestamp of the object is non-nil, entries
	// in this list can only be removed.
	// +optional
	// +patchStrategy=merge
	Finalizers []string `protobuf:"bytes,14,rep,name=finalizers" json:"finalizers,omitempty"`
	// The name of the cluster which the object belongs to.
	// This is used to distinguish resources with same name and namespace in different clusters.
	// This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.
	// +optional
	ClusterName string `protobuf:"bytes,15,opt,name=clusterName,proto3" json:"clusterName,omitempty"`
}

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

func (*ObjectMeta) Descriptor

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

func (*ObjectMeta) GetAnnotations

func (m *ObjectMeta) GetAnnotations() map[string]string

func (*ObjectMeta) GetClusterName

func (m *ObjectMeta) GetClusterName() string

func (*ObjectMeta) GetCreationTimestamp

func (m *ObjectMeta) GetCreationTimestamp() *Time

func (*ObjectMeta) GetDeletionGracePeriodSeconds

func (m *ObjectMeta) GetDeletionGracePeriodSeconds() int64

func (*ObjectMeta) GetDeletionTimestamp

func (m *ObjectMeta) GetDeletionTimestamp() *Time

func (*ObjectMeta) GetFinalizers

func (m *ObjectMeta) GetFinalizers() []string

func (*ObjectMeta) GetGenerateName

func (m *ObjectMeta) GetGenerateName() string

func (*ObjectMeta) GetGeneration

func (m *ObjectMeta) GetGeneration() int64

func (*ObjectMeta) GetInitializers

func (m *ObjectMeta) GetInitializers() *Initializers

func (*ObjectMeta) GetLabels

func (m *ObjectMeta) GetLabels() map[string]string

func (*ObjectMeta) GetName

func (m *ObjectMeta) GetName() string

func (*ObjectMeta) GetNamespace

func (m *ObjectMeta) GetNamespace() string

func (*ObjectMeta) GetOwnerReferences

func (m *ObjectMeta) GetOwnerReferences() []*OwnerReference

func (*ObjectMeta) GetResourceVersion

func (m *ObjectMeta) GetResourceVersion() string
func (m *ObjectMeta) GetSelfLink() string

func (*ObjectMeta) GetUid

func (m *ObjectMeta) GetUid() string

func (*ObjectMeta) ProtoMessage

func (*ObjectMeta) ProtoMessage()

func (*ObjectMeta) Reset

func (m *ObjectMeta) Reset()

func (*ObjectMeta) String

func (m *ObjectMeta) String() string

type OpenStackNodeStatus

type OpenStackNodeStatus struct {
	Capacity    map[string]*Quantity `` /* 143-byte string literal not displayed */
	Allocatable map[string]*Quantity `` /* 149-byte string literal not displayed */
	Phase       string               `protobuf:"bytes,3,opt,name=phase,proto3" json:"phase,omitempty"`
	Addresses   []*NodeAddress       `protobuf:"bytes,4,rep,name=addresses" json:"addresses,omitempty"`
}

func (*OpenStackNodeStatus) Descriptor

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

func (*OpenStackNodeStatus) GetAddresses

func (m *OpenStackNodeStatus) GetAddresses() []*NodeAddress

func (*OpenStackNodeStatus) GetAllocatable

func (m *OpenStackNodeStatus) GetAllocatable() map[string]*Quantity

func (*OpenStackNodeStatus) GetCapacity

func (m *OpenStackNodeStatus) GetCapacity() map[string]*Quantity

func (*OpenStackNodeStatus) GetPhase

func (m *OpenStackNodeStatus) GetPhase() string

func (*OpenStackNodeStatus) ProtoMessage

func (*OpenStackNodeStatus) ProtoMessage()

func (*OpenStackNodeStatus) Reset

func (m *OpenStackNodeStatus) Reset()

func (*OpenStackNodeStatus) String

func (m *OpenStackNodeStatus) String() string

type OwnerReference

type OwnerReference struct {
	// API version of the referent.
	ApiVersion string `protobuf:"bytes,5,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"`
	// Kind of the referent.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// Name of the referent.
	// More info: http://kubernetes.io/docs/user-guide/identifiers#names
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// UID of the referent.
	// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
	Uid string `protobuf:"bytes,4,opt,name=uid,proto3" json:"uid,omitempty"`
	// If true, this reference points to the managing controller.
	// +optional
	Controller bool `protobuf:"varint,6,opt,name=controller,proto3" json:"controller,omitempty"`
	// If true, AND if the owner has the "foregroundDeletion" finalizer, then
	// the owner cannot be deleted from the key-value store until this
	// reference is removed.
	// Defaults to false.
	// To set this field, a user needs "delete" permission of the owner,
	// otherwise 422 (Unprocessable Entity) will be returned.
	// +optional
	BlockOwnerDeletion bool `protobuf:"varint,7,opt,name=blockOwnerDeletion,proto3" json:"blockOwnerDeletion,omitempty"`
}

OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.

func (*OwnerReference) Descriptor

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

func (*OwnerReference) GetApiVersion

func (m *OwnerReference) GetApiVersion() string

func (*OwnerReference) GetBlockOwnerDeletion

func (m *OwnerReference) GetBlockOwnerDeletion() bool

func (*OwnerReference) GetController

func (m *OwnerReference) GetController() bool

func (*OwnerReference) GetKind

func (m *OwnerReference) GetKind() string

func (*OwnerReference) GetName

func (m *OwnerReference) GetName() string

func (*OwnerReference) GetUid

func (m *OwnerReference) GetUid() string

func (*OwnerReference) ProtoMessage

func (*OwnerReference) ProtoMessage()

func (*OwnerReference) Reset

func (m *OwnerReference) Reset()

func (*OwnerReference) String

func (m *OwnerReference) String() string

type PhysicalMachineStatus

type PhysicalMachineStatus struct {
	Capacity    map[string]*Quantity `` /* 143-byte string literal not displayed */
	Allocatable map[string]*Quantity `` /* 149-byte string literal not displayed */
	Phase       string               `protobuf:"bytes,3,opt,name=phase,proto3" json:"phase,omitempty"`
	Addresses   []*NodeAddress       `protobuf:"bytes,4,rep,name=addresses" json:"addresses,omitempty"`
}

func (*PhysicalMachineStatus) Descriptor

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

func (*PhysicalMachineStatus) GetAddresses

func (m *PhysicalMachineStatus) GetAddresses() []*NodeAddress

func (*PhysicalMachineStatus) GetAllocatable

func (m *PhysicalMachineStatus) GetAllocatable() map[string]*Quantity

func (*PhysicalMachineStatus) GetCapacity

func (m *PhysicalMachineStatus) GetCapacity() map[string]*Quantity

func (*PhysicalMachineStatus) GetPhase

func (m *PhysicalMachineStatus) GetPhase() string

func (*PhysicalMachineStatus) ProtoMessage

func (*PhysicalMachineStatus) ProtoMessage()

func (*PhysicalMachineStatus) Reset

func (m *PhysicalMachineStatus) Reset()

func (*PhysicalMachineStatus) String

func (m *PhysicalMachineStatus) String() string

type Quantity

type Quantity struct {
	String_ string `protobuf:"bytes,1,opt,name=string,proto3" json:"string,omitempty"`
}

Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.

The serialization format is:

<quantity> ::= <signedNumber><suffix>

(Note that <suffix> may be empty, from the "" case in <decimalSI>.)

<digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= "+" | "-" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei

(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)

<decimalSI> ::= m | "" | k | M | G | T | P | E

(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)

<decimalExponent> ::= "e" <signedNumber> | "E" <signedNumber>

No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.

When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.

Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:

a. No precision is lost
b. No fractional digits will be emitted
c. The exponent (or suffix) is as large as possible.

The sign will be omitted unless the number is negative.

Examples:

1.5 will be serialized as "1500m"
1.5Gi will be serialized as "1536Mi"

NOTE: We reserve the right to amend this canonical format, perhaps to

allow 1.5 to be canonical.

TODO: Remove above disclaimer after all bikeshedding about format is over,

or after March 2015.

Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.

Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)

This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.

+protobuf=true +protobuf.embed=string +protobuf.options.marshal=false +protobuf.options.(gogoproto.goproto_stringer)=false +k8s:deepcopy-gen=true +k8s:openapi-gen=true

func (*Quantity) Descriptor

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

func (*Quantity) GetString_

func (m *Quantity) GetString_() string

func (*Quantity) ProtoMessage

func (*Quantity) ProtoMessage()

func (*Quantity) Reset

func (m *Quantity) Reset()

func (*Quantity) String

func (m *Quantity) String() string

type RawExtension

type RawExtension struct {
	// Raw is the underlying serialization of this object.
	//
	// TODO: Determine how to detect ContentType and ContentEncoding of 'Raw' data.
	Raw []byte `protobuf:"bytes,1,opt,name=raw,proto3" json:"raw,omitempty"`
}

RawExtension is used to hold extensions in external versions.

To use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.

// Internal package:

type MyAPIObject struct {
	runtime.TypeMeta `json:",inline"`
	MyPlugin runtime.Object `json:"myPlugin"`
}
type PluginA struct {
	AOption string `json:"aOption"`
}

// External package:

type MyAPIObject struct {
	runtime.TypeMeta `json:",inline"`
	MyPlugin runtime.RawExtension `json:"myPlugin"`
}
type PluginA struct {
	AOption string `json:"aOption"`
}

// On the wire, the JSON will look something like this:

{
	"kind":"MyAPIObject",
	"apiVersion":"v1",
	"myPlugin": {
		"kind":"PluginA",
		"aOption":"foo",
	},
}

So what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)

+k8s:deepcopy-gen=true +protobuf=true +k8s:openapi-gen=true

func (*RawExtension) Descriptor

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

func (*RawExtension) GetRaw

func (m *RawExtension) GetRaw() []byte

func (*RawExtension) ProtoMessage

func (*RawExtension) ProtoMessage()

func (*RawExtension) Reset

func (m *RawExtension) Reset()

func (*RawExtension) String

func (m *RawExtension) String() string

type Recipient

type Recipient struct {
	Group         string                  `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	Version       string                  `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Scope         string                  `protobuf:"bytes,3,opt,name=scope,proto3" json:"scope,omitempty"`
	Plural        string                  `protobuf:"bytes,4,opt,name=plural,proto3" json:"plural,omitempty"`
	Singular      string                  `protobuf:"bytes,5,opt,name=singular,proto3" json:"singular,omitempty"`
	Kind          string                  `protobuf:"bytes,6,opt,name=kind,proto3" json:"kind,omitempty"`
	ResourceScope Recipient_ResourceScope `` /* 133-byte string literal not displayed */
}

func (*Recipient) Descriptor

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

func (*Recipient) GetGroup

func (m *Recipient) GetGroup() string

func (*Recipient) GetKind

func (m *Recipient) GetKind() string

func (*Recipient) GetPlural

func (m *Recipient) GetPlural() string

func (*Recipient) GetResourceScope

func (m *Recipient) GetResourceScope() Recipient_ResourceScope

func (*Recipient) GetScope

func (m *Recipient) GetScope() string

func (*Recipient) GetSingular

func (m *Recipient) GetSingular() string

func (*Recipient) GetVersion

func (m *Recipient) GetVersion() string

func (*Recipient) ProtoMessage

func (*Recipient) ProtoMessage()

func (*Recipient) Reset

func (m *Recipient) Reset()

func (*Recipient) String

func (m *Recipient) String() string

type Recipient_ResourceScope

type Recipient_ResourceScope int32
const (
	Recipient_Cluster    Recipient_ResourceScope = 0
	Recipient_Namespaced Recipient_ResourceScope = 1
)

func (Recipient_ResourceScope) EnumDescriptor

func (Recipient_ResourceScope) EnumDescriptor() ([]byte, []int)

func (Recipient_ResourceScope) String

func (x Recipient_ResourceScope) String() string

type SimpleGRpcServiceClient

type SimpleGRpcServiceClient interface {
	CreateContact(ctx context.Context, in *ContactReqResp, opts ...grpc.CallOption) (*ContactReqResp, error)
	ReapContact(ctx context.Context, in *ContactReqResp, opts ...grpc.CallOption) (*ContactReqResp, error)
}

func NewSimpleGRpcServiceClient

func NewSimpleGRpcServiceClient(cc *grpc.ClientConn) SimpleGRpcServiceClient

type SimpleGRpcServiceServer

type SimpleGRpcServiceServer interface {
	CreateContact(context.Context, *ContactReqResp) (*ContactReqResp, error)
	ReapContact(context.Context, *ContactReqResp) (*ContactReqResp, error)
}

type Status

type Status struct {
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
	// +optional
	Metadata *ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Status of the operation.
	// One of: "Success" or "Failure".
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
	// +optional
	Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// A human-readable description of the status of this operation.
	// +optional
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// A machine-readable description of why this operation is in the
	// "Failure" status. If this value is empty there
	// is no information available. A Reason clarifies an HTTP status
	// code but does not override it.
	// +optional
	Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
	// Extended data associated with the reason.  Each reason may define its
	// own extended details. This field is optional and the data returned
	// is not guaranteed to conform to any schema except that defined by
	// the reason type.
	// +optional
	Details *StatusDetails `protobuf:"bytes,5,opt,name=details" json:"details,omitempty"`
	// Suggested HTTP return code for this status, 0 if not set.
	// +optional
	Code int32 `protobuf:"varint,6,opt,name=code,proto3" json:"code,omitempty"`
}

Status is a return value for calls that don't return other objects.

func (*Status) Descriptor

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

func (*Status) GetCode

func (m *Status) GetCode() int32

func (*Status) GetDetails

func (m *Status) GetDetails() *StatusDetails

func (*Status) GetMessage

func (m *Status) GetMessage() string

func (*Status) GetMetadata

func (m *Status) GetMetadata() *ListMeta

func (*Status) GetReason

func (m *Status) GetReason() string

func (*Status) GetStatus

func (m *Status) GetStatus() string

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) String

func (m *Status) String() string

type StatusCause

type StatusCause struct {
	// A machine-readable description of the cause of the error. If this value is
	// empty there is no information available.
	// +optional
	Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
	// A human-readable description of the cause of the error.  This field may be
	// presented as-is to a reader.
	// +optional
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// The field of the resource that has caused this error, as named by its JSON
	// serialization. May include dot and postfix notation for nested attributes.
	// Arrays are zero-indexed.  Fields may appear more than once in an array of
	// causes due to fields having multiple errors.
	// Optional.
	//
	// Examples:
	//   "name" - the field "name" on the current resource
	//   "items[0].name" - the field "name" on the first array entry in "items"
	// +optional
	Field string `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"`
}

StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.

func (*StatusCause) Descriptor

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

func (*StatusCause) GetField

func (m *StatusCause) GetField() string

func (*StatusCause) GetMessage

func (m *StatusCause) GetMessage() string

func (*StatusCause) GetReason

func (m *StatusCause) GetReason() string

func (*StatusCause) ProtoMessage

func (*StatusCause) ProtoMessage()

func (*StatusCause) Reset

func (m *StatusCause) Reset()

func (*StatusCause) String

func (m *StatusCause) String() string

type StatusDetails

type StatusDetails struct {
	// The name attribute of the resource associated with the status StatusReason
	// (when there is a single name which can be described).
	// +optional
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The group attribute of the resource associated with the status StatusReason.
	// +optional
	Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
	// The kind attribute of the resource associated with the status StatusReason.
	// On some operations may differ from the requested resource Kind.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
	// +optional
	Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
	// UID of the resource.
	// (when there is a single resource which can be described).
	// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
	// +optional
	Uid string `protobuf:"bytes,6,opt,name=uid,proto3" json:"uid,omitempty"`
	// The Causes array includes more details associated with the StatusReason
	// failure. Not all StatusReasons may provide detailed causes.
	// +optional
	Causes []*StatusCause `protobuf:"bytes,4,rep,name=causes" json:"causes,omitempty"`
	// If specified, the time in seconds before the operation should be retried. Some errors may indicate
	// the client must take an alternate action - for those errors this field may indicate how long to wait
	// before taking the alternate action.
	// +optional
	RetryAfterSeconds int32 `protobuf:"varint,5,opt,name=retryAfterSeconds,proto3" json:"retryAfterSeconds,omitempty"`
}

StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.

func (*StatusDetails) Descriptor

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

func (*StatusDetails) GetCauses

func (m *StatusDetails) GetCauses() []*StatusCause

func (*StatusDetails) GetGroup

func (m *StatusDetails) GetGroup() string

func (*StatusDetails) GetKind

func (m *StatusDetails) GetKind() string

func (*StatusDetails) GetName

func (m *StatusDetails) GetName() string

func (*StatusDetails) GetRetryAfterSeconds

func (m *StatusDetails) GetRetryAfterSeconds() int32

func (*StatusDetails) GetUid

func (m *StatusDetails) GetUid() string

func (*StatusDetails) ProtoMessage

func (*StatusDetails) ProtoMessage()

func (*StatusDetails) Reset

func (m *StatusDetails) Reset()

func (*StatusDetails) String

func (m *StatusDetails) String() string

type Taint

type Taint struct {
	// Required. The taint key to be applied to a node.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Required. The taint value corresponding to the taint key.
	// +optional
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// Required. The effect of the taint on pods
	// that do not tolerate the taint.
	// Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
	Effect string `protobuf:"bytes,3,opt,name=effect,proto3" json:"effect,omitempty"`
	// TimeAdded represents the time at which the taint was added.
	// It is only written for NoExecute taints.
	// +optional
	// optional k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4;
	TimeAdded *Time `protobuf:"bytes,4,opt,name=timeAdded" json:"timeAdded,omitempty"`
}

Inspired by https://github.com/kubernetes/api/blob/master/core/v1/generated.proto#L4289 The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint.

func (*Taint) Descriptor

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

func (*Taint) GetEffect

func (m *Taint) GetEffect() string

func (*Taint) GetKey

func (m *Taint) GetKey() string

func (*Taint) GetTimeAdded

func (m *Taint) GetTimeAdded() *Time

func (*Taint) GetValue

func (m *Taint) GetValue() string

func (*Taint) ProtoMessage

func (*Taint) ProtoMessage()

func (*Taint) Reset

func (m *Taint) Reset()

func (*Taint) String

func (m *Taint) String() string

type Time

type Time struct {
	// Represents seconds of UTC time since Unix epoch
	// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
	// 9999-12-31T23:59:59Z inclusive.
	Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
	// Non-negative fractions of a second at nanosecond resolution. Negative
	// second values with fractions must still have non-negative nanos values
	// that count forward in time. Must be from 0 to 999,999,999
	// inclusive. This field may be limited in precision depending on context.
	Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
}

Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.

+protobuf.options.marshal=false +protobuf.as=Timestamp +protobuf.options.(gogoproto.goproto_stringer)=false

func (*Time) Descriptor

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

func (*Time) GetNanos

func (m *Time) GetNanos() int32

func (*Time) GetSeconds

func (m *Time) GetSeconds() int64

func (*Time) ProtoMessage

func (*Time) ProtoMessage()

func (*Time) Reset

func (m *Time) Reset()

func (*Time) String

func (m *Time) String() string

type TypeMeta

type TypeMeta struct {
	// +optional
	ApiVersion string `protobuf:"bytes,1,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"`
	// +optional
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
}

TypeMeta is shared by all top level objects. The proper way to use it is to inline it in your type, like this:

type MyAwesomeAPIObject struct {
     runtime.TypeMeta    `json:",inline"`
     ... // other fields
}

func (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *metav1.GroupVersionKind) { metav1.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind

TypeMeta is provided here for convenience. You may use it directly from this package or define your own with the same fields.

+k8s:deepcopy-gen=false +protobuf=true +k8s:openapi-gen=true

func (*TypeMeta) Descriptor

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

func (*TypeMeta) GetApiVersion

func (m *TypeMeta) GetApiVersion() string

func (*TypeMeta) GetKind

func (m *TypeMeta) GetKind() string

func (*TypeMeta) ProtoMessage

func (*TypeMeta) ProtoMessage()

func (*TypeMeta) Reset

func (m *TypeMeta) Reset()

func (*TypeMeta) String

func (m *TypeMeta) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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