v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+groupName=entity.vsphere.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: entity.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 Permissions

type Permissions struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PermissionsSpec   `json:"spec,omitempty"`
	Status            PermissionsStatus `json:"status,omitempty"`
}

func (*Permissions) DeepCopy

func (in *Permissions) DeepCopy() *Permissions

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

func (*Permissions) DeepCopyInto

func (in *Permissions) DeepCopyInto(out *Permissions)

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

func (*Permissions) DeepCopyObject

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

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

func (*Permissions) SetupWebhookWithManager

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

func (*Permissions) ValidateCreate

func (r *Permissions) ValidateCreate() error

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

func (*Permissions) ValidateDelete

func (r *Permissions) ValidateDelete() error

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

func (*Permissions) ValidateUpdate

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

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

type PermissionsList

type PermissionsList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Permissions CRD objects
	Items []Permissions `json:"items,omitempty"`
}

PermissionsList is a list of Permissionss

func (*PermissionsList) DeepCopy

func (in *PermissionsList) DeepCopy() *PermissionsList

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

func (*PermissionsList) DeepCopyInto

func (in *PermissionsList) DeepCopyInto(out *PermissionsList)

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

func (*PermissionsList) DeepCopyObject

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

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

type PermissionsSpec

type PermissionsSpec struct {
	State *PermissionsSpecResource `json:"state,omitempty" tf:"-"`

	Resource PermissionsSpecResource `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 (*PermissionsSpec) DeepCopy

func (in *PermissionsSpec) DeepCopy() *PermissionsSpec

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

func (*PermissionsSpec) DeepCopyInto

func (in *PermissionsSpec) DeepCopyInto(out *PermissionsSpec)

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

type PermissionsSpecPermissions

type PermissionsSpecPermissions struct {
	// Whether user_or_group field refers to a user or a group. True for a group and false for a user.
	IsGroup *bool `json:"isGroup" tf:"is_group"`
	// Whether or not this permission propagates down the hierarchy to sub-entities.
	Propagate *bool `json:"propagate" tf:"propagate"`
	// Reference to the role providing the access.
	RoleID *string `json:"roleID" tf:"role_id"`
	// User or group receiving access.
	UserOrGroup *string `json:"userOrGroup" tf:"user_or_group"`
}

func (*PermissionsSpecPermissions) DeepCopy

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

func (*PermissionsSpecPermissions) DeepCopyInto

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

type PermissionsSpecResource

type PermissionsSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// The managed object id or uuid of the entity.
	EntityID *string `json:"entityID" tf:"entity_id"`
	// The entity managed object type.
	EntityType *string `json:"entityType" tf:"entity_type"`
	// Permissions to be given to the entity.
	// +kubebuilder:validation:MinItems=1
	Permissions []PermissionsSpecPermissions `json:"permissions" tf:"permissions"`
}

func (*PermissionsSpecResource) DeepCopy

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

func (*PermissionsSpecResource) DeepCopyInto

func (in *PermissionsSpecResource) DeepCopyInto(out *PermissionsSpecResource)

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

type PermissionsStatus

type PermissionsStatus 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 (*PermissionsStatus) DeepCopy

func (in *PermissionsStatus) DeepCopy() *PermissionsStatus

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

func (*PermissionsStatus) DeepCopyInto

func (in *PermissionsStatus) DeepCopyInto(out *PermissionsStatus)

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