Documentation
¶
Index ¶
Constants ¶
This section is empty.
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 )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Cidr ¶
Cidr describes which client CIDRs a ServerAuthorization authorizes.
func (*Cidr) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cidr.
func (*Cidr) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Client.
func (*Client) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MeshTLS.
func (*MeshTLS) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Server.
func (*Server) DeepCopyInto ¶
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 ¶
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 ¶
type ServerAuthorizationSpec struct {
Server Server `json:"server,omitempty"`
Client Client `json:"client,omitempty"`
}
ServerAuthorizationSpec specifies a ServerAuthorization resource.
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.