Documentation ¶
Overview ¶
+groupName=role.grafana.kubeform.com
Index ¶
- Variables
- func GetDecoder() map[string]jsoniter.ValDecoder
- func GetEncoder() map[string]jsoniter.ValEncoder
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Role
- func (in *Role) DeepCopy() *Role
- func (in *Role) DeepCopyInto(out *Role)
- func (in *Role) DeepCopyObject() runtime.Object
- func (r *Role) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Role) ValidateCreate() error
- func (r *Role) ValidateDelete() error
- func (r *Role) ValidateUpdate(old runtime.Object) error
- type RoleList
- type RoleSpec
- type RoleSpecPermissions
- type RoleSpecResource
- type RoleStatus
Constants ¶
This section is empty.
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: role.GroupName, Version: "v1alpha1"}
Functions ¶
func GetDecoder ¶
func GetDecoder() map[string]jsoniter.ValDecoder
func GetEncoder ¶
func GetEncoder() map[string]jsoniter.ValEncoder
func Kind ¶
Kind takes an unqualified kind and returns 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 Role ¶
type Role struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RoleSpec `json:"spec,omitempty"` Status RoleStatus `json:"status,omitempty"` }
func (*Role) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Role.
func (*Role) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Role) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Role) SetupWebhookWithManager ¶
func (*Role) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Role) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type RoleList ¶
type RoleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Role CRD objects Items []Role `json:"items,omitempty"` }
RoleList is a list of Roles
func (*RoleList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleList.
func (*RoleList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoleSpec ¶
type RoleSpec struct { State *RoleSpecResource `json:"state,omitempty" tf:"-"` Resource RoleSpecResource `json:"resource" tf:"resource"` UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"` TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"` ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"` BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"` }
func (*RoleSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleSpec.
type RoleSpecPermissions ¶
type RoleSpecPermissions struct { // Specific action users granted with the role will be allowed to perform (for example: `users:read`) Action *string `json:"action" tf:"action"` // Scope to restrict the action to a set of resources (for example: `users:*` or `roles:customrole1`) // +optional Scope *string `json:"scope,omitempty" tf:"scope"` }
func (*RoleSpecPermissions) DeepCopy ¶
func (in *RoleSpecPermissions) DeepCopy() *RoleSpecPermissions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleSpecPermissions.
func (*RoleSpecPermissions) DeepCopyInto ¶
func (in *RoleSpecPermissions) DeepCopyInto(out *RoleSpecPermissions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoleSpecResource ¶
type RoleSpecResource struct { ID string `json:"id,omitempty" tf:"id,omitempty"` // Description of the role. // +optional Description *string `json:"description,omitempty" tf:"description"` // Boolean to state whether the role is available across all organizations or not. // +optional Global *bool `json:"global,omitempty" tf:"global"` // Name of the role Name *string `json:"name" tf:"name"` // Specific set of actions granted by the role. // +optional Permissions []RoleSpecPermissions `json:"permissions,omitempty" tf:"permissions"` // Unique identifier of the role. Used for assignments. // +optional Uid *string `json:"uid,omitempty" tf:"uid"` // Version of the role. A role is updated only on version increase. Version *int64 `json:"version" tf:"version"` }
func (*RoleSpecResource) DeepCopy ¶
func (in *RoleSpecResource) DeepCopy() *RoleSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleSpecResource.
func (*RoleSpecResource) DeepCopyInto ¶
func (in *RoleSpecResource) DeepCopyInto(out *RoleSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RoleStatus ¶
type RoleStatus struct { // Resource generation, which is updated on mutation by the API Server. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // +optional Phase status.Status `json:"phase,omitempty"` // +optional Conditions []kmapi.Condition `json:"conditions,omitempty"` }
func (*RoleStatus) DeepCopy ¶
func (in *RoleStatus) DeepCopy() *RoleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleStatus.
func (*RoleStatus) DeepCopyInto ¶
func (in *RoleStatus) DeepCopyInto(out *RoleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.