Documentation ¶
Index ¶
- Constants
- func BuildSpecification(ctf *naglfarv1.TestClusterTopologySpec, trs []*naglfarv1.TestResource, ...) (spec tiupSpec.Specification, control *naglfarv1.TestResourceStatus, err error)
- func IgnoreClusterDuplicated(err error) error
- func IgnoreClusterNotExist(err error) error
- type ClusterManager
- type ErrClusterDuplicated
- type ErrClusterNotExist
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 ¶
IgnoreClusterDuplicated returns nil on ClusterDuplicated errors All other values that are not NotFound errors or nil are returned unmodified.
func IgnoreClusterNotExist ¶
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 MakeClusterManager ¶
func MakeClusterManager(log logr.Logger, ctf *naglfarv1.TestClusterTopologySpec, trs []*naglfarv1.TestResource) (*ClusterManager, error)
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
Click to show internal directories.
Click to hide internal directories.