v1beta1

package
v0.5.1-0...-8987e2d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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
)

Functions

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

Types

type Cidr

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

Cidr describes which client CIDRs a ServerAuthorization authorizes.

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

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

Client describes which clients a ServerAuthorization authorizes.

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

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

MeshTLS describes which meshed clients are authorized.

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

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

Server is the Server that a ServerAuthorization uses.

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

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

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

ServerAuthorizationList is a list of Server resources.

func (*ServerAuthorizationList) DeepCopy

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

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

ServerAuthorizationSpec specifies a ServerAuthorization resource.

func (*ServerAuthorizationSpec) DeepCopy

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL