v1alpha1

package
v0.0.0-...-011cf26 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the rocketbelt v1alpha1 API group +kubebuilder:object:generate=true +groupName=rocketbelt.hextech.com

Index

Constants

This section is empty.

Variables

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

	SchemeGroupVersion = GroupVersion

	// 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

func Generate

func Generate(p string) string

func Validate

func Validate(p1, p2 string) bool

Types

type HexRole

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

	Spec HexRoleSpec `json:"spec,omitempty"`
}

HexRole is the Schema for the hexroles API

func (*HexRole) DeepCopy

func (in *HexRole) DeepCopy() *HexRole

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

func (*HexRole) DeepCopyInto

func (in *HexRole) DeepCopyInto(out *HexRole)

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

func (*HexRole) DeepCopyObject

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

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

func (*HexRole) SetupWebhookWithManager

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

func (*HexRole) ValidateCreate

func (r *HexRole) ValidateCreate() error

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

func (*HexRole) ValidateDelete

func (r *HexRole) ValidateDelete() error

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

func (*HexRole) ValidateUpdate

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

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

type HexRoleBinding

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

	Spec HexRoleBindingSpec `json:"spec,omitempty"`
}

HexRoleBinding is the Schema for the hexrolebindings API

func (*HexRoleBinding) DeepCopy

func (in *HexRoleBinding) DeepCopy() *HexRoleBinding

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

func (*HexRoleBinding) DeepCopyInto

func (in *HexRoleBinding) DeepCopyInto(out *HexRoleBinding)

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

func (*HexRoleBinding) DeepCopyObject

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

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

type HexRoleBindingList

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

HexRoleBindingList contains a list of HexRoleBinding

func (*HexRoleBindingList) DeepCopy

func (in *HexRoleBindingList) DeepCopy() *HexRoleBindingList

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

func (*HexRoleBindingList) DeepCopyInto

func (in *HexRoleBindingList) DeepCopyInto(out *HexRoleBindingList)

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

func (*HexRoleBindingList) DeepCopyObject

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

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

type HexRoleBindingSpec

type HexRoleBindingSpec struct {
	RoleRef RoleRef  `json:"roleRef,omitempty"`
	Users   []string `json:"users,omitempty"`
}

HexRoleBindingSpec defines the desired state of HexRoleBinding

func (*HexRoleBindingSpec) DeepCopy

func (in *HexRoleBindingSpec) DeepCopy() *HexRoleBindingSpec

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

func (*HexRoleBindingSpec) DeepCopyInto

func (in *HexRoleBindingSpec) DeepCopyInto(out *HexRoleBindingSpec)

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

type HexRoleList

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

HexRoleList contains a list of HexRole

func (*HexRoleList) DeepCopy

func (in *HexRoleList) DeepCopy() *HexRoleList

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

func (*HexRoleList) DeepCopyInto

func (in *HexRoleList) DeepCopyInto(out *HexRoleList)

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

func (*HexRoleList) DeepCopyObject

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

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

type HexRoleSpec

type HexRoleSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Rules []Rules `json:"rules,omitempty"`
}

HexRoleSpec defines the desired state of HexRole

func (*HexRoleSpec) DeepCopy

func (in *HexRoleSpec) DeepCopy() *HexRoleSpec

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

func (*HexRoleSpec) DeepCopyInto

func (in *HexRoleSpec) DeepCopyInto(out *HexRoleSpec)

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

type RoleRef

type RoleRef struct {
	Name string `json:"name,omitempty"`
}

func (*RoleRef) DeepCopy

func (in *RoleRef) DeepCopy() *RoleRef

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

func (*RoleRef) DeepCopyInto

func (in *RoleRef) DeepCopyInto(out *RoleRef)

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

type Rules

type Rules struct {
	Resources []string `json:"resources,omitempty"`
	Verbs     []Verb   `json:"verbs,omitempty"`
}

func (*Rules) DeepCopy

func (in *Rules) DeepCopy() *Rules

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

func (*Rules) DeepCopyInto

func (in *Rules) DeepCopyInto(out *Rules)

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

type User

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

	Spec   UserSpec   `json:"spec,omitempty"`
	Status UserStatus `json:"status,omitempty"`
}

User is the Schema for the users API

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) Default

func (r *User) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

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           []User `json:"items"`
}

UserList contains a list of User

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 {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// +optional
	DisplayName string `json:"displayName"`

	// +optional
	Password string `json:"password"`

	// +kubebuilder:validation:Pattern=`^[0-9a-z][_.0-9a-z-]{0,31}@([0-9a-z][0-9a-z-]{0,30}[0-9a-z]\.){1,4}[a-z]{2,4}$`
	// +optional
	Email string `json:"email"`

	// +kubebuilder:validation:Pattern=`[0-9]{11}`
	// +optional
	Phone string `json:"phone,omitempty"`

	// +optional
	IM string `json:"im,omitempty"`

	// Foo is an example field of User. Edit user_types.go to remove/update
	Foo string `json:"foo,omitempty"`
}

UserSpec defines the desired state of User

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 UserState

type UserState string
const (
	// the user is active
	UserActive UserState = "Active"
	// the user is disabled
	UserDisabled UserState = "Disabled"
	// the user is null, unknow
	UserNull UserState = ""
)

type UserStatus

type UserStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// +optional
	State UserState `json:"state,omitempty"`
}

UserStatus defines the observed state of User

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.

type Verb

type Verb string
const (
	Get    Verb = "get"
	Create Verb = "create"
	Delete Verb = "delete"
	Update Verb = "update"
	List   Verb = "list"
)

Jump to

Keyboard shortcuts

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