v1

package
v0.0.0-...-21f15ea Latest Latest
Warning

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

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

Documentation

Overview

Package v1 contains API Schema definitions for the k8s v1 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: "v1"}

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

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

	Spec   DatabaseHostSpec   `json:"spec,omitempty"`
	Status DatabaseHostStatus `json:"status,omitempty"`
}

DatabaseHost is the Schema for the databasehosts API

func (*DatabaseHost) DeepCopy

func (in *DatabaseHost) DeepCopy() *DatabaseHost

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

func (*DatabaseHost) DeepCopyInto

func (in *DatabaseHost) DeepCopyInto(out *DatabaseHost)

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

func (*DatabaseHost) DeepCopyObject

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

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

type DatabaseHostList

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

DatabaseHostList contains a list of DatabaseHost

func (*DatabaseHostList) DeepCopy

func (in *DatabaseHostList) DeepCopy() *DatabaseHostList

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

func (*DatabaseHostList) DeepCopyInto

func (in *DatabaseHostList) DeepCopyInto(out *DatabaseHostList)

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

func (*DatabaseHostList) DeepCopyObject

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

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

type DatabaseHostSpec

type DatabaseHostSpec struct {
	// Host is the hostname or IP address of the database host
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Host string `json:"host"`
	// Type is the type of database running on the host
	// +kubebuilder:validation:Enum=postgres;mysql
	// +kubebuilder:validation:Required
	Type DatabaseType `json:"type"`
	// Superuser is the name of the superuser for the database
	// +kubebuilder:validation:MinLength=1
	// +kubebuilder:validation:Required
	Superuser string `json:"superuser"`
	// Password is the password for the superuser
	// +optional
	Password string `json:"password,omitempty"`
	// PasswordSecretRef is a reference to a secret in the same namespace
	// that contains the password for the superuser
	// +optional
	PasswordSecretRef string `json:"passwordSecretRef,omitempty"`
	// Port is the port number for the database
	// +optional
	Port int32 `json:"port"`
}

DatabaseHostSpec defines the desired state of DatabaseHost

func (*DatabaseHostSpec) DeepCopy

func (in *DatabaseHostSpec) DeepCopy() *DatabaseHostSpec

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

func (*DatabaseHostSpec) DeepCopyInto

func (in *DatabaseHostSpec) DeepCopyInto(out *DatabaseHostSpec)

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

type DatabaseHostStatus

type DatabaseHostStatus struct {
	LastConnectionTime metav1.Time `json:"lastConnectionTime,omitempty"`
	ConnectionStatus   string      `json:"connectionStatus,omitempty"`
}

DatabaseHostStatus defines the observed state of DatabaseHost

func (*DatabaseHostStatus) DeepCopy

func (in *DatabaseHostStatus) DeepCopy() *DatabaseHostStatus

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

func (*DatabaseHostStatus) DeepCopyInto

func (in *DatabaseHostStatus) DeepCopyInto(out *DatabaseHostStatus)

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

type DatabaseType

type DatabaseType string
const (
	MySQL    DatabaseType = "mysql"
	Postgres DatabaseType = "postgres"
)

Jump to

Keyboard shortcuts

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