v1alpha1

package
Version: v0.0.0-...-85de6a1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the doop v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=doop.do.co

Package v1alpha1 contains API Schema definitions for the doop v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=doop.do.co

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "doop.do.co", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

func DatabaseConnectionToSringData

func DatabaseConnectionToSringData(connection *godo.DatabaseConnection) map[string]string

DatabaseConnectionToSringData converts a godo.DatabaseConnection to a map[string]string for secret contents.

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 +k8s:openapi-gen=true +kubebuilder:subresource:status

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 DatabaseMaintenanceWindow

type DatabaseMaintenanceWindow struct {
	Day         string   `json:"day,omitempty"`
	Hour        string   `json:"hour,omitempty"`
	Pending     bool     `json:"pending,omitempty"`
	Description []string `json:"description,omitempty"`
}

DatabaseMaintenanceWindow represents the maintenance_window of a database cluster +k8s:openapi-gen=true https://github.com/digitalocean/godo/blob/master/databases.go#L110

func (*DatabaseMaintenanceWindow) DeepCopy

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

func (*DatabaseMaintenanceWindow) DeepCopyInto

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

func (*DatabaseMaintenanceWindow) FromDO

FromDO converts the Kubernetes object to a DO object.

type DatabaseSpec

type DatabaseSpec struct {
	Name               string   `json:"name,omitempty"`
	Engine             string   `json:"engine,omitempty"`
	Version            string   `json:"version,omitempty"`
	Size               string   `json:"size,omitempty"`
	Region             string   `json:"region,omitempty"`
	NumNodes           int      `json:"numNodes,omitempty"`
	PrivateNetworkUuid string   `json:"privateNetworkUuid"`
	Tags               []string `json:"tags,omitempty"`
}

DatabaseSpec defines the desired state of Database +k8s:openapi-gen=true https://github.com/digitalocean/godo/blob/master/databases.go#L125

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.

func (*DatabaseSpec) ToDO

ToDO converts a Kubernetes object to DO object.

type DatabaseStatus

type DatabaseStatus struct {
	ID                 string                     `json:"id,omitempty"`
	Name               string                     `json:"name,omitempty"`
	Engine             string                     `json:"engine,omitempty"`
	Version            string                     `json:"version,omitempty"`
	Users              []DatabaseUser             `json:"users,omitempty"`
	NumNodes           int                        `json:"numNodes,omitempty"`
	Size               string                     `json:"size,omitempty"`
	DbNames            []string                   `json:"dbNames,omitempty"`
	Region             string                     `json:"region,omitempty"`
	Status             string                     `json:"status,omitempty"`
	MaintenanceWindow  *DatabaseMaintenanceWindow `json:"maintenanceWindow,omitempty"`
	CreatedAt          *metav1.Time               `json:"createdAt,omitempty"`
	PrivateNetworkUuid string                     `json:"privateNetworkUuid,omitempty"`
	Tags               []string                   `json:"tags,omitempty"`
}

DatabaseStatus defines the observed state of Database +k8s:openapi-gen=true https://github.com/digitalocean/godo/blob/master/databases.go#L68

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.

func (*DatabaseStatus) FromDO

func (s *DatabaseStatus) FromDO(d *godo.Database)

FromDO converts the Kubernetes object to a DO object.

type DatabaseUser

type DatabaseUser struct {
	Name     string `json:"name,omitempty"`
	Role     string `json:"role,omitempty"`
	Password string `json:"password,omitempty"`
}

DatabaseUser represents a user in the database +k8s:openapi-gen=true https://github.com/digitalocean/godo/blob/master/databases.go#L103

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) FromDO

func (dbu *DatabaseUser) FromDO(doDbUser godo.DatabaseUser)

FromDO converts the Kubernetes object to a DO object.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL