tiup

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerImage = "docker.io/mahjonp/base-image:latest"
)

Variables

This section is empty.

Functions

func BuildSpecification

func BuildSpecification(ctf *naglfarv1.TestClusterTopologySpec, trs []*naglfarv1.TestResource, dryRun bool) (
	spec tiupSpec.Specification, control *naglfarv1.TestResourceStatus, err error)

If dryRun is true, host uses the resource's name

func IgnoreClusterDuplicated

func IgnoreClusterDuplicated(err error) error

IgnoreClusterDuplicated returns nil on ClusterDuplicated errors All other values that are not NotFound errors or nil are returned unmodified.

func IgnoreClusterNotExist

func IgnoreClusterNotExist(err error) error

IgnoreClusterNotExist returns nil on IgnoreClusterNotExist errors All other values that are not NotFound errors or nil are returned unmodified.

Types

type ClusterManager

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

func (*ClusterManager) GenUnzipCommand

func (c *ClusterManager) GenUnzipCommand(filePath string, destDir string) string

func (*ClusterManager) InstallCluster

func (c *ClusterManager) InstallCluster(log logr.Logger, clusterName string, version naglfarv1.TiDBClusterVersion) error

func (*ClusterManager) UninstallCluster

func (c *ClusterManager) UninstallCluster(clusterName string) error

type ErrClusterDuplicated

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

func (ErrClusterDuplicated) Error

func (e ErrClusterDuplicated) Error() string

type ErrClusterNotExist

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

func (ErrClusterNotExist) Error

func (e ErrClusterNotExist) Error() string

Jump to

Keyboard shortcuts

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