api: k8s.io/api/discovery/v1beta1 Index | Files

package v1beta1

import "k8s.io/api/discovery/v1beta1"

Index

Package Files

doc.go generated.pb.go register.go types.go types_swagger_doc_generated.go well_known_labels.go zz_generated.deepcopy.go zz_generated.prerelease-lifecycle.go

Constants

const (
    // AddressTypeIP represents an IP Address.
    // This address type has been deprecated and has been replaced by the IPv4
    // and IPv6 adddress types. New resources with this address type will be
    // considered invalid. This will be fully removed in 1.18.
    // +deprecated
    AddressTypeIP = AddressType("IP")
    // AddressTypeIPv4 represents an IPv4 Address.
    AddressTypeIPv4 = AddressType(v1.IPv4Protocol)
    // AddressTypeIPv6 represents an IPv6 Address.
    AddressTypeIPv6 = AddressType(v1.IPv6Protocol)
    // AddressTypeFQDN represents a FQDN.
    AddressTypeFQDN = AddressType("FQDN")
)
const (
    // LabelServiceName is used to indicate the name of a Kubernetes service.
    LabelServiceName = "kubernetes.io/service-name"
    // LabelManagedBy is used to indicate the controller or entity that manages
    // an EndpointSlice. This label aims to enable different EndpointSlice
    // objects to be managed by different controllers or entities within the
    // same cluster. It is highly recommended to configure this label for all
    // EndpointSlices.
    LabelManagedBy = "endpointslice.kubernetes.io/managed-by"
    // LabelSkipMirror can be set to true on an Endpoints resource to indicate
    // that the EndpointSliceMirroring controller should not mirror this
    // resource with EndpointSlices.
    LabelSkipMirror = "endpointslice.kubernetes.io/skip-mirror"
)
const GroupName = "discovery.k8s.io"

GroupName is the group name used in this package

Variables

var (
    ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
var (
    // SchemeBuilder is the scheme builder with scheme init functions to run for this API package
    SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
    // AddToScheme is a common registration function for mapping packaged scoped group & version keys to a scheme
    AddToScheme = SchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

func Kind Uses

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type AddressType Uses

type AddressType string

AddressType represents the type of address referred to by an endpoint.

type Endpoint Uses

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 `json:"addresses" protobuf:"bytes,1,rep,name=addresses"`
    // conditions contains information about the current status of the endpoint.
    Conditions EndpointConditions `json:"conditions,omitempty" protobuf:"bytes,2,opt,name=conditions"`
    // 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 `json:"hostname,omitempty" protobuf:"bytes,3,opt,name=hostname"`
    // targetRef is a reference to a Kubernetes object that represents this
    // endpoint.
    // +optional
    TargetRef *v1.ObjectReference `json:"targetRef,omitempty" protobuf:"bytes,4,opt,name=targetRef"`
    // 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.
    // +optional
    Topology map[string]string `json:"topology,omitempty" protobuf:"bytes,5,opt,name=topology"`
}

Endpoint represents a single logical "backend" implementing a service.

func (*Endpoint) DeepCopy Uses

func (in *Endpoint) DeepCopy() *Endpoint

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

func (*Endpoint) DeepCopyInto Uses

func (in *Endpoint) DeepCopyInto(out *Endpoint)

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

func (*Endpoint) Descriptor Uses

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

func (*Endpoint) Marshal Uses

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

func (*Endpoint) MarshalTo Uses

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

func (*Endpoint) MarshalToSizedBuffer Uses

func (m *Endpoint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Endpoint) ProtoMessage Uses

func (*Endpoint) ProtoMessage()

func (*Endpoint) Reset Uses

func (m *Endpoint) Reset()

func (*Endpoint) Size Uses

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

func (*Endpoint) String Uses

func (this *Endpoint) String() string

func (Endpoint) SwaggerDoc Uses

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

func (*Endpoint) Unmarshal Uses

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

func (*Endpoint) XXX_DiscardUnknown Uses

func (m *Endpoint) XXX_DiscardUnknown()

func (*Endpoint) XXX_Marshal Uses

func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Endpoint) XXX_Merge Uses

func (m *Endpoint) XXX_Merge(src proto.Message)

func (*Endpoint) XXX_Size Uses

func (m *Endpoint) XXX_Size() int

func (*Endpoint) XXX_Unmarshal Uses

func (m *Endpoint) XXX_Unmarshal(b []byte) error

type EndpointConditions Uses

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.
    // +optional
    Ready *bool `json:"ready,omitempty" protobuf:"bytes,1,name=ready"`
}

EndpointConditions represents the current condition of an endpoint.

func (*EndpointConditions) DeepCopy Uses

func (in *EndpointConditions) DeepCopy() *EndpointConditions

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

