v1alpha1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

+groupName=authorization.k8s.appscode.com

Package v1alpha1 contains API Schema definitions for the authorization v1alpha1 API group +kubebuilder:object:generate=true +groupName=authorization.k8s.appscode.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "authorization.k8s.appscode.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ClusterRoleRef

type ClusterRoleRef struct {
	// APIGroup is the group for the resource being referenced
	APIGroup string `json:"apiGroup"`
	// Kind is the type of resource being referenced
	Kind string `json:"kind"`
	// Name is the name of resource being referenced
	Name string `json:"name"`
	// Namespaces are the name of the namespaces for Roles
	// +optional
	Namespaces []string `json:"namespaces"`
}

ClusterRoleRef contains information that points to the role being used +structType=atomic

func (*ClusterRoleRef) DeepCopy

func (in *ClusterRoleRef) DeepCopy() *ClusterRoleRef

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

func (*ClusterRoleRef) DeepCopyInto

func (in *ClusterRoleRef) DeepCopyInto(out *ClusterRoleRef)

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

type ClusterSetRef

type ClusterSetRef struct {
	// Name is the name of resource being referenced
	Name string `json:"name"`
}

ClusterSetRef contains information that points to the ManagedClusterSet being used +structType=atomic

func (*ClusterSetRef) DeepCopy

func (in *ClusterSetRef) DeepCopy() *ClusterSetRef

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

func (*ClusterSetRef) DeepCopyInto

func (in *ClusterSetRef) DeepCopyInto(out *ClusterSetRef)

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

type ClusterSetRoleRef

type ClusterSetRoleRef struct {
	// APIGroup is the group for the resource being referenced
	APIGroup string `json:"apiGroup"`
	// Kind is the type of resource being referenced
	Kind string `json:"kind"`
	// Name is the name of resource being referenced
	Name string `json:"name"`
	// Namespaces are the name of the namespaces for Roles
	Namespaces []string `json:"namespaces"`
}

ClusterSetRoleRef contains information that points to the role being used +structType=atomic

func (*ClusterSetRoleRef) DeepCopy

func (in *ClusterSetRoleRef) DeepCopy() *ClusterSetRoleRef

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

func (*ClusterSetRoleRef) DeepCopyInto

func (in *ClusterSetRoleRef) DeepCopyInto(out *ClusterSetRoleRef)

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

type ManagedClusterRole

type ManagedClusterRole struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Rules holds all the PolicyRules for this ClusterRole
	// +optional
	Rules []rbac.PolicyRule `json:"rules"`
}

ManagedClusterRole is the Schema for the managedclusterroles API

func (*ManagedClusterRole) DeepCopy

func (in *ManagedClusterRole) DeepCopy() *ManagedClusterRole

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

func (*ManagedClusterRole) DeepCopyInto

func (in *ManagedClusterRole) DeepCopyInto(out *ManagedClusterRole)

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

func (*ManagedClusterRole) DeepCopyObject

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

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

type ManagedClusterRoleBinding

type ManagedClusterRoleBinding struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Subjects holds references to the objects the role applies to.
	// +optional
	Subjects []Subject `json:"subjects,omitempty"`

	// RoleRef can only reference a ClusterRole in the global namespace.
	// If the RoleRef cannot be resolved, the Authorizer must return an error.
	// This field is immutable.
	RoleRef ClusterRoleRef `json:"roleRef"`
}

ManagedClusterRoleBinding is the Schema for the managedclusterrolebindings API

func (*ManagedClusterRoleBinding) DeepCopy

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

func (*ManagedClusterRoleBinding) DeepCopyInto

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

func (*ManagedClusterRoleBinding) DeepCopyObject

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

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

type ManagedClusterRoleBindingList

type ManagedClusterRoleBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ManagedClusterRoleBinding `json:"items"`
}

ManagedClusterRoleBindingList contains a list of ManagedClusterRoleBinding

func (*ManagedClusterRoleBindingList) DeepCopy

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

func (*ManagedClusterRoleBindingList) DeepCopyInto

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

func (*ManagedClusterRoleBindingList) DeepCopyObject

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

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

type ManagedClusterRoleList

type ManagedClusterRoleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ManagedClusterRole `json:"items"`
}

ManagedClusterRoleList contains a list of ManagedClusterRole

func (*ManagedClusterRoleList) DeepCopy

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

func (*ManagedClusterRoleList) DeepCopyInto

func (in *ManagedClusterRoleList) DeepCopyInto(out *ManagedClusterRoleList)

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

func (*ManagedClusterRoleList) DeepCopyObject

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

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

type ManagedClusterSetRoleBinding

type ManagedClusterSetRoleBinding struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Subjects holds references to the objects the role applies to.
	// +optional
	Subjects []Subject `json:"subjects,omitempty"`

	// RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace.
	// If the RoleRef cannot be resolved, the Authorizer must return an error.
	// This field is immutable.
	RoleRef ClusterSetRoleRef `json:"roleRef"`

	// This field is immutable.
	ClusterSetRef ClusterSetRef `json:"clusterSetRef"`
}

ManagedClusterSetRoleBinding is the Schema for the managedclustersetrolebindings API

func (*ManagedClusterSetRoleBinding) DeepCopy

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

func (*ManagedClusterSetRoleBinding) DeepCopyInto

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

func (*ManagedClusterSetRoleBinding) DeepCopyObject

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

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

type ManagedClusterSetRoleBindingList

type ManagedClusterSetRoleBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ManagedClusterSetRoleBinding `json:"items"`
}

ManagedClusterSetRoleBindingList contains a list of ManagedClusterSetRoleBinding

func (*ManagedClusterSetRoleBindingList) DeepCopy

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

func (*ManagedClusterSetRoleBindingList) DeepCopyInto

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

func (*ManagedClusterSetRoleBindingList) DeepCopyObject

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

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

type Subject

type Subject struct {
	// Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
	// If the Authorizer does not recognized the kind value, the Authorizer should report an error.
	Kind string `json:"kind"`
	// APIGroup holds the API group of the referenced subject.
	// Defaults to "" for ServiceAccount subjects.
	// Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
	// +optional
	APIGroup string `json:"apiGroup,omitempty"`
	// Name of the object being referenced.
	Name string `json:"name"`
}

Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. +structType=atomic

func (*Subject) DeepCopy

func (in *Subject) DeepCopy() *Subject

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

func (*Subject) DeepCopyInto

func (in *Subject) DeepCopyInto(out *Subject)

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