v1alpha1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

+groupName=role.grafana.kubeform.com

Index

Constants

This section is empty.

Variables

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

func Kind(kind string) schema.GroupKind

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

func (in *Role) DeepCopy() *Role

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

func (*Role) DeepCopyInto

func (in *Role) DeepCopyInto(out *Role)

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

func (*Role) DeepCopyObject

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

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

func (*Role) SetupWebhookWithManager

func (r *Role) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Role) ValidateCreate

func (r *Role) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Role) ValidateDelete

func (r *Role) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Role) ValidateUpdate

func (r *Role) ValidateUpdate(old runtime.Object) error

ValidateUpdate 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

func (in *RoleList) DeepCopy() *RoleList

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

func (*RoleList) DeepCopyInto

func (in *RoleList) DeepCopyInto(out *RoleList)

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

func (*RoleList) DeepCopyObject

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

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

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:"-"`
}

func (*RoleSpec) DeepCopy

func (in *RoleSpec) DeepCopy() *RoleSpec

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

func (*RoleSpec) DeepCopyInto

func (in *RoleSpec) DeepCopyInto(out *RoleSpec)

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

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.

Jump to

Keyboard shortcuts

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