...

Package v1alpha1

import "github.com/linkerd/linkerd2/controller/gen/apis/link/v1alpha1"
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:   link.GroupName,
        Version: "v1alpha1",
    }

    // 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 Link 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 LinkSpec `json:"spec"`
}

func (*Link) DeepCopy

func (in *Link) DeepCopy() *Link

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

func (*Link) DeepCopyInto

func (in *Link) DeepCopyInto(out *Link)

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

func (*Link) DeepCopyObject

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

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

LinkList is a list of LinkList resources.

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

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

func (*LinkList) DeepCopy

func (in *LinkList) DeepCopy() *LinkList

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

func (*LinkList) DeepCopyInto

func (in *LinkList) DeepCopyInto(out *LinkList)

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

func (*LinkList) DeepCopyObject

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

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

type LinkSpec

LinkSpec specifies a LinkSpec resource.

type LinkSpec struct {
    TargetClusterName             string               `json:"targetClusterName,omitempty"`
    TargetClusterDomain           string               `json:"targetClusterDomain,omitempty"`
    TargetClusterLinkerdNamespace string               `json:"targetClusterLinkerdNamespace,omitempty"`
    ClusterCredentialsSecret      string               `json:"clusterCredentialsSecret,omitempty"`
    GatewayAddress                string               `json:"gatewayAddress,omitempty"`
    GatewayPort                   string               `json:"gatewayPort,omitempty"`
    GatewayIdentity               string               `json:"gatewayIdentity,omitempty"`
    ProbeSpec                     ProbeSpec            `json:"probeSpec,omitempty"`
    Selector                      metav1.LabelSelector `json:"selector,omitempty"`
}

func (*LinkSpec) DeepCopy

func (in *LinkSpec) DeepCopy() *LinkSpec

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

func (*LinkSpec) DeepCopyInto

func (in *LinkSpec) DeepCopyInto(out *LinkSpec)

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

type ProbeSpec

ProbeSpec for gateway health probe

type ProbeSpec struct {
    Path   string `json:"path,omitempty"`
    Port   string `json:"port,omitempty"`
    Period string `json:"period,omitempty"`
}

func (*ProbeSpec) DeepCopy

func (in *ProbeSpec) DeepCopy() *ProbeSpec

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

func (*ProbeSpec) DeepCopyInto

func (in *ProbeSpec) DeepCopyInto(out *ProbeSpec)

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