v1alpha1

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the ldap v1alpha1 API group +kubebuilder:object:generate=true +groupName=ldap.gpu-ninja.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "ldap.gpu-ninja.com", 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 LDAPDirectory

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

	Spec   LDAPDirectorySpec   `json:"spec,omitempty"`
	Status LDAPDirectoryStatus `json:"status,omitempty"`
}

LDAPDirectory is a LDAP directory. +kubebuilder:object:root=true +kubebuilder:resource:path=ldapdirectories,scope=Namespaced +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

func (*LDAPDirectory) DeepCopy

func (in *LDAPDirectory) DeepCopy() *LDAPDirectory

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

func (*LDAPDirectory) DeepCopyInto

func (in *LDAPDirectory) DeepCopyInto(out *LDAPDirectory)

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

func (*LDAPDirectory) DeepCopyObject

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

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

func (*LDAPDirectory) GetDistinguishedName

func (s *LDAPDirectory) GetDistinguishedName(_ context.Context, _ client.Reader, _ *runtime.Scheme) (string, error)

func (*LDAPDirectory) ResolveReferences

func (s *LDAPDirectory) ResolveReferences(ctx context.Context, reader client.Reader, scheme *runtime.Scheme) (bool, error)

type LDAPDirectoryConditionType

type LDAPDirectoryConditionType string
const (
	LDAPDirectoryConditionTypePending LDAPDirectoryConditionType = "Pending"
	LDAPDirectoryConditionTypeReady   LDAPDirectoryConditionType = "Ready"
	LDAPDirectoryConditionTypeFailed  LDAPDirectoryConditionType = "Failed"
)

type LDAPDirectoryList

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

LDAPDirectoryList contains a list of LDAPDirectory. +kubebuilder:object:root=true

func (*LDAPDirectoryList) DeepCopy

func (in *LDAPDirectoryList) DeepCopy() *LDAPDirectoryList

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

func (*LDAPDirectoryList) DeepCopyInto

func (in *LDAPDirectoryList) DeepCopyInto(out *LDAPDirectoryList)

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

func (*LDAPDirectoryList) DeepCopyObject

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

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

type LDAPDirectoryPhase

type LDAPDirectoryPhase string
const (
	LDAPDirectoryPhasePending LDAPDirectoryPhase = "Pending"
	LDAPDirectoryPhaseReady   LDAPDirectoryPhase = "Ready"
	LDAPDirectoryPhaseFailed  LDAPDirectoryPhase = "Failed"
)

type LDAPDirectorySpec

type LDAPDirectorySpec struct {
	// Image is the container image that will be used to run the LDAP directory.
	Image string `json:"image"`
	// Domain is the domain of the organization that owns the LDAP directory.
	Domain string `json:"domain"`
	// Organization is the name of the organization that owns the LDAP directory.
	Organization string `json:"organization"`
	// AdminPasswordSecretRef is a reference to a secret that contains the
	// password for the admin user.
	AdminPasswordSecretRef reference.LocalSecretReference `json:"adminPasswordSecretRef"`
	// CertificateSecretRef is a reference to a secret that contains the
	// TLS certificate and key that will be used to secure the LDAP directory.
	CertificateSecretRef reference.LocalSecretReference `json:"certificateSecretRef"`
	// DebugLevel controls the verbosity of the directory logs.
	DebugLevel *int `json:"debugLevel,omitempty"`
	// FileDescriptorLimit controls the maximum number of file
	// descriptors that the LDAP directory can open.
	// See: https://github.com/docker/docker/issues/8231
	FileDescriptorLimit *int `json:"fileDescriptorLimit,omitempty"`
	// Storage defines the persistent volume that will be used
	// to store the LDAP database.
	Storage LDAPDirectoryStorageSpec `json:"storage"`
	// AddressOverride is an optional address that will be used to
	// access the LDAP directory.
	AddressOverride string `json:"addressOverride,omitempty"`
	// Resources allows specifying the resource requirements for the directory container.
	Resources corev1.ResourceRequirements `json:"resources,omitempty"`
}

LDAPDirectorySpec defines the desired state of the LDAP directory.

func (*LDAPDirectorySpec) DeepCopy

func (in *LDAPDirectorySpec) DeepCopy() *LDAPDirectorySpec

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

func (*LDAPDirectorySpec) DeepCopyInto

func (in *LDAPDirectorySpec) DeepCopyInto(out *LDAPDirectorySpec)

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

