...

Package v1beta1

import "github.com/linkerd/linkerd2/controller/gen/apis/serverauthorization/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:   serverauthorization.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 Cidr

Cidr describes which client CIDRs a ServerAuthorization authorizes.

type Cidr struct {
    Cidr   string   `json:"cidr,omitempty"`
    Except []string `json:"except,omitempty"`
}

func (*Cidr) DeepCopy

func (in *Cidr) DeepCopy() *Cidr

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

func (*Cidr) DeepCopyInto

func (in *Cidr) DeepCopyInto(out *Cidr)

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

type Client

Client describes which clients a ServerAuthorization authorizes.

type Client struct {
    Networks        []*Cidr  `json:"networks,omitempty"`
    MeshTLS         *MeshTLS `json:"meshTLS,omitempty"`
    Unauthenticated bool     `json:"unauthenticated,omitempty"`
}

func (*Client) DeepCopy

func (in *Client) DeepCopy() *Client

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

func (*Client) DeepCopyInto

func (in *Client) DeepCopyInto(out *Client)

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

type MeshTLS

MeshTLS describes which meshed clients are authorized.

type MeshTLS struct {
    UnauthenticatedTLS bool                  `json:"unauthenticatedTLS,omitempty"`
    Identities         []string              `json:"identities,omitempty"`
    ServiceAccounts    []*ServiceAccountName `json:"serviceAccounts,omitempty"`
}

func (*MeshTLS) DeepCopy

func (in *MeshTLS) DeepCopy() *MeshTLS

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

func (*MeshTLS) DeepCopyInto

func (in *MeshTLS) DeepCopyInto(out *MeshTLS)

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

type Server

Server is the Server that a ServerAuthorization uses.

type Server struct {
    Name     string                `json:"name,omitempty"`
    Selector *metav1.LabelSelector `json:"selector,omitempty"`
}

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.

type ServerAuthorization

type ServerAuthorization 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 ServerAuthorizationSpec `json:"spec"`
}

func (*ServerAuthorization) DeepCopy

func (in *ServerAuthorization) DeepCopy() *ServerAuthorization

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

func (*ServerAuthorization) DeepCopyInto

func (in *ServerAuthorization) DeepCopyInto(out *ServerAuthorization)

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

func (*ServerAuthorization) DeepCopyObject

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

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

type ServerAuthorizationList

ServerAuthorizationList is a list of Server resources.

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

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

func (*ServerAuthorizationList) DeepCopy

func (in *ServerAuthorizationList) DeepCopy() *ServerAuthorizationList

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

func (*ServerAuthorizationList) DeepCopyInto

func (in *ServerAuthorizationList) DeepCopyInto(out *ServerAuthorizationList)

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

func (*ServerAuthorizationList) DeepCopyObject

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

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

type ServerAuthorizationSpec

ServerAuthorizationSpec specifies a ServerAuthorization resource.

type ServerAuthorizationSpec struct {
    Server Server `json:"server,omitempty"`
    Client Client `json:"client,omitempty"`
}

func (*ServerAuthorizationSpec) DeepCopy

func (in *ServerAuthorizationSpec) DeepCopy() *ServerAuthorizationSpec

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

func (*ServerAuthorizationSpec) DeepCopyInto

func (in *ServerAuthorizationSpec) DeepCopyInto(out *ServerAuthorizationSpec)

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

type ServiceAccountName

type ServiceAccountName struct {
    Name      string `json:"name,omitempty"`
    Namespace string `json:"namespace,omitempty"`
}

func (*ServiceAccountName) DeepCopy

func (in *ServiceAccountName) DeepCopy() *ServiceAccountName

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

func (*ServiceAccountName) DeepCopyInto

func (in *ServiceAccountName) DeepCopyInto(out *ServiceAccountName)

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