v1beta1

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the mysql v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/previousnext/skpr/operator/pkg/apis/mysql +k8s:defaulter-gen=TypeMeta +groupName=mysql.skpr.io

Package v1beta1 contains API Schema definitions for the mysql v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/previousnext/skpr/operator/pkg/apis/mysql +k8s:defaulter-gen=TypeMeta +groupName=mysql.skpr.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "mysql.skpr.io", Version: "v1beta1"}

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

	// AddToScheme is required by pkg/client/...
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource is required by pkg/client/listers/...

Types

type Connection added in v0.4.0

type Connection struct {
	// ConfigMap which will be used for connectivity.
	ConfigMap ConnectionConfigMap `json:"configmap"`
	// Secret which will be used for connectivity.
	Secret ConnectionSecret `json:"secret"`
}

Connection defines how to connect to MySQL.

func (*Connection) DeepCopy added in v0.4.0

func (in *Connection) DeepCopy() *Connection

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

func (*Connection) DeepCopyInto added in v0.4.0

func (in *Connection) DeepCopyInto(out *Connection)

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

type ConnectionConfigMap added in v0.4.0

type ConnectionConfigMap struct {
	// Name of the ConfigMap.
	Name string `json:"name"`
	// ConfigMap keys used for connectivity.
	Keys ConnectionConfigMapKeys `json:"keys"`
}

ConnectionConfigMap defines connection information for MySQL.

func (*ConnectionConfigMap) DeepCopy added in v0.4.0

func (in *ConnectionConfigMap) DeepCopy() *ConnectionConfigMap

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

func (*ConnectionConfigMap) DeepCopyInto added in v0.4.0

func (in *ConnectionConfigMap) DeepCopyInto(out *ConnectionConfigMap)

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

type ConnectionConfigMapKeys added in v0.4.0

type ConnectionConfigMapKeys struct {
	// Database which was applied to the application for database connectivity.
	Database string `json:"database"`
	// Hostname which was applied to the application for database connectivity.
	Hostname string `json:"hostname"`
	// Port which was applied to the application for database connectivity.
	Port string `json:"port"`
}

ConnectionConfigMapKeys defines ConfigMap keys for MySQL connectivity.

func (*ConnectionConfigMapKeys) DeepCopy added in v0.4.0

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

func (*ConnectionConfigMapKeys) DeepCopyInto added in v0.4.0

func (in *ConnectionConfigMapKeys) DeepCopyInto(out *ConnectionConfigMapKeys)

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

type ConnectionSecret added in v0.4.0

type ConnectionSecret struct {
	// Name of the Secret.
	Name string `json:"name"`
	// Secret keys used for connectivity.
	Keys ConnectionSecretKeys `json:"keys"`
}

ConnectionSecret defines connection information for MySQL.

func (*ConnectionSecret) DeepCopy added in v0.4.0

func (in *ConnectionSecret) DeepCopy() *ConnectionSecret

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

func (*ConnectionSecret) DeepCopyInto added in v0.4.0

func (in *ConnectionSecret) DeepCopyInto(out *ConnectionSecret)

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

type ConnectionSecretKeys added in v0.4.0

type ConnectionSecretKeys struct {
	// Username which was applied to the application for database connectivity.
	Username string `json:"username"`
	// Password which was applied to the application for database connectivity.
	Password string `json:"password"`
}

ConnectionSecretKeys defines Secret keys for MySQL connectivity.

func (*ConnectionSecretKeys) DeepCopy added in v0.4.0

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

func (*ConnectionSecretKeys) DeepCopyInto added in v0.4.0

func (in *ConnectionSecretKeys) DeepCopyInto(out *ConnectionSecretKeys)

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

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 databaseclaims 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 DatabaseSpec

