v1alpha1

package
v0.0.0-...-20f624e Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the k8s v1alpha1 API group +kubebuilder:object:generate=true +groupName=k8s.tuunit.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "k8s.tuunit.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 Database

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

	Spec   DatabaseSpec   `json:"spec,omitempty"`
	Status DatabaseStatus `json:"status,omitempty"`
}

Database is the Schema for the databases API

func (*Database) DeepCopy

func (in *Database) DeepCopy() *Database

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

func (*Database) DeepCopyInto

func (in *Database) DeepCopyInto(out *Database)

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

func (*Database) DeepCopyObject

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

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

type DatabaseList

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

DatabaseList contains a list of Database

func (*DatabaseList) DeepCopy

func (in *DatabaseList) DeepCopy() *DatabaseList

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

func (*DatabaseList) DeepCopyInto

func (in *DatabaseList) DeepCopyInto(out *DatabaseList)

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

func (*DatabaseList) DeepCopyObject

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

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

type DatabaseSpec

type DatabaseSpec struct {
	// Name is the name of the database to create
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Name string `json:"name"`
	// Owner is the name of the user that will own the database
	// +optional
	Owner string `json:"owner,omitempty"`
	// Charset is the character set for the database
	// +optional
	Charset string `json:"charset,omitempty"`
	// Collation is the collation for the database
	// +optional
	Collation string `json:"collation,omitempty"`

	// HostRef is a reference to a DatabaseHost object in the same namespace
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	DatabaseHostRef string `json:"databaseHostRef"`
}

DatabaseSpec defines the desired state of Database

func (*DatabaseSpec) DeepCopy

func (in *DatabaseSpec) DeepCopy() *DatabaseSpec

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

func (*DatabaseSpec) DeepCopyInto

func (in *DatabaseSpec) DeepCopyInto(out *DatabaseSpec)

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

type DatabaseStatus

type DatabaseStatus struct {
	CreationTime   metav1.Time `json:"creationTime,omitempty"`
	CreationStatus string      `json:"creationStatus,omitempty"`
}

DatabaseStatus defines the observed state of Database

func (*DatabaseStatus) DeepCopy

func (in *DatabaseStatus) DeepCopy() *DatabaseStatus

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

func (*DatabaseStatus) DeepCopyInto

func (in *DatabaseStatus) DeepCopyInto(out *DatabaseStatus)

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

type DatabaseUser

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

	Spec   DatabaseUserSpec   `json:"spec,omitempty"`
	Status DatabaseUserStatus `json:"status,omitempty"`
}

DatabaseUser is the Schema for the databaseusers API

func (*DatabaseUser) DeepCopy

func (in *DatabaseUser) DeepCopy() *DatabaseUser

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

func (*DatabaseUser) DeepCopyInto

func (in *DatabaseUser) DeepCopyInto(out *DatabaseUser)

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

func (*DatabaseUser) DeepCopyObject

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

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

type DatabaseUserList

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

DatabaseUserList contains a list of DatabaseUser

func (*DatabaseUserList) DeepCopy

func (in *DatabaseUserList) DeepCopy() *DatabaseUserList

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

func (*DatabaseUserList) DeepCopyInto

func (in *DatabaseUserList) DeepCopyInto(out *DatabaseUserList)

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

func (*DatabaseUserList) DeepCopyObject

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

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

type DatabaseUserSpec

type DatabaseUserSpec struct {
	// Username is the name of the user to create
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Username string `json:"username"`
	// Password is the password for the user
	// +kubebuilder:validation:MinLength=1
	// +optional
	Password string `json:"password,omitempty"`
	// PasswordSecretRef is a reference to an existing secret in the same namespace
	// +optional
	PasswordSecretRef *SecretKeySelector `json:"passwordSecretRef,omitempty"`
	// Privileges is a list of privileges to grant to the user
	// +kubebuilder:validation:MinItems=1
	// +kubebuilder:validation:Required
	Privileges []Privilege `json:"privileges"`
}

DatabaseUserSpec defines the desired state of DatabaseUser

func (*DatabaseUserSpec) DeepCopy

func (in *DatabaseUserSpec) DeepCopy() *DatabaseUserSpec

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

func (*DatabaseUserSpec) DeepCopyInto

func (in *DatabaseUserSpec) DeepCopyInto(out *DatabaseUserSpec)

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

type DatabaseUserStatus

type DatabaseUserStatus struct {
}

DatabaseUserStatus defines the observed state of DatabaseUser

func (*DatabaseUserStatus) DeepCopy

func (in *DatabaseUserStatus) DeepCopy() *DatabaseUserStatus

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

func (*DatabaseUserStatus) DeepCopyInto

func (in *DatabaseUserStatus) DeepCopyInto(out *DatabaseUserStatus)

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

type Privilege

type Privilege struct {
	// The type of object for which to grant privileges
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	ObjectType string `json:"objectType"`
	// The name of the object for which to grant privileges
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	ObjectName string `json:"objectName"`
	// The list of privileges to grant
	// +kubebuilder:validation:MinItems=1
	// +kubebuilder:validation:Required
	Privileges []string `json:"privileges"`
}

ACL for PostgreSQL https://www.postgresql.org/docs/15/ddl-priv.html ACL for MySQL https://dev.mysql.com/doc/refman/8.3/en/grant.html

func (*Privilege) DeepCopy

func (in *Privilege) DeepCopy() *Privilege

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

func (*Privilege) DeepCopyInto

func (in *Privilege) DeepCopyInto(out *Privilege)

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

type SecretKeySelector

type SecretKeySelector struct {
	// The name of the secret in the object's namespace to select from.
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Name string `json:"name"`
	// The key of the secret to select from.  Must be a valid secret key.
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Key string `json:"key"`
}

func (*SecretKeySelector) DeepCopy

func (in *SecretKeySelector) DeepCopy() *SecretKeySelector

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

func (*SecretKeySelector) DeepCopyInto

func (in *SecretKeySelector) DeepCopyInto(out *SecretKeySelector)

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