manager

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AlreadyPrimaryClusterError = errors.New("already the primary cluster")

Functions

func IsUnreachableError

func IsUnreachableError(err error) bool

func New

func New(ctx context.Context, pcs *apiv1.PerconaServerMySQLClusterSet, opts *ManagerOptions) (*mysqlshellClusterSetManager, error)

Types

type ClusterSetManagerError

type ClusterSetManagerError struct {
	// contains filtered or unexported fields
}

func AsManagerError

func AsManagerError(err error) *ClusterSetManagerError

func NewAccessDeniedError

func NewAccessDeniedError() *ClusterSetManagerError

NewAccessDeniedError returns an error indicating that the clusterset credentials were rejected by the primary cluster.

func NewGenericError

func NewGenericError(message string) *ClusterSetManagerError

NewGenericError returns an error for any other cluster set manager failure.

func NewUnreachableError

func NewUnreachableError() *ClusterSetManagerError

NewUnreachableError returns an error indicating that no endpoint of the primary cluster could be reached.

func (*ClusterSetManagerError) Error

func (e *ClusterSetManagerError) Error() string

func (*ClusterSetManagerError) Message

func (e *ClusterSetManagerError) Message() string

func (*ClusterSetManagerError) Reason

func (e *ClusterSetManagerError) Reason() string

type ManagerOptions

type ManagerOptions struct {
	Client    client.Client
	ClientCmd clientcmd.Client
	Stdout    io.Writer
	Stderr    io.Writer
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL