v1alpha1

package
v0.0.0-...-8fe0c81 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: GPL-3.0 Imports: 10 Imported by: 3

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the directory v1alpha1 API group +kubebuilder:object:generate=true +groupName=directory.koobind.io

Index

Constants

This section is empty.

Variables

View Source
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

func (in *Group) DeepCopy() *Group

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

func (*Group) DeepCopyInto

func (in *Group) DeepCopyInto(out *Group)

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

func (*Group) DeepCopyObject

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

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 (r *Group) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Group) ValidateCreate

func (r *Group) ValidateCreate() error

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

func (*Group) ValidateDelete

func (r *Group) ValidateDelete() error

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

func (*Group) ValidateUpdate

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

ValidateUpdate 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

func (in *GroupList) DeepCopy() *GroupList

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

func (*GroupList) DeepCopyInto

func (in *GroupList) DeepCopyInto(out *GroupList)

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

func (*GroupList) DeepCopyObject

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

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

func (in *GroupSpec) DeepCopy() *GroupSpec

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

func (*GroupSpec) DeepCopyInto

func (in *GroupSpec) DeepCopyInto(out *GroupSpec)

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

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 (this *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 {

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

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

Jump to

Keyboard shortcuts

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