package
0.0.0-20200528063454-c2ba8ab4e383
Repository: https://github.com/cuijxin/mysql-operator.git
Documentation: pkg.go.dev

# Functions

GetOperatorVersionLabel get the specified operator version label on the label map.
Resource gets a MySQL Operator GroupResource for a specified resource.
SetOperatorVersionLabel sets the specified operator version label on the label map.

# Constants

BackupCRDResourcePlural defines the plural custom resource name for MySQL backups.
BackupCRDResourceSingular defines the singular custom resource name for MySQL backups.
BackupPhaseComplete means the backup has terminated successfully.
BackupPhaseFailed means the backup has terminated with an error.
BackupPhaseNew means that the Backup hasn't yet been processed.
BackupPhaseScheduled means that the Backup has been scheduled on an appropriate replica.
BackupPhaseStarted means the backup is in progress.
BackupPhaseUnknown means that the backup hasn't yet been processed.
BackupSchedulePhaseEnabled means the backup schedule has been validated and will now be triggering backups according to the schedule spec.
BackupSchedulePhaseFailedValidation means the backup schedule has failed the controller's validations and therefore will not trigger backups.
BackupSchedulePhaseNew means the backup schedule has been created but not yet processed by the backup schedule controller.
ClusterCRDResourcePlural defines the custom resource name for mysqlclusters.
GroupName is the group name for the MySQL Operator API.
MySQLBackupCRDResourceKind is the Kind of a MySQLBackup.
MySQLBackupScheduleCRDResourceKind is the Kind of a MySQLBackupSchedule.
MySQLClusterCRDResourceKind is the Kind of a MySQLCluster.
MySQLClusterFailed means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).
MySQLClusterPending means the cluster has been accepted by the system, but one or more of the services or statefulsets has not been started.
MySQLClusterRunning means the cluster has been created, all of it's required components are present, and there is at least one endpoint that mysql client can connect to.
MySQLClusterSucceeded means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.
MySQLClusterUnknown means that for some reason the state of the cluster could not be obtained, typically due to an error in communicating with the host of the pod.
MySQLRestoreCRDResourceKind is the Kind of a MySQLRestore.
ProviderS3 denotes S3 compatability backed storage provider.
RestoreCRDResourcePlural defines the plural custom resource name for MySQLRestores.
RestoreCRDResourceSingular defines the singular custom resource name for MySQLRestores.
RestorePhaseComplete means the restore has terminated successfully.
RestorePhaseFailed means the Restore has terminated with an error.
RestorePhaseNew means that the restore hasn't yet been processed.
RestorePhaseScheduled means that the restore has been scheduled on an appropriate replica.
RestorePhaseStarted means the restore is in progress.
RestorePhaseUnknown means that the restore hasn't yet been processed.

# Variables

AddToScheme applies the SchemeBuilder functions to a specified scheme.
ExecutorProviders denotes the list of valid backup executor providers.
MySQLClusterValidPhases denote the life-cycle states a cluster can be in.
SchemeBuilder collects the scheme builder functions for the MySQL Operator API.
SchemeGroupVersion is the GroupVersion for the MySQL Operator API.

# Structs

BackupOutcome describes the location of a MySQL Backup.
BackupScheduleSpec defines the specification for a MySQL backup schedule.
BackupSpec defines the specification for a MySQL backup.
BackupStatus captures the current status of a MySQL backup.
Executor represents the configuration of the tool performing the backup.
MySQLBackup is a MySQL Operator resource that represents a backup of a MySQL cluster.
MySQLBackupList is a list of MySQLBackups.
MySQLBackupSchedule is a MySQL Operator resource that represents a backup schedule of a MySQL cluster.
MySQLBackupScheduleList is a list of MySQLBackupSchedules.
MySQLCluster represents a cluster spec and associated metadata +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object.
MySQLClusterList is a placeholder type for a list of MySQL clusters +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object.
MySQLClusterSpec defines the attributes a user can specify when creating a cluster.
MySQLClusterStatus defines the current status of a MySQL cluster propagating useful information back to the cluster admin +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object.
MySQLRestore is a MySQL Operator resource that represents the restoration of backup of a MySQL cluster.
MySQLRestoreList is a list of MySQLRestores.
RestoreSpec defines the specification for a restore of a MySQL backup.
RestoreStatus captures the current status of a MySQL restore.
ScheduleStatus captures the current state of a MySQL backup schedule.
Storage defines the configuration for storing a MySQL backup to a storage service.

# Type aliases

BackupPhase represents the current life-cycle phase of a MySQLBackup.
BackupSchedulePhase is a string representation of the lifecycle phase of a backup schedule.
MySQLClusterPhase describes the state of the cluster.
RestorePhase represents the current life-cycle phase of a MySQLRestore.