Documentation
¶
Index ¶
- Variables
- type Endpoint
- func (*Endpoint) Descriptor() ([]byte, []int)deprecated
- func (x *Endpoint) GetAddresses() []string
- func (x *Endpoint) GetConditions() *EndpointConditions
- func (x *Endpoint) GetHostname() string
- func (x *Endpoint) GetNodeName() string
- func (x *Endpoint) GetTargetRef() *v1.ObjectReference
- func (x *Endpoint) GetTopology() map[string]string
- func (*Endpoint) ProtoMessage()
- func (x *Endpoint) ProtoReflect() protoreflect.Message
- func (x *Endpoint) Reset()
- func (x *Endpoint) String() string
- type EndpointConditions
- func (*EndpointConditions) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointConditions) GetReady() bool
- func (x *EndpointConditions) GetServing() bool
- func (x *EndpointConditions) GetTerminating() bool
- func (*EndpointConditions) ProtoMessage()
- func (x *EndpointConditions) ProtoReflect() protoreflect.Message
- func (x *EndpointConditions) Reset()
- func (x *EndpointConditions) String() string
- type EndpointPort
- func (*EndpointPort) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointPort) GetAppProtocol() string
- func (x *EndpointPort) GetName() string
- func (x *EndpointPort) GetPort() int32
- func (x *EndpointPort) GetProtocol() string
- func (*EndpointPort) ProtoMessage()
- func (x *EndpointPort) ProtoReflect() protoreflect.Message
- func (x *EndpointPort) Reset()
- func (x *EndpointPort) String() string
- type EndpointSlice
- func (*EndpointSlice) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointSlice) GetAddressType() string
- func (x *EndpointSlice) GetEndpoints() []*Endpoint
- func (x *EndpointSlice) GetMetadata() *v11.ObjectMeta
- func (x *EndpointSlice) GetPorts() []*EndpointPort
- func (*EndpointSlice) ProtoMessage()
- func (x *EndpointSlice) ProtoReflect() protoreflect.Message
- func (x *EndpointSlice) Reset()
- func (x *EndpointSlice) String() string
- type EndpointSliceList
- func (*EndpointSliceList) Descriptor() ([]byte, []int)deprecated
- func (x *EndpointSliceList) GetItems() []*EndpointSlice
- func (x *EndpointSliceList) GetMetadata() *v11.ListMeta
- func (*EndpointSliceList) ProtoMessage()
- func (x *EndpointSliceList) ProtoReflect() protoreflect.Message
- func (x *EndpointSliceList) Reset()
- func (x *EndpointSliceList) String() string
Constants ¶
This section is empty.
Variables ¶
var File_k8s_io_api_discovery_v1beta1_generated_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { // addresses of this endpoint. The contents of this field are interpreted // according to the corresponding EndpointSlice addressType field. Consumers // must handle different types of addresses in the context of their own // capabilities. This must contain at least one address but no more than // 100. // +listType=set Addresses []string `protobuf:"bytes,1,rep,name=addresses" json:"addresses,omitempty"` // conditions contains information about the current status of the endpoint. Conditions *EndpointConditions `protobuf:"bytes,2,opt,name=conditions" json:"conditions,omitempty"` // hostname of this endpoint. This field may be used by consumers of // endpoints to distinguish endpoints from each other (e.g. in DNS names). // Multiple endpoints which use the same hostname should be considered // fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS // Label (RFC 1123) validation. // +optional Hostname *string `protobuf:"bytes,3,opt,name=hostname" json:"hostname,omitempty"` // targetRef is a reference to a Kubernetes object that represents this // endpoint. // +optional TargetRef *v1.ObjectReference `protobuf:"bytes,4,opt,name=targetRef" json:"targetRef,omitempty"` // topology contains arbitrary topology information associated with the // endpoint. These key/value pairs must conform with the label format. // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels // Topology may include a maximum of 16 key/value pairs. This includes, but // is not limited to the following well known keys: // * kubernetes.io/hostname: the value indicates the hostname of the node // where the endpoint is located. This should match the corresponding // node label. // * topology.kubernetes.io/zone: the value indicates the zone where the // endpoint is located. This should match the corresponding node label. // * topology.kubernetes.io/region: the value indicates the region where the // endpoint is located. This should match the corresponding node label. // This field is deprecated and will be removed in future api versions. // +optional Topology map[string]string `` /* 136-byte string literal not displayed */ // nodeName represents the name of the Node hosting this endpoint. This can // be used to determine endpoints local to a Node. This field can be enabled // with the EndpointSliceNodeName feature gate. // +optional NodeName *string `protobuf:"bytes,6,opt,name=nodeName" json:"nodeName,omitempty"` // contains filtered or unexported fields }
Endpoint represents a single logical "backend" implementing a service.
func (*Endpoint) Descriptor
deprecated
func (*Endpoint) GetAddresses ¶
func (*Endpoint) GetConditions ¶
func (x *Endpoint) GetConditions() *EndpointConditions
func (*Endpoint) GetHostname ¶
func (*Endpoint) GetNodeName ¶
func (*Endpoint) GetTargetRef ¶
func (x *Endpoint) GetTargetRef() *v1.ObjectReference
func (*Endpoint) GetTopology ¶
func (*Endpoint) ProtoMessage ¶
func (*Endpoint) ProtoMessage()
func (*Endpoint) ProtoReflect ¶
func (x *Endpoint) ProtoReflect() protoreflect.Message
type EndpointConditions ¶
type EndpointConditions struct { // ready indicates that this endpoint is prepared to receive traffic, // according to whatever system is managing the endpoint. A nil value // indicates an unknown state. In most cases consumers should interpret this // unknown state as ready. For compatibility reasons, ready should never be // "true" for terminating endpoints. // +optional Ready *bool `protobuf:"varint,1,opt,name=ready" json:"ready,omitempty"` // serving is identical to ready except that it is set regardless of the // terminating state of endpoints. This condition should be set to true for // a ready endpoint that is terminating. If nil, consumers should defer to // the ready condition. This field can be enabled with the // EndpointSliceTerminatingCondition feature gate. // +optional Serving *bool `protobuf:"varint,2,opt,name=serving" json:"serving,omitempty"` // terminating indicates that this endpoint is terminating. A nil value // indicates an unknown state. Consumers should interpret this unknown state // to mean that the endpoint is not terminating. This field can be enabled // with the EndpointSliceTerminatingCondition feature gate. // +optional Terminating *bool `protobuf:"varint,3,opt,name=terminating" json:"terminating,omitempty"` // contains filtered or unexported fields }
EndpointConditions represents the current condition of an endpoint.
func (*EndpointConditions) Descriptor
deprecated
func (*EndpointConditions) Descriptor() ([]byte, []int)
Deprecated: Use EndpointConditions.ProtoReflect.Descriptor instead.
func (*EndpointConditions) GetReady ¶
func (x *EndpointConditions) GetReady() bool
func (*EndpointConditions) GetServing ¶
func (x *EndpointConditions) GetServing() bool
func (*EndpointConditions) GetTerminating ¶
func (x *EndpointConditions) GetTerminating() bool
func (*EndpointConditions) ProtoMessage ¶
func (*EndpointConditions) ProtoMessage()
func (*EndpointConditions) ProtoReflect ¶
func (x *EndpointConditions) ProtoReflect() protoreflect.Message
func (*EndpointConditions) Reset ¶
func (x *EndpointConditions) Reset()
func (*EndpointConditions) String ¶
func (x *EndpointConditions) String() string
type EndpointPort ¶
type EndpointPort struct { // The name of this port. All ports in an EndpointSlice must have a unique // name. If the EndpointSlice is dervied from a Kubernetes service, this // corresponds to the Service.ports[].name. // Name must either be an empty string or pass DNS_LABEL validation: // * must be no more than 63 characters long. // * must consist of lower case alphanumeric characters or '-'. // * must start and end with an alphanumeric character. // Default is empty string. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // The IP protocol for this port. // Must be UDP, TCP, or SCTP. // Default is TCP. Protocol *string `protobuf:"bytes,2,opt,name=protocol" json:"protocol,omitempty"` // The port number of the endpoint. // If this is not specified, ports are not restricted and must be // interpreted in the context of the specific consumer. Port *int32 `protobuf:"varint,3,opt,name=port" json:"port,omitempty"` // The application protocol for this port. // This field follows standard Kubernetes label syntax. // Un-prefixed names are reserved for IANA standard service names (as per // RFC-6335 and http://www.iana.org/assignments/service-names). // Non-standard protocols should use prefixed names such as // mycompany.com/my-custom-protocol. // +optional AppProtocol *string `protobuf:"bytes,4,opt,name=appProtocol" json:"appProtocol,omitempty"` // contains filtered or unexported fields }
EndpointPort represents a Port used by an EndpointSlice
func (*EndpointPort) Descriptor
deprecated
func (*EndpointPort) Descriptor() ([]byte, []int)
Deprecated: Use EndpointPort.ProtoReflect.Descriptor instead.
func (*EndpointPort) GetAppProtocol ¶
func (x *EndpointPort) GetAppProtocol() string
func (*EndpointPort) GetName ¶
func (x *EndpointPort) GetName() string
func (*EndpointPort) GetPort ¶
func (x *EndpointPort) GetPort() int32
func (*EndpointPort) GetProtocol ¶
func (x *EndpointPort) GetProtocol() string
func (*EndpointPort) ProtoMessage ¶
func (*EndpointPort) ProtoMessage()
func (*EndpointPort) ProtoReflect ¶
func (x *EndpointPort) ProtoReflect() protoreflect.Message
func (*EndpointPort) Reset ¶
func (x *EndpointPort) Reset()
func (*EndpointPort) String ¶
func (x *EndpointPort) String() string
type EndpointSlice ¶
type EndpointSlice struct { // Standard object's metadata. // +optional Metadata *v11.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // addressType specifies the type of address carried by this EndpointSlice. // All addresses in this slice must be the same type. This field is // immutable after creation. The following address types are currently // supported: // * IPv4: Represents an IPv4 Address. // * IPv6: Represents an IPv6 Address. // * FQDN: Represents a Fully Qualified Domain Name. AddressType *string `protobuf:"bytes,4,opt,name=addressType" json:"addressType,omitempty"` // endpoints is a list of unique endpoints in this slice. Each slice may // include a maximum of 1000 endpoints. // +listType=atomic Endpoints []*Endpoint `protobuf:"bytes,2,rep,name=endpoints" json:"endpoints,omitempty"` // ports specifies the list of network ports exposed by each endpoint in // this slice. Each port must have a unique name. When ports is empty, it // indicates that there are no defined ports. When a port is defined with a // nil port value, it indicates "all ports". Each slice may include a // maximum of 100 ports. // +optional // +listType=atomic Ports []*EndpointPort `protobuf:"bytes,3,rep,name=ports" json:"ports,omitempty"` // contains filtered or unexported fields }
EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.
func (*EndpointSlice) Descriptor
deprecated
func (*EndpointSlice) Descriptor() ([]byte, []int)
Deprecated: Use EndpointSlice.ProtoReflect.Descriptor instead.
func (*EndpointSlice) GetAddressType ¶
func (x *EndpointSlice) GetAddressType() string
func (*EndpointSlice) GetEndpoints ¶
func (x *EndpointSlice) GetEndpoints() []*Endpoint
func (*EndpointSlice) GetMetadata ¶
func (x *EndpointSlice) GetMetadata() *v11.ObjectMeta
func (*EndpointSlice) GetPorts ¶
func (x *EndpointSlice) GetPorts() []*EndpointPort
func (*EndpointSlice) ProtoMessage ¶
func (*EndpointSlice) ProtoMessage()
func (*EndpointSlice) ProtoReflect ¶
func (x *EndpointSlice) ProtoReflect() protoreflect.Message
func (*EndpointSlice) Reset ¶
func (x *EndpointSlice) Reset()
func (*EndpointSlice) String ¶
func (x *EndpointSlice) String() string
type EndpointSliceList ¶
type EndpointSliceList struct { // Standard list metadata. // +optional Metadata *v11.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"` // List of endpoint slices Items []*EndpointSlice `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"` // contains filtered or unexported fields }
EndpointSliceList represents a list of endpoint slices
func (*EndpointSliceList) Descriptor
deprecated
func (*EndpointSliceList) Descriptor() ([]byte, []int)
Deprecated: Use EndpointSliceList.ProtoReflect.Descriptor instead.
func (*EndpointSliceList) GetItems ¶
func (x *EndpointSliceList) GetItems() []*EndpointSlice
func (*EndpointSliceList) GetMetadata ¶
func (x *EndpointSliceList) GetMetadata() *v11.ListMeta
func (*EndpointSliceList) ProtoMessage ¶
func (*EndpointSliceList) ProtoMessage()
func (*EndpointSliceList) ProtoReflect ¶
func (x *EndpointSliceList) ProtoReflect() protoreflect.Message
func (*EndpointSliceList) Reset ¶
func (x *EndpointSliceList) Reset()
func (*EndpointSliceList) String ¶
func (x *EndpointSliceList) String() string