type LDAPDirectoryStatus

type LDAPDirectoryStatus struct {
	// Phase is the current state of the LDAP directory.
	Phase LDAPDirectoryPhase `json:"phase,omitempty"`
	// ObservedGeneration is the most recent generation observed for this LDAP directory by the controller.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// Conditions represents the latest available observations of the LDAP directories current state.
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

LDAPDirectoryStatus defines the observed state of the LDAP directory.

func (*LDAPDirectoryStatus) DeepCopy

func (in *LDAPDirectoryStatus) DeepCopy() *LDAPDirectoryStatus

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

func (*LDAPDirectoryStatus) DeepCopyInto

func (in *LDAPDirectoryStatus) DeepCopyInto(out *LDAPDirectoryStatus)

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

type LDAPDirectoryStorageSpec

type LDAPDirectoryStorageSpec struct {
	// Size is the size of the persistent volume that will be
	// used to store the LDAP database.
	Size string `json:"size"`
	// StorageClassName is the name of the storage class that will be
	// used to provision the persistent volume.
	StorageClassName *string `json:"storageClassName,omitempty"`
}

LDAPDirectoryStorageSpec defines the storage configuration for the LDAP directory.

func (*LDAPDirectoryStorageSpec) DeepCopy

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

func (*LDAPDirectoryStorageSpec) DeepCopyInto

func (in *LDAPDirectoryStorageSpec) DeepCopyInto(out *LDAPDirectoryStorageSpec)

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

type LDAPGroup

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

	Spec   LDAPGroupSpec    `json:"spec,omitempty"`
	Status api.SimpleStatus `json:"status,omitempty"`
}

LDAPGroup is a LDAP group of names. +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

func (*LDAPGroup) DeepCopy

func (in *LDAPGroup) DeepCopy() *LDAPGroup

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

func (*LDAPGroup) DeepCopyInto

func (in *LDAPGroup) DeepCopyInto(out *LDAPGroup)

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

func (*LDAPGroup) DeepCopyObject

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

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

func (*LDAPGroup) GetDistinguishedName

func (g *LDAPGroup) GetDistinguishedName(ctx context.Context, reader client.Reader, scheme *runtime.Scheme) (string, error)

func (*LDAPGroup) GetLDAPObjectSpec

func (g *LDAPGroup) GetLDAPObjectSpec() *api.LDAPObjectSpec

func (*LDAPGroup) GetPhase

func (g *LDAPGroup) GetPhase() api.Phase

func (*LDAPGroup) ResolveReferences

func (g *LDAPGroup) ResolveReferences(ctx context.Context, reader client.Reader, scheme *runtime.Scheme) (bool, error)

func (*LDAPGroup) SetStatus

func (g *LDAPGroup) SetStatus(status api.SimpleStatus)

type LDAPGroupList

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

LDAPGroupList contains a list of LDAPGroup +kubebuilder:object:root=true

func (*LDAPGroupList) DeepCopy

func (in *LDAPGroupList) DeepCopy() *LDAPGroupList

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

func (*LDAPGroupList) DeepCopyInto

func (in *LDAPGroupList) DeepCopyInto(out *LDAPGroupList)

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

func (*LDAPGroupList) DeepCopyObject

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

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

type LDAPGroupSpec

type LDAPGroupSpec struct {
	api.LDAPObjectSpec `json:",inline"`
	// Name is the common name for this group.
	Name string `json:"name"`
	// Description is an optional description of this group.
	Description string `json:"description,omitempty"`
	// Members is a list of distinguished names representing the members of this group.
	//+kubebuilder:validation:MinItems=1
	Members []string `json:"members"`
}

func (*LDAPGroupSpec) DeepCopy

func (in *LDAPGroupSpec) DeepCopy() *LDAPGroupSpec

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

func (*LDAPGroupSpec) DeepCopyInto

func (in *LDAPGroupSpec) DeepCopyInto(out *LDAPGroupSpec)

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

type LDAPOrganizationalUnit

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

	Spec   LDAPOrganizationalUnitSpec `json:"spec,omitempty"`
	Status api.SimpleStatus           `json:"status,omitempty"`
}

LDAPOrganizationalUnit is a LDAP organizational unit. +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

func (*LDAPOrganizationalUnit) DeepCopy

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

func (*LDAPOrganizationalUnit) DeepCopyInto

func (in *LDAPOrganizationalUnit) DeepCopyInto(out *LDAPOrganizationalUnit)

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

