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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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