func (*EndpointConditions) DeepCopyInto Uses

func (in *EndpointConditions) DeepCopyInto(out *EndpointConditions)

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

func (*EndpointConditions) Descriptor Uses

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

func (*EndpointConditions) Marshal Uses

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

func (*EndpointConditions) MarshalTo Uses

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

func (*EndpointConditions) MarshalToSizedBuffer Uses

func (m *EndpointConditions) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EndpointConditions) ProtoMessage Uses

func (*EndpointConditions) ProtoMessage()

func (*EndpointConditions) Reset Uses

func (m *EndpointConditions) Reset()

func (*EndpointConditions) Size Uses

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

func (*EndpointConditions) String Uses

func (this *EndpointConditions) String() string

func (EndpointConditions) SwaggerDoc Uses

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

func (*EndpointConditions) Unmarshal Uses

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

func (*EndpointConditions) XXX_DiscardUnknown Uses

func (m *EndpointConditions) XXX_DiscardUnknown()

func (*EndpointConditions) XXX_Marshal Uses

func (m *EndpointConditions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EndpointConditions) XXX_Merge Uses

func (m *EndpointConditions) XXX_Merge(src proto.Message)

func (*EndpointConditions) XXX_Size Uses

func (m *EndpointConditions) XXX_Size() int

func (*EndpointConditions) XXX_Unmarshal Uses

func (m *EndpointConditions) XXX_Unmarshal(b []byte) error

type EndpointPort Uses

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 `json:"name,omitempty" protobuf:"bytes,1,name=name"`
    // The IP protocol for this port.
    // Must be UDP, TCP, or SCTP.
    // Default is TCP.
    Protocol *v1.Protocol `json:"protocol,omitempty" protobuf:"bytes,2,name=protocol"`
    // 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 `json:"port,omitempty" protobuf:"bytes,3,opt,name=port"`
    // 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 `json:"appProtocol,omitempty" protobuf:"bytes,4,name=appProtocol"`
}

EndpointPort represents a Port used by an EndpointSlice

func (*EndpointPort) DeepCopy Uses

func (in *EndpointPort) DeepCopy() *EndpointPort

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

func (*EndpointPort) DeepCopyInto Uses

func (in *EndpointPort) DeepCopyInto(out *EndpointPort)

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

func (*EndpointPort) Descriptor Uses

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

func (*EndpointPort) Marshal Uses

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

func (*EndpointPort) MarshalTo Uses

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

func (*EndpointPort) MarshalToSizedBuffer Uses

func (m *EndpointPort) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EndpointPort) ProtoMessage Uses

func (*EndpointPort) ProtoMessage()

func (*EndpointPort) Reset Uses

func (m *EndpointPort) Reset()

func (*EndpointPort) Size Uses

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

func (*EndpointPort) String Uses

func (this *EndpointPort) String() string

func (EndpointPort) SwaggerDoc Uses

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

func (*EndpointPort) Unmarshal Uses

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

func (*EndpointPort) XXX_DiscardUnknown Uses

func (m *EndpointPort) XXX_DiscardUnknown()

func (*EndpointPort) XXX_Marshal Uses

func (m *EndpointPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EndpointPort) XXX_Merge Uses

func (m *EndpointPort) XXX_Merge(src proto.Message)

func (*EndpointPort) XXX_Size Uses

func (m *EndpointPort) XXX_Size() int

func (*EndpointPort) XXX_Unmarshal Uses

func (m *EndpointPort) XXX_Unmarshal(b []byte) error

type EndpointSlice Uses

type EndpointSlice struct {
    metav1.TypeMeta `json:",inline"`
    // Standard object's metadata.
    // +optional
    metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    // 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 AddressType `json:"addressType" protobuf:"bytes,4,rep,name=addressType"`
    // endpoints is a list of unique endpoints in this slice. Each slice may
    // include a maximum of 1000 endpoints.
    // +listType=atomic
    Endpoints []Endpoint `json:"endpoints" protobuf:"bytes,2,rep,name=endpoints"`
    // 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 `json:"ports" protobuf:"bytes,3,rep,name=ports"`
}

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) APILifecycleDeprecated Uses

func (in *EndpointSlice) APILifecycleDeprecated() (major, minor int)

APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.

func (*EndpointSlice) APILifecycleIntroduced Uses

func (in *EndpointSlice) APILifecycleIntroduced() (major, minor int)

APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.

func (*EndpointSlice) APILifecycleRemoved Uses

func (in *EndpointSlice) APILifecycleRemoved() (major, minor int)

APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.

func (*EndpointSlice) DeepCopy Uses

func (in *EndpointSlice) DeepCopy() *EndpointSlice

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

