v1

package
v0.0.0-...-87ef7df Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: Apache-2.0 Imports: 5 Imported by: 34

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=cr.mysqloperator.grtl.github.com

Index

Constants

View Source
const (
	DefaultReplicas int32 = 2
	DefaultPort     int32 = 3306
	DefaultImage          = "mysql:latest"
)

Default values for optional fields.

Variables

View Source
var (
	// SchemeBuilder with MySQL Cluster types added
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme exported for convenience
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: cr.GroupName, Version: "v1"}

SchemeGroupVersion with MySQL Cluster custom resource group

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type MySQLBackupInstance

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

	Spec   MySQLBackupInstanceSpec   `json:"spec"`
	Status MySQLBackupInstanceStatus `json:"status,omitempty"`
}

MySQLBackupInstance represents an already created backup.

func (*MySQLBackupInstance) DeepCopy

func (in *MySQLBackupInstance) DeepCopy() *MySQLBackupInstance

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

func (*MySQLBackupInstance) DeepCopyInto

func (in *MySQLBackupInstance) DeepCopyInto(out *MySQLBackupInstance)

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

func (*MySQLBackupInstance) DeepCopyObject

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

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

type MySQLBackupInstanceList

type MySQLBackupInstanceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []MySQLBackupInstance `json:"items"`
}

MySQLBackupInstanceList represents a list of MySQLBackupInstances.

func (*MySQLBackupInstanceList) DeepCopy

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

func (*MySQLBackupInstanceList) DeepCopyInto

func (in *MySQLBackupInstanceList) DeepCopyInto(out *MySQLBackupInstanceList)

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

func (*MySQLBackupInstanceList) DeepCopyObject

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

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

type MySQLBackupInstanceSpec

type MySQLBackupInstanceSpec struct {
	Schedule string `json:"schedule"`
	Cluster  string `json:"cluster"`
}

MySQLBackupInstanceSpec stores the properties of a backup.

func (*MySQLBackupInstanceSpec) DeepCopy

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

func (*MySQLBackupInstanceSpec) DeepCopyInto

func (in *MySQLBackupInstanceSpec) DeepCopyInto(out *MySQLBackupInstanceSpec)

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

type MySQLBackupInstanceStatus

type MySQLBackupInstanceStatus struct {
	Phase MySQLBackupInstanceStatusPhase `json:"phase"`
}

MySQLBackupInstanceStatus represents a backup instance status.

func (*MySQLBackupInstanceStatus) DeepCopy

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

func (*MySQLBackupInstanceStatus) DeepCopyInto

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

type MySQLBackupInstanceStatusPhase

type MySQLBackupInstanceStatusPhase string

MySQLBackupInstanceStatusPhase represents a backup instance phase.

const (
	MySQLBackupScheduled MySQLBackupInstanceStatusPhase = "Scheduled"
	MySQLBackupStarted   MySQLBackupInstanceStatusPhase = "Started"
	MySQLBackupFailed    MySQLBackupInstanceStatusPhase = "Failed"
	MySQLBackupCompleted MySQLBackupInstanceStatusPhase = "Completed"
)

Available MySQLBackupInstanceStatusPhase phases.

type MySQLBackupSchedule

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

	Spec MySQLBackupScheduleSpec `json:"spec"`
}

MySQLBackupSchedule represents a backup schedule for a MySQL cluster.

func (*MySQLBackupSchedule) DeepCopy

func (in *MySQLBackupSchedule) DeepCopy() *MySQLBackupSchedule

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

func (*MySQLBackupSchedule) DeepCopyInto

func (in *MySQLBackupSchedule) DeepCopyInto(out *MySQLBackupSchedule)

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

func (*MySQLBackupSchedule) DeepCopyObject

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

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

type MySQLBackupScheduleList

type MySQLBackupScheduleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []MySQLBackupSchedule `json:"items"`
}

MySQLBackupScheduleList represents a list of MySQLBackupSchedules.

func (*MySQLBackupScheduleList) DeepCopy

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

func (*MySQLBackupScheduleList) DeepCopyInto

func (in *MySQLBackupScheduleList) DeepCopyInto(out *MySQLBackupScheduleList)

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

func (*MySQLBackupScheduleList) DeepCopyObject

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

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

type MySQLBackupScheduleSpec

type MySQLBackupScheduleSpec struct {
	Cluster string            `json:"cluster"`
	Time    string            `json:"time"`
	Storage resource.Quantity `json:"storage"`
}

MySQLBackupScheduleSpec stores the properties of a backup schedule.

func (*MySQLBackupScheduleSpec) DeepCopy

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

func (*MySQLBackupScheduleSpec) DeepCopyInto

func (in *MySQLBackupScheduleSpec) DeepCopyInto(out *MySQLBackupScheduleSpec)

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

type MySQLCluster

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

	Spec   MySQLClusterSpec   `json:"spec"`
	Status MySQLClusterStatus `json:"status,omitempty"`
}

MySQLCluster is a representation of MySQL Cluster.

func (*MySQLCluster) DeepCopy

func (in *MySQLCluster) DeepCopy() *MySQLCluster

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

func (*MySQLCluster) DeepCopyInto

func (in *MySQLCluster) DeepCopyInto(out *MySQLCluster)

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

func (*MySQLCluster) DeepCopyObject

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

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

func (*MySQLCluster) WithDefaults

func (c *MySQLCluster) WithDefaults()

WithDefaults fills cluster missing fields with their default values.

type MySQLClusterList

type MySQLClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []MySQLCluster `json:"items"`
}

MySQLClusterList represents a list of MySQL Clusters

func (*MySQLClusterList) DeepCopy

func (in *MySQLClusterList) DeepCopy() *MySQLClusterList

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

func (*MySQLClusterList) DeepCopyInto

func (in *MySQLClusterList) DeepCopyInto(out *MySQLClusterList)

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

func (*MySQLClusterList) DeepCopyObject

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

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

type MySQLClusterSpec

type MySQLClusterSpec struct {
	// Secret is the name of Kubernetes secret containing the password.
	Secret string `json:"secret"`
	// Storage indicates the size of the Persistent Volume Claim for each replica.
	Storage resource.Quantity `json:"storage"`
	// Number of mysql instances in the cluster.
	Replicas int32 `json:"replicas,omitempty"`
	// Port specifies port for MySQL server.
	Port int32 `json:"port,omitempty"`
	// Image allows to specify mysql image
	Image string `json:"image,omitempty"`
	// FromBackup lets you specify the backup name to restore the cluster from.
	FromBackup string `json:"fromBackup,omitempty"`
}

MySQLClusterSpec stores the properties of a MySQL Cluster.

func (*MySQLClusterSpec) DeepCopy

func (in *MySQLClusterSpec) DeepCopy() *MySQLClusterSpec

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

func (*MySQLClusterSpec) DeepCopyInto

func (in *MySQLClusterSpec) DeepCopyInto(out *MySQLClusterSpec)

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

type MySQLClusterStatus

type MySQLClusterStatus struct {
	State   string `json:"state,omitempty"`
	Message string `json:"message,omitempty"`
}

MySQLClusterStatus represents a cluster's status.

func (*MySQLClusterStatus) DeepCopy

func (in *MySQLClusterStatus) DeepCopy() *MySQLClusterStatus

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

func (*MySQLClusterStatus) DeepCopyInto

func (in *MySQLClusterStatus) DeepCopyInto(out *MySQLClusterStatus)

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