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(kind string) schema.GroupKind
Kind takes an unqualified kind and returns back a Group qualified GroupKind
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Cidr describes which client CIDRs a ServerAuthorization authorizes.
type Cidr struct { Cidr string `json:"cidr,omitempty"` Except []string `json:"except,omitempty"` }
func (in *Cidr) DeepCopy() *Cidr
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cidr.
func (in *Cidr) DeepCopyInto(out *Cidr)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 (in *Client) DeepCopy() *Client
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Client.
func (in *Client) DeepCopyInto(out *Client)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 (in *MeshTLS) DeepCopy() *MeshTLS
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MeshTLS.
func (in *MeshTLS) DeepCopyInto(out *MeshTLS)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Server is the Server that a ServerAuthorization uses.
type Server struct { Name string `json:"name,omitempty"` Selector *metav1.LabelSelector `json:"selector,omitempty"` }
func (in *Server) DeepCopy() *Server
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Server.
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 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 (in *ServerAuthorization) DeepCopy() *ServerAuthorization
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerAuthorization.
func (in *ServerAuthorization) DeepCopyInto(out *ServerAuthorization)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ServerAuthorization) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
ServerAuthorizationList is a list of Server resources.
type ServerAuthorizationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ServerAuthorization `json:"items"` }
func (in *ServerAuthorizationList) DeepCopy() *ServerAuthorizationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerAuthorizationList.
func (in *ServerAuthorizationList) DeepCopyInto(out *ServerAuthorizationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ServerAuthorizationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
ServerAuthorizationSpec specifies a ServerAuthorization resource.
type ServerAuthorizationSpec struct { Server Server `json:"server,omitempty"` Client Client `json:"client,omitempty"` }
func (in *ServerAuthorizationSpec) DeepCopy() *ServerAuthorizationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerAuthorizationSpec.
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 struct { Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` }
func (in *ServiceAccountName) DeepCopy() *ServiceAccountName
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountName.
func (in *ServiceAccountName) DeepCopyInto(out *ServiceAccountName)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.