type DatabaseSpec struct {
	// Provisioner used to create databases.
	Provisioner string `json:"provisioner"`
	// Privileges which the application requires.
	Privileges []string `json:"privileges"`
}

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 {
	// Used for determining if an APIs information is up to date.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// Current state of the database being provisioned.
	Phase skprmetav1.Phase `json:"phase,omitempty"`
	// Connection details for the database.
	Connection DatabaseStatusConnection `json:"connection,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 DatabaseStatusConnection

type DatabaseStatusConnection struct {
	// Hostname used when connecting to the database.
	Hostname string `json:"hostname,omitempty"`
	// Port used when connecting to the database.
	Port int `json:"port,omitempty"`
	// Database used when connecting to the database.
	Database string `json:"database,omitempty"`
	// Username used when connecting to the database.
	Username string `json:"username,omitempty"`
	// Password used when connecting to the database.
	Password string `json:"password,omitempty"`
	// CA used when connecting to the database.
	CA string `json:"ca,omitempty"`
}

DatabaseStatusConnection for applications.

func (*DatabaseStatusConnection) DeepCopy

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

func (*DatabaseStatusConnection) DeepCopyInto

func (in *DatabaseStatusConnection) DeepCopyInto(out *DatabaseStatusConnection)

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

type Image added in v0.4.0

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

	Spec   ImageSpec   `json:"spec,omitempty"`
	Status ImageStatus `json:"status,omitempty"`
}

Image is the Schema for the images API +k8s:openapi-gen=true +kubebuilder:subresource:status

func (*Image) DeepCopy added in v0.4.0

func (in *Image) DeepCopy() *Image

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

func (*Image) DeepCopyInto added in v0.4.0

func (in *Image) DeepCopyInto(out *Image)

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

func (*Image) DeepCopyObject added in v0.4.0

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

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

type ImageList added in v0.4.0

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

ImageList contains a list of Image

func (*ImageList) DeepCopy added in v0.4.0

func (in *ImageList) DeepCopy() *ImageList

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

func (*ImageList) DeepCopyInto added in v0.4.0

func (in *ImageList) DeepCopyInto(out *ImageList)

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

func (*ImageList) DeepCopyObject added in v0.4.0

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

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

type ImageScheduled added in v0.4.0

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

	Spec   ImageScheduledSpec         `json:"spec,omitempty"`
	Status skprmetav1.ScheduledStatus `json:"status,omitempty"`
}

ImageScheduled is the Schema for the imagescheduleds API +k8s:openapi-gen=true +kubebuilder:subresource:status

func (*ImageScheduled) DeepCopy added in v0.4.0

func (in *ImageScheduled) DeepCopy() *ImageScheduled

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

func (*ImageScheduled) DeepCopyInto added in v0.4.0

func (in *ImageScheduled) DeepCopyInto(out *ImageScheduled)

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

func (*ImageScheduled) DeepCopyObject added in v0.4.0

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

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

type ImageScheduledList added in v0.4.0

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

ImageScheduledList contains a list of ImageScheduled

func (*ImageScheduledList) DeepCopy added in v0.4.0

func (in *ImageScheduledList) DeepCopy() *ImageScheduledList

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

func (*ImageScheduledList) DeepCopyInto added in v0.4.0

func (in *ImageScheduledList) DeepCopyInto(out *ImageScheduledList)

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

func (*ImageScheduledList) DeepCopyObject added in v0.4.0

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

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

type ImageScheduledSpec added in v0.4.0

type ImageScheduledSpec struct {
	Schedule skprmetav1.ScheduledSpec `json:"schedule"`
	// Template which will be used to trigger an image build.
	Template ImageSpec `json:"template"`
}

ImageScheduledSpec defines the desired state of ImageScheduled

func (*ImageScheduledSpec) DeepCopy added in v0.4.0

func (in *ImageScheduledSpec) DeepCopy() *ImageScheduledSpec

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

func (*ImageScheduledSpec) DeepCopyInto added in v0.4.0

func (in *ImageScheduledSpec) DeepCopyInto(out *ImageScheduledSpec)

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

type ImageSpec added in v0.4.0

type ImageSpec struct {
	// Connection details for the mysql image.
	Connection Connection `json:"connection"`
	// Rules for the mysql image.
	Rules ImageSpecRules `json:"rules"`
	// Destinations to push the  mysql image to.
	Destinations []string `json:"destinations"`
}

ImageSpec defines the desired state of Image

func (*ImageSpec) DeepCopy added in v0.4.0

func (in *ImageSpec) DeepCopy() *ImageSpec

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

func (*ImageSpec) DeepCopyInto added in v0.4.0

func (in *ImageSpec) DeepCopyInto(out *ImageSpec)

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

type ImageSpecRules added in v0.4.0

type ImageSpecRules struct {
	Rewrite map[string]ImageSpecRulesRewrite `yaml:"rewrite" json:"rewrite"`
	NoData  []string                         `yaml:"nodata"  json:"nodata"`
	Ignore  []string                         `yaml:"ignore"  json:"ignore"`
}

ImageSpecRules for configuring dump. This has been lifted from the github.com/skpr/mtk/dump project. We have copied the configuration into this API package so Kubebuilder can generate the required DeepCopy() functions.

func (*ImageSpecRules) DeepCopy added in v0.4.0

func (in *ImageSpecRules) DeepCopy() *ImageSpecRules

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

func (*ImageSpecRules) DeepCopyInto added in v0.4.0

func (in *ImageSpecRules) DeepCopyInto(out *ImageSpecRules)

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

type ImageSpecRulesRewrite added in v0.4.0

type ImageSpecRulesRewrite map[string]string

ImageSpecRulesRewrite rules for while dumping a database.

func (ImageSpecRulesRewrite) DeepCopy added in v0.4.0

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

func (ImageSpecRulesRewrite) DeepCopyInto added in v0.4.0

func (in ImageSpecRulesRewrite) DeepCopyInto(out *ImageSpecRulesRewrite)

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

type ImageStatus added in v0.4.0

type ImageStatus struct {
	// Current state of the database image.
	Phase skprmetav1.Phase `json:"phase,omitempty"`
	// Time which the MySQL image started building
	StartTime *metav1.Time `json:"startTime,omitempty"`
	// Time which the MySQL image finished building
	CompletionTime *metav1.Time `json:"completionTime,omitempty"`
}

ImageStatus defines the observed state of Image

func (*ImageStatus) DeepCopy added in v0.4.0

func (in *ImageStatus) DeepCopy() *ImageStatus

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

func (*ImageStatus) DeepCopyInto added in v0.4.0

func (in *ImageStatus) DeepCopyInto(out *ImageStatus)

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