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: 16 Imported by: 2

Documentation

Overview

+groupName=user.linode.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: user.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 User

type User struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              UserSpec   `json:"spec,omitempty"`
	Status            UserStatus `json:"status,omitempty"`
}

func (*User) DeepCopy

func (in *User) DeepCopy() *User

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

func (*User) DeepCopyInto

func (in *User) DeepCopyInto(out *User)

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

func (*User) DeepCopyObject

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

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

func (*User) SetupWebhookWithManager

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

func (*User) ValidateCreate

func (r *User) ValidateCreate() error

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

func (*User) ValidateDelete

func (r *User) ValidateDelete() error

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

func (*User) ValidateUpdate

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

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

type UserList

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

UserList is a list of Users

func (*UserList) DeepCopy

func (in *UserList) DeepCopy() *UserList

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

func (*UserList) DeepCopyInto

func (in *UserList) DeepCopyInto(out *UserList)

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

func (*UserList) DeepCopyObject

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

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

type UserSpec

type UserSpec struct {
	State *UserSpecResource `json:"state,omitempty" tf:"-"`

	Resource UserSpecResource `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 (*UserSpec) DeepCopy

func (in *UserSpec) DeepCopy() *UserSpec

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

func (*UserSpec) DeepCopyInto

func (in *UserSpec) DeepCopyInto(out *UserSpec)

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

type UserSpecDomainGrant

type UserSpecDomainGrant struct {
	// The ID of the entity this grant applies to.
	ID *int64 `json:"ID" tf:"id"`
	// The level of access this User has to this entity. If null, this User has no access.
	Permissions *string `json:"permissions" tf:"permissions"`
}

func (*UserSpecDomainGrant) DeepCopy

func (in *UserSpecDomainGrant) DeepCopy() *UserSpecDomainGrant

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

func (*UserSpecDomainGrant) DeepCopyInto

func (in *UserSpecDomainGrant) DeepCopyInto(out *UserSpecDomainGrant)

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

type UserSpecFirewallGrant added in v0.5.0

type UserSpecFirewallGrant struct {
	// The ID of the entity this grant applies to.
	ID *int64 `json:"ID" tf:"id"`
	// The level of access this User has to this entity. If null, this User has no access.
	Permissions *string `json:"permissions" tf:"permissions"`
}

func (*UserSpecFirewallGrant) DeepCopy added in v0.5.0

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

func (*UserSpecFirewallGrant) DeepCopyInto added in v0.5.0

func (in *UserSpecFirewallGrant) DeepCopyInto(out *UserSpecFirewallGrant)

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

type UserSpecGlobalGrants

type UserSpecGlobalGrants struct {
	// The level of access this User has to Account-level actions, like billing information. A restricted User will never be able to manage users.
	// +optional
	AccountAccess *string `json:"accountAccess,omitempty" tf:"account_access"`
	// If true, this User may add Domains.
	// +optional
	AddDomains *bool `json:"addDomains,omitempty" tf:"add_domains"`
	// If true, this User may add Firewalls.
	// +optional
	AddFirewalls *bool `json:"addFirewalls,omitempty" tf:"add_firewalls"`
	// If true, this User may add Images.
	// +optional
	AddImages *bool `json:"addImages,omitempty" tf:"add_images"`
	// If true, this User may create Linodes.
	// +optional
	AddLinodes *bool `json:"addLinodes,omitempty" tf:"add_linodes"`
	// If true, this User may create Longview clients and view the current plan.
	// +optional
	AddLongview *bool `json:"addLongview,omitempty" tf:"add_longview"`
	// If true, this User may add NodeBalancers.
	// +optional
	AddNodebalancers *bool `json:"addNodebalancers,omitempty" tf:"add_nodebalancers"`
	// If true, this User may add StackScripts.
	// +optional
	AddStackscripts *bool `json:"addStackscripts,omitempty" tf:"add_stackscripts"`
	// If true, this User may add Volumes.
	// +optional
	AddVolumes *bool `json:"addVolumes,omitempty" tf:"add_volumes"`
	// If true, this User may cancel the entire Account.
	// +optional
	CancelAccount *bool `json:"cancelAccount,omitempty" tf:"cancel_account"`
	// If true, this User may manage the Account’s Longview subscription.
	// +optional
	LongviewSubscription *bool `json:"longviewSubscription,omitempty" tf:"longview_subscription"`
}

func (*UserSpecGlobalGrants) DeepCopy

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

func (*UserSpecGlobalGrants) DeepCopyInto

func (in *UserSpecGlobalGrants) DeepCopyInto(out *UserSpecGlobalGrants)

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

type UserSpecGlobalGrantsCodec

type UserSpecGlobalGrantsCodec struct {
}

+k8s:deepcopy-gen=false

func (UserSpecGlobalGrantsCodec) Decode

func (UserSpecGlobalGrantsCodec) Encode

func (UserSpecGlobalGrantsCodec) IsEmpty

type UserSpecImageGrant

type UserSpecImageGrant struct {
	// The ID of the entity this grant applies to.
	ID *int64 `json:"ID" tf:"id"`
	// The level of access this User has to this entity. If null, this User has no access.
	Permissions *string `json:"permissions" tf:"permissions"`
}

func (*UserSpecImageGrant) DeepCopy

func (in *UserSpecImageGrant) DeepCopy() *UserSpecImageGrant

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

func (*UserSpecImageGrant) DeepCopyInto

func (in *UserSpecImageGrant) DeepCopyInto(out *UserSpecImageGrant)

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

type UserSpecLinodeGrant

type UserSpecLinodeGrant struct {
	// The ID of the entity this grant applies to.
	ID *int64 `json:"ID" tf:"id"`
	// The level of access this User has to this entity. If null, this User has no access.
	Permissions *string `json:"permissions" tf:"permissions"`
}

func (*UserSpecLinodeGrant) DeepCopy

func (in *UserSpecLinodeGrant) DeepCopy() *UserSpecLinodeGrant

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

func (*UserSpecLinodeGrant) DeepCopyInto

func (in *UserSpecLinodeGrant) DeepCopyInto(out *UserSpecLinodeGrant)

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

type UserSpecLongviewGrant

type UserSpecLongviewGrant struct {
	// The ID of the entity this grant applies to.
	ID *int64 `json:"ID" tf:"id"`
	// The level of access this User has to this entity. If null, this User has no access.
	Permissions *string `json:"permissions" tf:"permissions"`
}

func (*UserSpecLongviewGrant) DeepCopy

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

func (*UserSpecLongviewGrant) DeepCopyInto

func (in *UserSpecLongviewGrant) DeepCopyInto(out *UserSpecLongviewGrant)

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

type UserSpecNodebalancerGrant

type UserSpecNodebalancerGrant struct {
	// The ID of the entity this grant applies to.
	ID *int64 `json:"ID" tf:"id"`
	// The level of access this User has to this entity. If null, this User has no access.
	Permissions *string `json:"permissions" tf:"permissions"`
}

func (*UserSpecNodebalancerGrant) DeepCopy

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

func (*UserSpecNodebalancerGrant) DeepCopyInto

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

type UserSpecResource

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

	// A set containing all of the user's active grants.
	// +optional
	DomainGrant []UserSpecDomainGrant `json:"domainGrant,omitempty" tf:"domain_grant"`
	// The email of the user.
	Email *string `json:"email" tf:"email"`
	// A set containing all of the user's active grants.
	// +optional
	FirewallGrant []UserSpecFirewallGrant `json:"firewallGrant,omitempty" tf:"firewall_grant"`
	// A structure containing the Account-level grants a User has.
	// +optional
	GlobalGrants *UserSpecGlobalGrants `json:"globalGrants,omitempty" tf:"global_grants"`
	// A set containing all of the user's active grants.
	// +optional
	ImageGrant []UserSpecImageGrant `json:"imageGrant,omitempty" tf:"image_grant"`
	// A set containing all of the user's active grants.
	// +optional
	LinodeGrant []UserSpecLinodeGrant `json:"linodeGrant,omitempty" tf:"linode_grant"`
	// A set containing all of the user's active grants.
	// +optional
	LongviewGrant []UserSpecLongviewGrant `json:"longviewGrant,omitempty" tf:"longview_grant"`
	// A set containing all of the user's active grants.
	// +optional
	NodebalancerGrant []UserSpecNodebalancerGrant `json:"nodebalancerGrant,omitempty" tf:"nodebalancer_grant"`
	// If true, the user must be explicitly granted access to platform actions and entities.
	// +optional
	Restricted *bool `json:"restricted,omitempty" tf:"restricted"`
	// SSH keys to add to the user profile.
	// +optional
	SshKeys []string `json:"sshKeys,omitempty" tf:"ssh_keys"`
	// A set containing all of the user's active grants.
	// +optional
	StackscriptGrant []UserSpecStackscriptGrant `json:"stackscriptGrant,omitempty" tf:"stackscript_grant"`
	// If the User has Two Factor Authentication (TFA) enabled.
	// +optional
	TfaEnabled *bool `json:"tfaEnabled,omitempty" tf:"tfa_enabled"`
	// The username of the user.
	Username *string `json:"username" tf:"username"`
	// A set containing all of the user's active grants.
	// +optional
	VolumeGrant []UserSpecVolumeGrant `json:"volumeGrant,omitempty" tf:"volume_grant"`
}

func (*UserSpecResource) DeepCopy

func (in *UserSpecResource) DeepCopy() *UserSpecResource

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

func (*UserSpecResource) DeepCopyInto

func (in *UserSpecResource) DeepCopyInto(out *UserSpecResource)

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

type UserSpecStackscriptGrant

type UserSpecStackscriptGrant struct {
	// The ID of the entity this grant applies to.
	ID *int64 `json:"ID" tf:"id"`
	// The level of access this User has to this entity. If null, this User has no access.
	Permissions *string `json:"permissions" tf:"permissions"`
}

func (*UserSpecStackscriptGrant) DeepCopy

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

func (*UserSpecStackscriptGrant) DeepCopyInto

func (in *UserSpecStackscriptGrant) DeepCopyInto(out *UserSpecStackscriptGrant)

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

type UserSpecVolumeGrant

type UserSpecVolumeGrant struct {
	// The ID of the entity this grant applies to.
	ID *int64 `json:"ID" tf:"id"`
	// The level of access this User has to this entity. If null, this User has no access.
	Permissions *string `json:"permissions" tf:"permissions"`
}

func (*UserSpecVolumeGrant) DeepCopy

func (in *UserSpecVolumeGrant) DeepCopy() *UserSpecVolumeGrant

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

func (*UserSpecVolumeGrant) DeepCopyInto

func (in *UserSpecVolumeGrant) DeepCopyInto(out *UserSpecVolumeGrant)

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

type UserStatus

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

func (in *UserStatus) DeepCopy() *UserStatus

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

func (*UserStatus) DeepCopyInto

func (in *UserStatus) DeepCopyInto(out *UserStatus)

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