func (*LDAPOrganizationalUnit) DeepCopyObject

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

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

func (*LDAPOrganizationalUnit) GetDistinguishedName

func (ou *LDAPOrganizationalUnit) GetDistinguishedName(ctx context.Context, reader client.Reader, scheme *runtime.Scheme) (string, error)

func (*LDAPOrganizationalUnit) GetLDAPObjectSpec

func (ou *LDAPOrganizationalUnit) GetLDAPObjectSpec() *api.LDAPObjectSpec

func (*LDAPOrganizationalUnit) GetPhase

func (ou *LDAPOrganizationalUnit) GetPhase() api.Phase

func (*LDAPOrganizationalUnit) ResolveReferences

func (ou *LDAPOrganizationalUnit) ResolveReferences(ctx context.Context, reader client.Reader, scheme *runtime.Scheme) (bool, error)

func (*LDAPOrganizationalUnit) SetStatus

func (ou *LDAPOrganizationalUnit) SetStatus(status api.SimpleStatus)

type LDAPOrganizationalUnitList

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

LDAPOrganizationalUnitList contains a list of LDAPOrganizationalUnit +kubebuilder:object:root=true

func (*LDAPOrganizationalUnitList) DeepCopy

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

func (*LDAPOrganizationalUnitList) DeepCopyInto

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

func (*LDAPOrganizationalUnitList) DeepCopyObject

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

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

type LDAPOrganizationalUnitSpec

type LDAPOrganizationalUnitSpec struct {
	api.LDAPObjectSpec `json:",inline"`
	// Name is the common name for this organizational unit.
	Name string `json:"name"`
	// Description is an optional description of this organizational unit.
	Description string `json:"description,omitempty"`
}

func (*LDAPOrganizationalUnitSpec) DeepCopy

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

func (*LDAPOrganizationalUnitSpec) DeepCopyInto

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

type LDAPUser

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

	Spec   LDAPUserSpec     `json:"spec,omitempty"`
	Status api.SimpleStatus `json:"status,omitempty"`
}

LDAPUser is a LDAP user. +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`

func (*LDAPUser) DeepCopy

func (in *LDAPUser) DeepCopy() *LDAPUser

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

func (*LDAPUser) DeepCopyInto

func (in *LDAPUser) DeepCopyInto(out *LDAPUser)

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

func (*LDAPUser) DeepCopyObject

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

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

func (*LDAPUser) GetDistinguishedName

func (u *LDAPUser) GetDistinguishedName(ctx context.Context, reader client.Reader, scheme *runtime.Scheme) (string, error)

func (*LDAPUser) GetLDAPObjectSpec

func (u *LDAPUser) GetLDAPObjectSpec() *api.LDAPObjectSpec

func (*LDAPUser) GetPhase

func (u *LDAPUser) GetPhase() api.Phase

func (*LDAPUser) ResolveReferences

func (u *LDAPUser) ResolveReferences(ctx context.Context, reader client.Reader, scheme *runtime.Scheme) (bool, error)

func (*LDAPUser) SetStatus

func (u *LDAPUser) SetStatus(status api.SimpleStatus)

type LDAPUserList

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

LDAPUserList contains a list of LDAPUser +kubebuilder:object:root=true

func (*LDAPUserList) DeepCopy

func (in *LDAPUserList) DeepCopy() *LDAPUserList

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

func (*LDAPUserList) DeepCopyInto

func (in *LDAPUserList) DeepCopyInto(out *LDAPUserList)

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

func (*LDAPUserList) DeepCopyObject

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

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

type LDAPUserSpec

type LDAPUserSpec struct {
	api.LDAPObjectSpec `json:",inline"`
	// Username is the username (uid) for this user.
	Username string `json:"username"`
	// Name is the full name of this user (commonName).
	Name string `json:"name"`
	// Surname is the surname of this user.
	Surname string `json:"surname"`
	// Email is an optional email address of this user.
	Email string `json:"email,omitempty"`
	// PasswordSecretRef is an optional reference to a secret containing the password of the user.
	PaswordSecretRef *reference.LocalSecretReference `json:"passwordSecretRef,omitempty"`
}

func (*LDAPUserSpec) DeepCopy

func (in *LDAPUserSpec) DeepCopy() *LDAPUserSpec

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

func (*LDAPUserSpec) DeepCopyInto

func (in *LDAPUserSpec) DeepCopyInto(out *LDAPUserSpec)

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