api

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LDAPObject

type LDAPObject interface {
	metav1.Object
	runtime.Object
	NamedLDAPObject
	reference.ObjectWithReferences
	GetLDAPObjectSpec() *LDAPObjectSpec
	SetStatus(status SimpleStatus)
	GetPhase() Phase
}

LDAPObject is implemented by all LDAP objects.

type LDAPObjectSpec

type LDAPObjectSpec struct {
	// DirectoryRef is a reference to the directory that owns this object.
	DirectoryRef LocalLDAPDirectoryReference `json:"directoryRef"`
	// ParentRef is an optional reference to the parent of this object (typically an organizational unit).
	ParentRef *reference.LocalObjectReference `json:"parentRef,omitempty"`
}

+kubebuilder:object:generate=true

func (*LDAPObjectSpec) DeepCopy

func (in *LDAPObjectSpec) DeepCopy() *LDAPObjectSpec

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

func (*LDAPObjectSpec) DeepCopyInto

func (in *LDAPObjectSpec) DeepCopyInto(out *LDAPObjectSpec)

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

type LocalLDAPDirectoryReference

type LocalLDAPDirectoryReference struct {
	// Name of the referenced LDAPDirectory.
	Name string `json:"name"`
}

LocalLDAPDirectoryReference is a reference to an LDAPDirectory. +kubebuilder:object:generate=true

func (*LocalLDAPDirectoryReference) DeepCopy

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

func (*LocalLDAPDirectoryReference) DeepCopyInto

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

func (*LocalLDAPDirectoryReference) Resolve

func (ref *LocalLDAPDirectoryReference) Resolve(ctx context.Context, reader client.Reader, scheme *runtime.Scheme, parent runtime.Object) (runtime.Object, bool, error)

type NamedLDAPObject

type NamedLDAPObject interface {
	GetDistinguishedName(ctx context.Context, reader client.Reader, scheme *runtime.Scheme) (string, error)
}

NamedLDAPObject is implemented by all LDAP objects that have a distinguished name.

type Phase

type Phase string

Phase is the current phase of the object.

const (
	// PhasePending means the object has been created but is not ready for use.
	PhasePending Phase = "Pending"
	// PhaseReady means the object is ready for use.
	PhaseReady Phase = "Ready"
	// PhaseFailed means the object has failed.
	PhaseFailed Phase = "Failed"
)

type SimpleStatus

type SimpleStatus struct {
	// Phase is the current phase of the object.
	Phase Phase `json:"phase,omitempty"`
	// ObservedGeneration is the most recent generation observed for this object by the controller.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// Message is a human readable message indicating details about why the object is in this condition.
	Message string `json:"message,omitempty"`
}

SimpleStatus is a basic status type that can be reused across multiple types.

Directories

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

Jump to

Keyboard shortcuts

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