Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorFromStderr ¶
NewErrorFromStderr parses the given output from mysql-shell into an Error if one is present.
Types ¶
type Interface ¶
type Interface interface { IsClustered(ctx context.Context) bool // CreateCluster creates a new InnoDB cluster called // innodb.DefaultClusterName. CreateCluster(ctx context.Context, opts Options) (*innodb.ClusterStatus, error) // GetClusterStatus gets the status of the innodb.DefaultClusterName InnoDB // cluster. GetClusterStatus(ctx context.Context) (*innodb.ClusterStatus, error) // CheckInstanceState verifies the existing data on the instance (specified // by URI) does not prevent it from joining a cluster. CheckInstanceState(ctx context.Context, uri string) (*innodb.InstanceState, error) // AddInstanceToCluster adds the instance (specified by URI) the InnoDB // cluster. AddInstanceToCluster(ctx context.Context, uri string, opts Options) error // RejoinInstanceToCluster rejoins an instance (specified by URI) to the // InnoDB cluster. RejoinInstanceToCluster(ctx context.Context, uri string, opts Options) error // RemoveInstanceFromCluster removes an instance (specified by URI) to the // InnoDB cluster. RemoveInstanceFromCluster(ctx context.Context, uri string, opts Options) error // RebootClusterFromCompleteOutage recovers a cluster when all of its members // have failed. RebootClusterFromCompleteOutage(ctx context.Context) error }
Interface is an injectable interface for running mysqlsh commands.
Click to show internal directories.
Click to hide internal directories.