Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the rocketbelt v1alpha1 API group +kubebuilder:object:generate=true +groupName=rocketbelt.hextech.com
Index ¶
- Variables
- func Generate(p string) string
- func Validate(p1, p2 string) bool
- type HexRole
- func (in *HexRole) DeepCopy() *HexRole
- func (in *HexRole) DeepCopyInto(out *HexRole)
- func (in *HexRole) DeepCopyObject() runtime.Object
- func (r *HexRole) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *HexRole) ValidateCreate() error
- func (r *HexRole) ValidateDelete() error
- func (r *HexRole) ValidateUpdate(old runtime.Object) error
- type HexRoleBinding
- type HexRoleBindingList
- type HexRoleBindingSpec
- type HexRoleList
- type HexRoleSpec
- type RoleRef
- type Rules
- type User
- func (in *User) DeepCopy() *User
- func (in *User) DeepCopyInto(out *User)
- func (in *User) DeepCopyObject() runtime.Object
- func (r *User) Default()
- func (r *User) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *User) ValidateCreate() error
- func (r *User) ValidateDelete() error
- func (r *User) ValidateUpdate(old runtime.Object) error
- type UserList
- type UserSpec
- type UserState
- type UserStatus
- type Verb
Constants ¶
This section is empty.
Variables ¶
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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HexRole.
func (*HexRole) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HexRole) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*HexRole) SetupWebhookWithManager ¶
func (*HexRole) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*HexRole) ValidateDelete ¶
ValidateDelete 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleRef.
func (*RoleRef) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rules.
func (*Rules) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new User.
func (*User) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*User) DeepCopyObject ¶
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 (*User) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*User) ValidateDelete ¶
ValidateDelete 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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserList.
func (*UserList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UserList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpec.
func (*UserSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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.