func (*EndpointSlice) DeepCopyInto Uses

func (in *EndpointSlice) DeepCopyInto(out *EndpointSlice)

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

func (*EndpointSlice) DeepCopyObject Uses

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

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

func (*EndpointSlice) Descriptor Uses

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

func (*EndpointSlice) Marshal Uses

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

func (*EndpointSlice) MarshalTo Uses

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

func (*EndpointSlice) MarshalToSizedBuffer Uses

func (m *EndpointSlice) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EndpointSlice) ProtoMessage Uses

func (*EndpointSlice) ProtoMessage()

func (*EndpointSlice) Reset Uses

func (m *EndpointSlice) Reset()

func (*EndpointSlice) Size Uses

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

func (*EndpointSlice) String Uses

func (this *EndpointSlice) String() string

func (EndpointSlice) SwaggerDoc Uses

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

func (*EndpointSlice) Unmarshal Uses

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

func (*EndpointSlice) XXX_DiscardUnknown Uses

func (m *EndpointSlice) XXX_DiscardUnknown()

func (*EndpointSlice) XXX_Marshal Uses

func (m *EndpointSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EndpointSlice) XXX_Merge Uses

func (m *EndpointSlice) XXX_Merge(src proto.Message)

func (*EndpointSlice) XXX_Size Uses

func (m *EndpointSlice) XXX_Size() int

func (*EndpointSlice) XXX_Unmarshal Uses

func (m *EndpointSlice) XXX_Unmarshal(b []byte) error

type EndpointSliceList Uses

type EndpointSliceList struct {
    metav1.TypeMeta `json:",inline"`
    // Standard list metadata.
    // +optional
    metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
    // List of endpoint slices
    Items []EndpointSlice `json:"items" protobuf:"bytes,2,rep,name=items"`
}

EndpointSliceList represents a list of endpoint slices

func (*EndpointSliceList) APILifecycleDeprecated Uses

func (in *EndpointSliceList) APILifecycleDeprecated() (major, minor int)

APILifecycleDeprecated is an autogenerated function, returning the release in which the API struct was or will be deprecated as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:deprecated" tags in types.go or "k8s:prerelease-lifecycle-gen:introduced" plus three minor.

func (*EndpointSliceList) APILifecycleIntroduced Uses

func (in *EndpointSliceList) APILifecycleIntroduced() (major, minor int)

APILifecycleIntroduced is an autogenerated function, returning the release in which the API struct was introduced as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.

func (*EndpointSliceList) APILifecycleRemoved Uses

func (in *EndpointSliceList) APILifecycleRemoved() (major, minor int)

APILifecycleRemoved is an autogenerated function, returning the release in which the API is no longer served as int versions of major and minor for comparison. It is controlled by "k8s:prerelease-lifecycle-gen:removed" tags in types.go or "k8s:prerelease-lifecycle-gen:deprecated" plus three minor.

func (*EndpointSliceList) DeepCopy Uses

func (in *EndpointSliceList) DeepCopy() *EndpointSliceList

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

func (*EndpointSliceList) DeepCopyInto Uses

func (in *EndpointSliceList) DeepCopyInto(out *EndpointSliceList)

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

func (*EndpointSliceList) DeepCopyObject Uses

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

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

func (*EndpointSliceList) Descriptor Uses

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

func (*EndpointSliceList) Marshal Uses

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

func (*EndpointSliceList) MarshalTo Uses

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

func (*EndpointSliceList) MarshalToSizedBuffer Uses

func (m *EndpointSliceList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EndpointSliceList) ProtoMessage Uses

func (*EndpointSliceList) ProtoMessage()

func (*EndpointSliceList) Reset Uses

func (m *EndpointSliceList) Reset()

func (*EndpointSliceList) Size Uses

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

func (*EndpointSliceList) String Uses

func (this *EndpointSliceList) String() string

func (EndpointSliceList) SwaggerDoc Uses

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

func (*EndpointSliceList) Unmarshal Uses

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

func (*EndpointSliceList) XXX_DiscardUnknown Uses

func (m *EndpointSliceList) XXX_DiscardUnknown()

func (*EndpointSliceList) XXX_Marshal Uses

func (m *EndpointSliceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EndpointSliceList) XXX_Merge Uses

func (m *EndpointSliceList) XXX_Merge(src proto.Message)

func (*EndpointSliceList) XXX_Size Uses

func (m *EndpointSliceList) XXX_Size() int

func (*EndpointSliceList) XXX_Unmarshal Uses

func (m *EndpointSliceList) XXX_Unmarshal(b []byte) error

Package v1beta1 imports 12 packages (graph) and is imported by 130 packages. Updated 2020-09-04. Refresh now. Tools for package owners.