...

Package v1beta1

import "github.com/linkerd/linkerd2/controller/gen/apis/server/v1beta1"
Overview
Index

Overview ▾

Variables

var (
    // SchemeGroupVersion is the identifier for the API which includes the name
    // of the group and the version of the API.
    SchemeGroupVersion = schema.GroupVersion{
        Group:   server.GroupName,
        Version: "v1beta1",
    }

    // SchemeBuilder collects functions that add things to a scheme. It's to
    // allow code to compile without explicitly referencing generated types.
    // You should declare one in each package that will have generated deep
    // copy or conversion functions.
    SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

    // AddToScheme applies all the stored functions to the scheme. A non-nil error
    // indicates that one function failed and the attempt was abandoned.
    AddToScheme = SchemeBuilder.AddToScheme
)

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

type Server

type Server struct {
    // TypeMeta is the metadata for the resource, like kind and apiversion
    metav1.TypeMeta `json:",inline"`

    // ObjectMeta contains the metadata for the particular object, including
    // things like...
    //  - name
    //  - namespace
    //  - self link
    //  - labels
    //  - ... etc ...
    metav1.ObjectMeta `json:"metadata,omitempty"`

    // Spec is the custom resource spec
    Spec ServerSpec `json:"spec"`
}

func (*Server) DeepCopy

func (in *Server) DeepCopy() *Server

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

func (*Server) DeepCopyInto

func (in *Server) DeepCopyInto(out *Server)

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

func (*Server) DeepCopyObject

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

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

type ServerList

ServerList is a list of Server resources.

type ServerList struct {
    metav1.TypeMeta `json:",inline"`
    metav1.ListMeta `json:"metadata"`

    Items []Server `json:"items"`
}

func (*ServerList) DeepCopy

func (in *ServerList) DeepCopy() *ServerList

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

func (*ServerList) DeepCopyInto

func (in *ServerList) DeepCopyInto(out *ServerList)

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

func (*ServerList) DeepCopyObject

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

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

type ServerSpec

ServerSpec specifies a Server resource.

type ServerSpec struct {
    PodSelector   *metav1.LabelSelector `json:"podSelector"`
    Port          intstr.IntOrString    `json:"port,omitempty"`
    ProxyProtocol string                `json:"proxyProtocol,omitempty"`
}

func (*ServerSpec) DeepCopy

func (in *ServerSpec) DeepCopy() *ServerSpec

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

func (*ServerSpec) DeepCopyInto

func (in *ServerSpec) DeepCopyInto(out *ServerSpec)

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