Documentation
¶
Index ¶
- Variables
- func New(e k8sexec.Interface, uri string) *mysqlsh
- func URI(user, password, host string) string
- type CreateClusterSetOptions
- type ExecOptions
- type MysqlshExec
- func (m *MysqlshExec) ClusterSetStatusWithExec(ctx context.Context) (clusterset.Status, error)
- func (m *MysqlshExec) ClusterStatusWithExec(ctx context.Context) (innodbcluster.Status, error)
- func (m *MysqlshExec) CreateClusterSetWithExec(ctx context.Context, name string, opts *CreateClusterSetOptions) error
- func (m *MysqlshExec) CreateReplicaClusterWithExec(ctx context.Context, clusterName, recoveryMethod, endpoint string, port int32) error
- func (m *MysqlshExec) DoesClusterExistWithExec(ctx context.Context, clusterName string) bool
- func (m *MysqlshExec) ForcePrimaryClusterWithExec(ctx context.Context, clusterName string) error
- func (m *MysqlshExec) Ping(ctx context.Context) error
- func (m *MysqlshExec) RebootClusterFromCompleteOutageWithExec(ctx context.Context, clusterName string) error
- func (m *MysqlshExec) RemoveInstanceWithExec(ctx context.Context, clusterName, instance string) error
- func (m *MysqlshExec) RemoveReplicaClusterWithExec(ctx context.Context, clusterName string, force bool) error
- func (m *MysqlshExec) Rescan80WithExec(ctx context.Context, clusterName string) error
- func (m *MysqlshExec) Rescan84WithExec(ctx context.Context, clusterName string) error
- func (m *MysqlshExec) SetPrimaryClusterWithExec(ctx context.Context, clusterName string) error
- func (m *MysqlshExec) SetPrimaryInstanceWithExec(ctx context.Context, clusterName, instance string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEndpointUnreachable = errors.New("endpoint unreachable") ErrAccessDenied = errors.New("access denied") )
View Source
var ErrMetadataExistsButGRNotActive = errors.New("MYSQLSH 51314: metadata exists, instance belongs to that metadata, but GR is not active")
Functions ¶
Types ¶
type CreateClusterSetOptions ¶ added in v1.2.0
type CreateClusterSetOptions struct {
SSLMode apiv1.ClusterSetSSLMode
}
func (*CreateClusterSetOptions) Default ¶ added in v1.2.0
func (o *CreateClusterSetOptions) Default()
type ExecOptions ¶ added in v1.2.0
type ExecOptions struct {
Pod *corev1.Pod
ContainerName string
Client clientcmd.Client
Stdout io.Writer
Stderr io.Writer
}
func (*ExecOptions) Defaults ¶ added in v1.2.0
func (o *ExecOptions) Defaults()
func (*ExecOptions) Validate ¶ added in v1.2.0
func (o *ExecOptions) Validate() error
type MysqlshExec ¶ added in v1.2.0
type MysqlshExec struct {
// contains filtered or unexported fields
}
func NewWithExec ¶ added in v0.6.0
func NewWithExec(uri string, opts *ExecOptions) (*MysqlshExec, error)
func (*MysqlshExec) ClusterSetStatusWithExec ¶ added in v1.2.0
func (m *MysqlshExec) ClusterSetStatusWithExec(ctx context.Context) (clusterset.Status, error)
func (*MysqlshExec) ClusterStatusWithExec ¶ added in v1.2.0
func (m *MysqlshExec) ClusterStatusWithExec(ctx context.Context) (innodbcluster.Status, error)
func (*MysqlshExec) CreateClusterSetWithExec ¶ added in v1.2.0
func (m *MysqlshExec) CreateClusterSetWithExec(ctx context.Context, name string, opts *CreateClusterSetOptions) error
func (*MysqlshExec) CreateReplicaClusterWithExec ¶ added in v1.2.0
func (*MysqlshExec) DoesClusterExistWithExec ¶ added in v1.2.0
func (m *MysqlshExec) DoesClusterExistWithExec(ctx context.Context, clusterName string) bool
func (*MysqlshExec) ForcePrimaryClusterWithExec ¶ added in v1.2.0
func (m *MysqlshExec) ForcePrimaryClusterWithExec(ctx context.Context, clusterName string) error
func (*MysqlshExec) RebootClusterFromCompleteOutageWithExec ¶ added in v1.2.0
func (m *MysqlshExec) RebootClusterFromCompleteOutageWithExec(ctx context.Context, clusterName string) error
func (*MysqlshExec) RemoveInstanceWithExec ¶ added in v1.2.0
func (m *MysqlshExec) RemoveInstanceWithExec(ctx context.Context, clusterName, instance string) error
func (*MysqlshExec) RemoveReplicaClusterWithExec ¶ added in v1.2.0
func (*MysqlshExec) Rescan80WithExec ¶ added in v1.2.0
func (m *MysqlshExec) Rescan80WithExec(ctx context.Context, clusterName string) error
func (*MysqlshExec) Rescan84WithExec ¶ added in v1.2.0
func (m *MysqlshExec) Rescan84WithExec(ctx context.Context, clusterName string) error
func (*MysqlshExec) SetPrimaryClusterWithExec ¶ added in v1.2.0
func (m *MysqlshExec) SetPrimaryClusterWithExec(ctx context.Context, clusterName string) error
func (*MysqlshExec) SetPrimaryInstanceWithExec ¶ added in v1.2.0
func (m *MysqlshExec) SetPrimaryInstanceWithExec(ctx context.Context, clusterName, instance string) error
Click to show internal directories.
Click to hide internal directories.