Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the directory v1alpha1 API group +kubebuilder:object:generate=true +groupName=directory.koobind.io
Index ¶
- Variables
- type Group
- func (in *Group) DeepCopy() *Group
- func (in *Group) DeepCopyInto(out *Group)
- func (in *Group) DeepCopyObject() runtime.Object
- func (r *Group) Default()
- func (r *Group) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Group) ValidateCreate() error
- func (r *Group) ValidateDelete() error
- func (r *Group) ValidateUpdate(old runtime.Object) error
- type GroupBinding
- func (in *GroupBinding) DeepCopy() *GroupBinding
- func (in *GroupBinding) DeepCopyInto(out *GroupBinding)
- func (in *GroupBinding) DeepCopyObject() runtime.Object
- func (r *GroupBinding) Default()
- func (r *GroupBinding) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *GroupBinding) ValidateCreate() error
- func (r *GroupBinding) ValidateDelete() error
- func (r *GroupBinding) ValidateUpdate(old runtime.Object) error
- type GroupBindingList
- type GroupBindingSpec
- type GroupBindingStatus
- type GroupList
- type GroupSpec
- type GroupStatus
- type User
- func (in *User) DeepCopy() *User
- func (in *User) DeepCopyInto(out *User)
- func (in *User) DeepCopyObject() runtime.Object
- func (this *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 UserStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "directory.koobind.io", Version: "v1alpha1"} // 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 ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GroupSpec `json:"spec,omitempty"` Status GroupStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced,shortName=koogroup;kgroup;koogroups;kgroups +kubebuilder:printcolumn:name="Description",type=string,JSONPath=`.spec.description` +kubebuilder:printcolumn:name="Disabled",type=boolean,JSONPath=`.spec.disabled` Group is the Schema for the groups API
func (*Group) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Group.
func (*Group) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Group) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Group) Default ¶
func (r *Group) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Group) SetupWebhookWithManager ¶
func (*Group) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Group) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type GroupBinding ¶
type GroupBinding struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GroupBindingSpec `json:"spec,omitempty"` Status GroupBindingStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:scope=Namespaced,shortName=gb;ugb;usergroupbinding;kgroupbinding;koogroupbinding +kubebuilder:printcolumn:name="User",type=string,JSONPath=`.spec.user` +kubebuilder:printcolumn:name="Group",type=string,JSONPath=`.spec.group` +kubebuilder:printcolumn:name="Disabled",type=boolean,JSONPath=`.spec.disabled` GroupBinding is the Schema for the groupbindings API
func (*GroupBinding) DeepCopy ¶
func (in *GroupBinding) DeepCopy() *GroupBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupBinding.
func (*GroupBinding) DeepCopyInto ¶
func (in *GroupBinding) DeepCopyInto(out *GroupBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GroupBinding) DeepCopyObject ¶
func (in *GroupBinding) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*GroupBinding) Default ¶
func (r *GroupBinding) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*GroupBinding) SetupWebhookWithManager ¶
func (r *GroupBinding) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*GroupBinding) ValidateCreate ¶
func (r *GroupBinding) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*GroupBinding) ValidateDelete ¶
func (r *GroupBinding) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*GroupBinding) ValidateUpdate ¶
func (r *GroupBinding) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type GroupBindingList ¶
type GroupBindingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GroupBinding `json:"items"` }
GroupBindingList contains a list of GroupBinding
func (*GroupBindingList) DeepCopy ¶
func (in *GroupBindingList) DeepCopy() *GroupBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupBindingList.
func (*GroupBindingList) DeepCopyInto ¶
func (in *GroupBindingList) DeepCopyInto(out *GroupBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GroupBindingList) DeepCopyObject ¶
func (in *GroupBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GroupBindingSpec ¶
type GroupBindingSpec struct { // +kubebuilder:validation:MinLength=1 // +required User string `json:"user"` // +kubebuilder:validation:MinLength=1 // +required Group string `json:"group"` // Allow to 'hide' this groupbinding. Even if defined in another provider // +optional Disabled *bool `json:"disabled,omitempty"` }
GroupBindingSpec defines the desired state of GroupBinding
func (*GroupBindingSpec) DeepCopy ¶
func (in *GroupBindingSpec) DeepCopy() *GroupBindingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupBindingSpec.
func (*GroupBindingSpec) DeepCopyInto ¶
func (in *GroupBindingSpec) DeepCopyInto(out *GroupBindingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GroupBindingStatus ¶
type GroupBindingStatus struct { }
GroupBindingStatus defines the observed state of GroupBinding
func (*GroupBindingStatus) DeepCopy ¶
func (in *GroupBindingStatus) DeepCopy() *GroupBindingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupBindingStatus.
func (*GroupBindingStatus) DeepCopyInto ¶
func (in *GroupBindingStatus) DeepCopyInto(out *GroupBindingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GroupList ¶
type GroupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Group `json:"items"` }
GroupList contains a list of Group
func (*GroupList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupList.
func (*GroupList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GroupList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GroupSpec ¶
type GroupSpec struct { // Group description // +optional Description string `json:"description,omitempty"` // Allow to 'hide' this group. Even if defined in another provider // +optional Disabled *bool `json:"disabled,omitempty"` }
GroupSpec defines the desired state of Group
func (*GroupSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupSpec.
func (*GroupSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GroupStatus ¶
type GroupStatus struct { }
GroupStatus defines the observed state of Group
func (*GroupStatus) DeepCopy ¶
func (in *GroupStatus) DeepCopy() *GroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupStatus.
func (*GroupStatus) DeepCopyInto ¶
func (in *GroupStatus) DeepCopyInto(out *GroupStatus)
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"` }
+kubebuilder:resource:scope=Namespaced,shortName=koouser;kuser;koousers;kusers +kubebuilder:printcolumn:name="Common name",type=string,JSONPath=`.spec.commonName` +kubebuilder:printcolumn:name="Email",type=string,JSONPath=`.spec.email` +kubebuilder:printcolumn:name="Uid",type=integer,JSONPath=`.spec.uid` +kubebuilder:printcolumn:name="Comment",type=string,JSONPath=`.spec.comment` +kubebuilder:printcolumn:name="Disabled",type=boolean,JSONPath=`.spec.disabled` 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 (this *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 { // The user common name. // +optional CommonName string `json:"commonName,omitempty"` // The user email. // +optional Email string `json:"email,omitempty"` // The user password, Hashed. Using golang.org/x/crypto/bcrypt.GenerateFromPassword() // Is optional, in case we only enrich a user from another directory // +optional PasswordHash string `json:"passwordHash,omitempty"` // Numerical user id // +optional Uid *int `json:"uid,omitempty"` // Whatever extra information related to this user. // +optional Comment string `json:"comment,omitempty"` // Prevent this user to login. Even if this user is managed by an external provider (i.e LDAP) // +optional Disabled *bool `json:"disabled,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 { }
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.