v1alpha1

package
v0.0.0-...-51e2ded Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "db.zeabix.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 {
	// MySQLServer reference that the database will be created
	MySQLServerRef string `json:"mysqlServerRef,omitempty"`

	// Desire username
	Username string `json:"username,omitempty"`

	// DB Credential secret reference for newly created database
	SecretRef string `json:"secretRef,omitempty"`
}

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 {
	// Status of the database
	Status string `json:"status,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 MySQLServer

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

	Spec   MySQLServerSpec   `json:"spec,omitempty"`
	Status MySQLServerStatus `json:"status,omitempty"`
}

MySQLServer is the Schema for the mysqlservers API

func (*MySQLServer) DeepCopy

func (in *MySQLServer) DeepCopy() *MySQLServer

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

func (*MySQLServer) DeepCopyInto

func (in *MySQLServer) DeepCopyInto(out *MySQLServer)

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

func (*MySQLServer) DeepCopyObject

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

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

type MySQLServerList

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

MySQLServerList contains a list of MySQLServer

func (*MySQLServerList) DeepCopy

func (in *MySQLServerList) DeepCopy() *MySQLServerList

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

func (*MySQLServerList) DeepCopyInto

func (in *MySQLServerList) DeepCopyInto(out *MySQLServerList)

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

func (*MySQLServerList) DeepCopyObject

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

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

type MySQLServerSpec

type MySQLServerSpec struct {
	// MySQLServer host
	Host string `json:"host,omitempty"`

	// SecretRef that contain user and credential that has sufficient privileges to
	// create database, user and grant permission to created user
	SecretRef string `json:"secretRef,omitempty"`
}

MySQLServerSpec defines the desired state of MySQLServer

func (*MySQLServerSpec) DeepCopy

func (in *MySQLServerSpec) DeepCopy() *MySQLServerSpec

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

func (*MySQLServerSpec) DeepCopyInto

func (in *MySQLServerSpec) DeepCopyInto(out *MySQLServerSpec)

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

type MySQLServerStatus

type MySQLServerStatus struct {
	// Health of the MySQLServer instance
	Health string `json:"health,omitempty"`
}

MySQLServerStatus defines the observed state of MySQLServer

func (*MySQLServerStatus) DeepCopy

func (in *MySQLServerStatus) DeepCopy() *MySQLServerStatus

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

func (*MySQLServerStatus) DeepCopyInto

func (in *MySQLServerStatus) DeepCopyInto(out *MySQLServerStatus)

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