task

package
v0.0.0-...-a027a2a Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CheckToolsPathDir = "/tmp/tiup"
)

place the check utilities are stored

Variables

View Source
var (
	CheckTypeSystemInfo   = "insight"
	CheckTypeSystemLimits = "limits"
	CheckTypeSystemConfig = "system"
	CheckTypePort         = "port"
	CheckTypeService      = "service"
	CheckTypePackage      = "package"
	CheckTypePartitions   = "partitions"
	CheckTypeFIO          = "fio"
	CheckTypePermission   = "permission"
)

the check types

View Source
var (
	// ErrUnsupportedRollback means the task do not support rollback.
	ErrUnsupportedRollback = stderrors.New("unsupported rollback")
	// ErrNoExecutor means not being able to get the executor.
	ErrNoExecutor = stderrors.New("no executor")
	// ErrNoOutput means not being able to get the output of host.
	ErrNoOutput = stderrors.New("no outputs available")
)
View Source
var DBNAME string
View Source
var DMSInfo struct {
	SourceEndpointArn      string
	TargetEndpointArn      string
	ReplicationInstanceArn string
}
View Source
var (

	// ErrEnvInitFailed is ErrEnvInitFailed
	ErrEnvInitFailed = errNSEnvInit.NewType("failed")
)
View Source
var SqlServerHost string

Functions

func ExecuteDBInstance

func ExecuteDBInstance(texecutor ctxt.Executor, ctx context.Context, clusterName, clusterType, subClusterType string, doWhenNotFound *func() error, doWhenFound *func() error) error

func ExistsDMSResource

func ExistsDMSResource(clusterType, subClusterType, clusterName, resourceName string, executor ctxt.Executor, ctx context.Context) bool

func ExistsELBResource

func ExistsELBResource(executor ctxt.Executor, ctx context.Context, clusterType, subClusterType, clusterName, resourceName string) bool

func ExistsResource

func ExistsResource(clusterType, subClusterType, clusterName, resourceName string, executor ctxt.Executor, ctx context.Context) bool

func GetWSExecutor

func GetWSExecutor(texecutor ctxt.Executor, ctx context.Context, clusterName, clusterType, user, keyFile string) (*ctxt.Executor, error)

func SearchTiDBNode

func SearchTiDBNode(clusterComponents []TiDBClusterComponent, host string) string

func SearchVPCName

func SearchVPCName(executor *ctxt.Executor, ctx context.Context, clusterKeyWord string) (*[]map[string]string, error)

func WaitDBInstanceUntilActive

func WaitDBInstanceUntilActive(texecutor ctxt.Executor, ctx context.Context, clusterName string) error

Types

type ARNComponent

type ARNComponent struct {
	ComponentType string
	ComponentName string
	ComponentID   string
	ImageID       string
	InstanceName  string
	KeyName       string
	State         string
	CIDR          string
	Region        string
	Zone          string
}

type AcceptVPCPeering

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

func (*AcceptVPCPeering) Execute

func (c *AcceptVPCPeering) Execute(ctx context.Context) error

Execute implements the Task interface

func (*AcceptVPCPeering) Rollback

func (c *AcceptVPCPeering) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*AcceptVPCPeering) String

func (c *AcceptVPCPeering) String() string

String implements the fmt.Stringer interface

type AccepterVpcInfo

type AccepterVpcInfo struct {
	VpcId string `json:"VpcId"`
}

type Attachment

type Attachment struct {
	State string `json:"State"`
	VpcId string `json:"VpcId"`
}

type AvailabilityZones

type AvailabilityZones struct {
	Zones []RegionZone `json:"AvailabilityZones"`
}

type BackupComponent

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

BackupComponent is used to copy all files related the specific version a component to the target directory of path

func (*BackupComponent) Execute

func (c *BackupComponent) Execute(ctx context.Context) error

Execute implements the Task interface

func (*BackupComponent) Rollback

func (c *BackupComponent) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*BackupComponent) String

func (c *BackupComponent) String() string

String implements the fmt.Stringer interface

type Builder

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

Builder is used to build TiUP task

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns a *Builder instance

func (*Builder) AcceptVPCPeering

func (b *Builder) AcceptVPCPeering(pexecutor *ctxt.Executor) *Builder

func (*Builder) BackupComponent

func (b *Builder) BackupComponent(component, fromVer string, host, deployDir string) *Builder

BackupComponent appends a BackupComponent task to the current task collection

func (*Builder) Build

func (b *Builder) Build() Task

Build returns a task that contains all tasks appended by previous operation

func (*Builder) BuildAsStep

func (b *Builder) BuildAsStep(prefix string) *StepDisplay

BuildAsStep returns a task that is wrapped by a StepDisplay. The task will print single line progress.

func (*Builder) CheckSys

func (b *Builder) CheckSys(host, dir, checkType string, topo *spec.Specification, opt *operator.CheckOptions) *Builder

CheckSys checks system information of deploy server

func (*Builder) ClusterOperate

func (b *Builder) ClusterOperate(
	spec *spec.Specification,
	op operator.Operation,
	options operator.Options,
	tlsCfg *tls.Config,
) *Builder

ClusterOperate appends a cluster operation task. All the UserSSH needed must be init first.

func (*Builder) ClusterSSH

func (b *Builder) ClusterSSH(
	topo spec.Topology,
	deployUser string, sshTimeout, exeTimeout uint64,
	proxyHost string, proxyPort int, proxyUser, proxyPassword, proxyKeyFile, proxyPassphrase string, proxySSHTimeout uint64,
	sshType, defaultSSHType executor.SSHType,
) *Builder

ClusterSSH init all UserSSH need for the cluster.

func (*Builder) CopyComponent

func (b *Builder) CopyComponent(component, os, arch string,
	version string,
	srcPath, dstHost, dstDir string,
) *Builder

CopyComponent appends a CopyComponent task to the current task collection

func (*Builder) CopyFile

func (b *Builder) CopyFile(src, dst, server string, download bool, limit int) *Builder

CopyFile appends a CopyFile task to the current task collection

func (*Builder) CreateAurora

func (b *Builder) CreateAurora(pexecutor *ctxt.Executor, subClusterType string, awsAuroraConfigs *spec.AwsAuroraConfigs, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateBasicResource

func (b *Builder) CreateBasicResource(pexecutor *ctxt.Executor, subClusterType string, isPrivate bool, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateCloudFormation

func (b *Builder) CreateCloudFormation(pexecutor *ctxt.Executor, awsCloudFormationConfigs *spec.AwsCloudFormationConfigs, cloudFormationType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateDBCluster

func (b *Builder) CreateDBCluster(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateDBClusterParameterGroup

func (b *Builder) CreateDBClusterParameterGroup(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateDBInstance

func (b *Builder) CreateDBInstance(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateDBParameterGroup

func (b *Builder) CreateDBParameterGroup(pexecutor *ctxt.Executor, subClusterType, groupFamily string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateDBSubnetGroup

func (b *Builder) CreateDBSubnetGroup(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateDMNodes

func (b *Builder) CreateDMNodes(pexecutor *ctxt.Executor, subClusterType string, awsTopoConfigs *spec.AwsTopoConfigs, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateDMSInstance

func (b *Builder) CreateDMSInstance(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateDMSService

func (b *Builder) CreateDMSService(pexecutor *ctxt.Executor, subClusterType string, awsDMSConfigs *spec.AwsDMSConfigs, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateDMSSourceEndpoint

func (b *Builder) CreateDMSSourceEndpoint(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateDMSSubnetGroup

func (b *Builder) CreateDMSSubnetGroup(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateDMSTargetEndpoint

func (b *Builder) CreateDMSTargetEndpoint(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateDMSTask

func (b *Builder) CreateDMSTask(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateInternetGateway

func (b *Builder) CreateInternetGateway(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateMS

func (b *Builder) CreateMS(pexecutor *ctxt.Executor, subClusterType string, awsMSConfigs *spec.AwsMSConfigs, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateNLB

func (b *Builder) CreateNLB(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateNLBListener

func (b *Builder) CreateNLBListener(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateNetwork

func (b *Builder) CreateNetwork(pexecutor *ctxt.Executor, subClusterType string, isPrivate bool, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreatePDNodes

func (b *Builder) CreatePDNodes(pexecutor *ctxt.Executor, subClusterType string, awsTopoConfigs *spec.AwsTopoConfigs, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateRouteTable

func (b *Builder) CreateRouteTable(pexecutor *ctxt.Executor, subClusterType string, isPrivate bool, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateRouteTgw

func (b *Builder) CreateRouteTgw(pexecutor *ctxt.Executor, subClusterType string, subClusterTypes []string) *Builder

func (*Builder) CreateSecurityGroup

func (b *Builder) CreateSecurityGroup(pexecutor *ctxt.Executor, subClusterType string, isPrivate bool, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateSqlServer

func (b *Builder) CreateSqlServer(pexecutor *ctxt.Executor, subClusterType string, awsMSConfigs *spec.AwsMSConfigs, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateTargetGroup

func (b *Builder) CreateTargetGroup(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateTiCDCNodes

func (b *Builder) CreateTiCDCNodes(pexecutor *ctxt.Executor, subClusterType string, awsTopoConfigs *spec.AwsTopoConfigs, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateTiDBCluster

func (b *Builder) CreateTiDBCluster(pexecutor *ctxt.Executor, subClusterType string, awsTopoConfigs *spec.AwsTopoConfigs, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateTiDBNLB

func (b *Builder) CreateTiDBNLB(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateTiDBNodes

func (b *Builder) CreateTiDBNodes(pexecutor *ctxt.Executor, subClusterType string, awsTopoConfigs *spec.AwsTopoConfigs, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateTiKVNodes

func (b *Builder) CreateTiKVNodes(pexecutor *ctxt.Executor, subClusterType string, awsTopoConfigs *spec.AwsTopoConfigs, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateTransitGateway

func (b *Builder) CreateTransitGateway(pexecutor *ctxt.Executor) *Builder

func (*Builder) CreateTransitGatewayVpcAttachment

func (b *Builder) CreateTransitGatewayVpcAttachment(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) CreateVpc

func (b *Builder) CreateVpc(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateWorkstation

func (b *Builder) CreateWorkstation(pexecutor *ctxt.Executor, subClusterType string, awsWSConfigs *spec.AwsWSConfigs, clusterInfo *ClusterInfo) *Builder

func (*Builder) CreateWorkstationCluster

func (b *Builder) CreateWorkstationCluster(pexecutor *ctxt.Executor, subClusterType string, awsWSConfigs *spec.AwsWSConfigs, clusterInfo *ClusterInfo) *Builder

func (*Builder) Deploy

func (b *Builder) Deploy(user, host string) *Builder

GcloudCreateInstance appends a GcloudCreateInstance task to the current task collection

func (*Builder) DeployPDNS

func (b *Builder) DeployPDNS(pexecutor *ctxt.Executor, subClusterType string, awsWSConfigs *spec.AwsWSConfigs) *Builder

func (*Builder) DeploySpark

func (b *Builder) DeploySpark(inst spec.Instance, sparkVersion, srcPath, deployDir string) *Builder

DeploySpark deployes spark as dependency of TiSpark

func (*Builder) DeployTiCDC

func (b *Builder) DeployTiCDC(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) DeployTiDB

func (b *Builder) DeployTiDB(pexecutor *ctxt.Executor, subClusterType string, awsWSConfigs *spec.AwsWSConfigs, clusterInfo *ClusterInfo) *Builder

func (*Builder) DeployTiDBInstance

func (b *Builder) DeployTiDBInstance(pexecutor *ctxt.Executor, awsWSConfigs *spec.AwsWSConfigs, subClusterType, tidbVersion string, clusterInfo *ClusterInfo) *Builder

func (*Builder) DeployWS

func (b *Builder) DeployWS(pexecutor *ctxt.Executor, subClusterType string, awsWSConfigs *spec.AwsWSConfigs) *Builder

func (*Builder) DestroyAurora

func (b *Builder) DestroyAurora(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) DestroyBasicResource

func (b *Builder) DestroyBasicResource(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyCloudFormation

func (b *Builder) DestroyCloudFormation(pexecutor *ctxt.Executor) *Builder

func (*Builder) DestroyDBCluster

func (b *Builder) DestroyDBCluster(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyDBClusterParameterGroup

func (b *Builder) DestroyDBClusterParameterGroup(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyDBInstance

func (b *Builder) DestroyDBInstance(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyDBParameterGroup

func (b *Builder) DestroyDBParameterGroup(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyDBSubnetGroup

func (b *Builder) DestroyDBSubnetGroup(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyDMSEndpoints

func (b *Builder) DestroyDMSEndpoints(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyDMSInstance

func (b *Builder) DestroyDMSInstance(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyDMSService

func (b *Builder) DestroyDMSService(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyDMSSubnetGroup

func (b *Builder) DestroyDMSSubnetGroup(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyDMSTask

func (b *Builder) DestroyDMSTask(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyEC

func (b *Builder) DestroyEC(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyEC2Nodes

func (b *Builder) DestroyEC2Nodes(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyInternetGateway

func (b *Builder) DestroyInternetGateway(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyNLB

func (b *Builder) DestroyNLB(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyNetwork

func (b *Builder) DestroyNetwork(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyRouteTable

func (b *Builder) DestroyRouteTable(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroySecurityGroup

func (b *Builder) DestroySecurityGroup(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroySqlServer

func (b *Builder) DestroySqlServer(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) DestroyTargetGroup

func (b *Builder) DestroyTargetGroup(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyTransitGateway

func (b *Builder) DestroyTransitGateway(pexecutor *ctxt.Executor) *Builder

func (*Builder) DestroyTransitGatewayVpcAttachment

func (b *Builder) DestroyTransitGatewayVpcAttachment(pexecutor *ctxt.Executor) *Builder

func (*Builder) DestroyTransitGateways

func (b *Builder) DestroyTransitGateways(pexecutor *ctxt.Executor) *Builder

func (*Builder) DestroyVpc

func (b *Builder) DestroyVpc(pexecutor *ctxt.Executor, subClusterType string) *Builder

func (*Builder) DestroyVpcPeering

func (b *Builder) DestroyVpcPeering(pexecutor *ctxt.Executor) *Builder

func (*Builder) Download

func (b *Builder) Download(component, os, arch string, version string) *Builder

Download appends a Downloader task to the current task collection

func (*Builder) EnvInit

func (b *Builder) EnvInit(host, deployUser string, userGroup string, skipCreateUser bool) *Builder

EnvInit appends a EnvInit task to the current task collection

func (*Builder) Func

func (b *Builder) Func(name string, fn func(ctx context.Context) error) *Builder

Func append a func task.

func (*Builder) InitConfig

func (b *Builder) InitConfig(clusterName, clusterVersion string, specManager *spec.SpecManager, inst spec.Instance, deployUser string, ignoreCheck bool, paths meta.DirPaths) *Builder

InitConfig appends a CopyComponent task to the current task collection

func (*Builder) InstallPackage

func (b *Builder) InstallPackage(srcPath, dstHost, dstDir string) *Builder

InstallPackage appends a InstallPackage task to the current task collection

func (*Builder) Limit

func (b *Builder) Limit(host, domain, limit, item, value string) *Builder

Limit set a system limit

func (*Builder) ListEC

func (b *Builder) ListEC(pexecutor *ctxt.Executor, tableECs *[][]string) *Builder

func (*Builder) ListNLB

func (b *Builder) ListNLB(pexecutor *ctxt.Executor, subClusterType string, nlb *LoadBalancer) *Builder

func (*Builder) ListNetwork

func (b *Builder) ListNetwork(pexecutor *ctxt.Executor, tableSubnets *[][]string) *Builder

func (*Builder) ListRouteTable

func (b *Builder) ListRouteTable(pexecutor *ctxt.Executor, tableRouteTables *[][]string) *Builder

func (*Builder) ListSecurityGroup

func (b *Builder) ListSecurityGroup(pexecutor *ctxt.Executor, tableSecurityGroups *[][]string) *Builder

func (*Builder) ListTransitGateway

func (b *Builder) ListTransitGateway(pexecutor *ctxt.Executor, transitGateway *TransitGateway) *Builder

func (*Builder) ListTransitGatewayVpcAttachment

func (b *Builder) ListTransitGatewayVpcAttachment(pexecutor *ctxt.Executor, tableTransitGatewayVpcAttachments *[][]string) *Builder

func (*Builder) ListVpc

func (b *Builder) ListVpc(pexecutor *ctxt.Executor, tableVPC *[][]string) *Builder

func (*Builder) MakeDBObjects

func (b *Builder) MakeDBObjects(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) Mkdir

func (b *Builder) Mkdir(user, host string, dirs ...string) *Builder

Mkdir appends a Mkdir task to the current task collection

func (*Builder) MonitoredConfig

func (b *Builder) MonitoredConfig(name, comp, host string, globResCtl meta.ResourceControl, options *spec.MonitoredOptions, deployUser string, tlsEnabled bool, paths meta.DirPaths) *Builder

MonitoredConfig appends a CopyComponent task to the current task collection

func (*Builder) Parallel

func (b *Builder) Parallel(ignoreError bool, tasks ...Task) *Builder

Parallel appends a parallel task to the current task collection

func (*Builder) ParallelStep

func (b *Builder) ParallelStep(prefix string, ignoreError bool, tasks ...*StepDisplay) *Builder

ParallelStep appends a new ParallelStepDisplay task, which will print multi line progress in parallel for inner tasks. Inner tasks must be a StepDisplay task.

func (*Builder) PrepareSysbenchTiCDC

func (b *Builder) PrepareSysbenchTiCDC(pexecutor *ctxt.Executor, identityFile string, scriptParam ScriptParam) *Builder

func (*Builder) RegisterTarget

func (b *Builder) RegisterTarget(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) Rmdir

func (b *Builder) Rmdir(host string, dirs ...string) *Builder

Rmdir appends a Rmdir task to the current task collection

func (*Builder) RootSSH

func (b *Builder) RootSSH(
	host string, port int, user, password, keyFile, passphrase string, sshTimeout, exeTimeout uint64,
	proxyHost string, proxyPort int, proxyUser, proxyPassword, proxyKeyFile, proxyPassphrase string, proxySSHTimeout uint64,
	sshType, defaultSSHType executor.SSHType,
) *Builder

RootSSH appends a RootSSH task to the current task collection

func (*Builder) SSHKeyGen

func (b *Builder) SSHKeyGen(keypath string) *Builder

SSHKeyGen appends a SSHKeyGen task to the current task collection

func (*Builder) SSHKeySet

func (b *Builder) SSHKeySet(privKeyPath, pubKeyPath string) *Builder

SSHKeySet appends a SSHKeySet task to the current task collection

func (*Builder) ScaleConfig

func (b *Builder) ScaleConfig(clusterName, clusterVersion string, specManager *spec.SpecManager, topo spec.Topology, inst spec.Instance, deployUser string, paths meta.DirPaths) *Builder

ScaleConfig generate temporary config on scaling

func (*Builder) ScaleTiDB

func (b *Builder) ScaleTiDB(pexecutor *ctxt.Executor, subClusterType string, awsWSConfigs *spec.AwsWSConfigs, awsTopoConfig *spec.AwsTopoConfigs) *Builder

func (*Builder) ScaleTiDBInstance

func (b *Builder) ScaleTiDBInstance(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder

func (*Builder) Serial

func (b *Builder) Serial(tasks ...Task) *Builder

Serial appends the tasks to the tail of queue

func (*Builder) Shell

func (b *Builder) Shell(host, command, cmdID string, sudo bool) *Builder

Shell command on cluster host

func (*Builder) Step

func (b *Builder) Step(prefix string, inner Task) *Builder

Step appends a new StepDisplay task, which will print single line progress for inner tasks.

func (*Builder) SysbenchTiCDC

func (b *Builder) SysbenchTiCDC(pexecutor *ctxt.Executor, identityFile string, clusterTable *[][]string) *Builder

func (*Builder) Sysctl

func (b *Builder) Sysctl(host, key, val string) *Builder

Sysctl set a kernel parameter

func (*Builder) SystemCtl

func (b *Builder) SystemCtl(host, unit, action string, daemonReload bool) *Builder

SystemCtl run systemctl on host

func (*Builder) TLSCert

func (b *Builder) TLSCert(host, comp, role string, port int, ca *crypto.CertificateAuthority, paths meta.DirPaths) *Builder

TLSCert generates certificate for instance and transfers it to the server

func (*Builder) UpdateMeta

func (b *Builder) UpdateMeta(cluster string, metadata *spec.ClusterMeta, deletedNodeIds []string) *Builder

UpdateMeta maintain the meta information

func (*Builder) UpdateTopology

func (b *Builder) UpdateTopology(cluster, profile string, metadata *spec.ClusterMeta, deletedNodeIds []string) *Builder

UpdateTopology maintain the topology information

func (*Builder) UserSSH

func (b *Builder) UserSSH(
	host string, port int, deployUser string, sshTimeout, exeTimeout uint64,
	proxyHost string, proxyPort int, proxyUser, proxyPassword, proxyKeyFile, proxyPassphrase string, proxySSHTimeout uint64,
	sshType, defaultSSHType executor.SSHType,
) *Builder

UserSSH append a UserSSH task to the current task collection

type ByComponentType

type ByComponentType []ARNComponent

func (ByComponentType) Len

func (a ByComponentType) Len() int

func (ByComponentType) Less

func (a ByComponentType) Less(i, j int) bool

func (ByComponentType) Swap

func (a ByComponentType) Swap(i, j int)

type CDCTask

type CDCTask struct {
	Id      string         `json:"id"`
	Summary CDCTaskSummary `json:"summary"`
}

type CDCTaskSummary

type CDCTaskSummary struct {
	State      string  `json:"state"`
	Tso        big.Int `json:"tso"`
	Checkpoint string  `json:"checkpoint"`
	Error      string  `json:"error"`
}

type CheckSys

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

CheckSys performs checks of system information

func (*CheckSys) Execute

func (c *CheckSys) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CheckSys) Rollback

func (c *CheckSys) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CheckSys) String

func (c *CheckSys) String() string

String implements the fmt.Stringer interface

type ClusterInfo

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

func (ClusterInfo) String

func (c ClusterInfo) String() string

type ClusterOperate

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

ClusterOperate represents the cluster operation task.

func (*ClusterOperate) Execute

func (c *ClusterOperate) Execute(ctx context.Context) error

Execute implements the Task interface

func (*ClusterOperate) Rollback

func (c *ClusterOperate) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*ClusterOperate) String

func (c *ClusterOperate) String() string

String implements the fmt.Stringer interface

type CopyComponent

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

CopyComponent is used to copy all files related the specific version a component to the target directory of path

func (*CopyComponent) Execute

func (c *CopyComponent) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CopyComponent) Rollback

func (c *CopyComponent) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CopyComponent) String

func (c *CopyComponent) String() string

String implements the fmt.Stringer interface

type CopyFile

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

CopyFile will copy a local file to the target host

func (*CopyFile) Execute

func (c *CopyFile) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CopyFile) Rollback

func (c *CopyFile) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CopyFile) String

func (c *CopyFile) String() string

String implements the fmt.Stringer interface

type CreateCloudFormation

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

func (*CreateCloudFormation) Execute

func (c *CreateCloudFormation) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateCloudFormation) Rollback

func (c *CreateCloudFormation) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateCloudFormation) String

func (c *CreateCloudFormation) String() string

String implements the fmt.Stringer interface

type CreateDBCluster

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

func (*CreateDBCluster) Execute

func (c *CreateDBCluster) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateDBCluster) Rollback

func (c *CreateDBCluster) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateDBCluster) String

func (c *CreateDBCluster) String() string

String implements the fmt.Stringer interface

type CreateDBClusterParameterGroup

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

func (*CreateDBClusterParameterGroup) Execute

Execute implements the Task interface

func (*CreateDBClusterParameterGroup) Rollback

Rollback implements the Task interface

func (*CreateDBClusterParameterGroup) String

String implements the fmt.Stringer interface

type CreateDBInstance

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

func (*CreateDBInstance) Execute

func (c *CreateDBInstance) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateDBInstance) Rollback

func (c *CreateDBInstance) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateDBInstance) String

func (c *CreateDBInstance) String() string

String implements the fmt.Stringer interface

type CreateDBParameterGroup

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

func (*CreateDBParameterGroup) Execute

func (c *CreateDBParameterGroup) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateDBParameterGroup) Rollback

func (c *CreateDBParameterGroup) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateDBParameterGroup) String

func (c *CreateDBParameterGroup) String() string

String implements the fmt.Stringer interface

type CreateDBSubnetGroup

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

func (*CreateDBSubnetGroup) Execute

func (c *CreateDBSubnetGroup) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateDBSubnetGroup) Rollback

func (c *CreateDBSubnetGroup) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateDBSubnetGroup) String

func (c *CreateDBSubnetGroup) String() string

String implements the fmt.Stringer interface

type CreateDMNodes

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

func (*CreateDMNodes) Execute

func (c *CreateDMNodes) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateDMNodes) Rollback

func (c *CreateDMNodes) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateDMNodes) String

func (c *CreateDMNodes) String() string

String implements the fmt.Stringer interface

type CreateDMSInstance

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

func (*CreateDMSInstance) Execute

func (c *CreateDMSInstance) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateDMSInstance) Rollback

func (c *CreateDMSInstance) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateDMSInstance) String

func (c *CreateDMSInstance) String() string

String implements the fmt.Stringer interface

type CreateDMSSourceEndpoint

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

func (*CreateDMSSourceEndpoint) Execute

func (c *CreateDMSSourceEndpoint) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateDMSSourceEndpoint) Rollback

func (c *CreateDMSSourceEndpoint) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateDMSSourceEndpoint) String

func (c *CreateDMSSourceEndpoint) String() string

String implements the fmt.Stringer interface

type CreateDMSSubnetGroup

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

func (*CreateDMSSubnetGroup) Execute

func (c *CreateDMSSubnetGroup) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateDMSSubnetGroup) Rollback

func (c *CreateDMSSubnetGroup) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateDMSSubnetGroup) String

func (c *CreateDMSSubnetGroup) String() string

String implements the fmt.Stringer interface

type CreateDMSTargetEndpoint

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

func (*CreateDMSTargetEndpoint) Execute

func (c *CreateDMSTargetEndpoint) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateDMSTargetEndpoint) Rollback

func (c *CreateDMSTargetEndpoint) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateDMSTargetEndpoint) String

func (c *CreateDMSTargetEndpoint) String() string

String implements the fmt.Stringer interface

type CreateDMSTask

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

func (*CreateDMSTask) Execute

func (c *CreateDMSTask) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateDMSTask) Rollback

func (c *CreateDMSTask) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateDMSTask) String

func (c *CreateDMSTask) String() string

String implements the fmt.Stringer interface

type CreateInternetGateway

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

Mkdir is used to create directory on the target host

func (*CreateInternetGateway) Execute

func (c *CreateInternetGateway) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateInternetGateway) Rollback

func (c *CreateInternetGateway) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateInternetGateway) String

func (c *CreateInternetGateway) String() string

String implements the fmt.Stringer interface

type CreateMS

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

func (*CreateMS) Execute

func (c *CreateMS) Execute(ctx context.Context) error

func (*CreateMS) Rollback

func (c *CreateMS) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateMS) String

func (c *CreateMS) String() string

String implements the fmt.Stringer interface

type CreateNLB

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

func (*CreateNLB) Execute

func (c *CreateNLB) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateNLB) Rollback

func (c *CreateNLB) Rollback(ctx context.Context) error

func (*CreateNLB) String

func (c *CreateNLB) String() string

String implements the fmt.Stringer interface

type CreateNLBListener

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

func (*CreateNLBListener) Execute

func (c *CreateNLBListener) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateNLBListener) Rollback

func (c *CreateNLBListener) Rollback(ctx context.Context) error

func (*CreateNLBListener) String

func (c *CreateNLBListener) String() string

String implements the fmt.Stringer interface

type CreateNetwork

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

Mkdir is used to create directory on the target host

func (*CreateNetwork) Execute

func (c *CreateNetwork) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateNetwork) Rollback

func (c *CreateNetwork) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateNetwork) String

func (c *CreateNetwork) String() string

String implements the fmt.Stringer interface

type CreatePDNodes

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

func (*CreatePDNodes) Execute

func (c *CreatePDNodes) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreatePDNodes) Rollback

func (c *CreatePDNodes) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreatePDNodes) String

func (c *CreatePDNodes) String() string

String implements the fmt.Stringer interface

type CreateRouteTable

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

Mkdir is used to create directory on the target host

func (*CreateRouteTable) Execute

func (c *CreateRouteTable) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateRouteTable) Rollback

func (c *CreateRouteTable) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateRouteTable) String

func (c *CreateRouteTable) String() string

String implements the fmt.Stringer interface

type CreateRouteTgw

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

func (*CreateRouteTgw) Execute

func (c *CreateRouteTgw) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateRouteTgw) Rollback

func (c *CreateRouteTgw) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateRouteTgw) String

func (c *CreateRouteTgw) String() string

String implements the fmt.Stringer interface

type CreateSecurityGroup

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

func (*CreateSecurityGroup) Execute

func (c *CreateSecurityGroup) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateSecurityGroup) Rollback

func (c *CreateSecurityGroup) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateSecurityGroup) String

func (c *CreateSecurityGroup) String() string

String implements the fmt.Stringer interface

type CreateTargetGroup

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

func (*CreateTargetGroup) Execute

func (c *CreateTargetGroup) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateTargetGroup) Rollback

func (c *CreateTargetGroup) Rollback(ctx context.Context) error

func (*CreateTargetGroup) String

func (c *CreateTargetGroup) String() string

String implements the fmt.Stringer interface

type CreateTiCDCNodes

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

func (*CreateTiCDCNodes) Execute

func (c *CreateTiCDCNodes) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateTiCDCNodes) Rollback

func (c *CreateTiCDCNodes) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateTiCDCNodes) String

func (c *CreateTiCDCNodes) String() string

String implements the fmt.Stringer interface

type CreateTiDBNodes

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

func (*CreateTiDBNodes) Execute

func (c *CreateTiDBNodes) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateTiDBNodes) Rollback

func (c *CreateTiDBNodes) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateTiDBNodes) String

func (c *CreateTiDBNodes) String() string

String implements the fmt.Stringer interface

type CreateTiKVNodes

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

func (*CreateTiKVNodes) Execute

func (c *CreateTiKVNodes) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateTiKVNodes) Rollback

func (c *CreateTiKVNodes) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateTiKVNodes) String

func (c *CreateTiKVNodes) String() string

String implements the fmt.Stringer interface

type CreateTransitGateway

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

func (*CreateTransitGateway) Execute

func (c *CreateTransitGateway) Execute(ctx context.Context) error

create-transit-gateway --description testtisample --tag-specifications ... Execute implements the Task interface

func (*CreateTransitGateway) Rollback

func (c *CreateTransitGateway) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateTransitGateway) String

func (c *CreateTransitGateway) String() string

String implements the fmt.Stringer interface

type CreateTransitGatewayVpcAttachment

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

func (*CreateTransitGatewayVpcAttachment) Execute

func (*CreateTransitGatewayVpcAttachment) Rollback

Rollback implements the Task interface

func (*CreateTransitGatewayVpcAttachment) String

String implements the fmt.Stringer interface

type CreateVpc

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

func (*CreateVpc) Execute

func (c *CreateVpc) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateVpc) Rollback

func (c *CreateVpc) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateVpc) String

func (c *CreateVpc) String() string

String implements the fmt.Stringer interface

type CreateVpcPeering

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

type CreateWorkstation

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

func (*CreateWorkstation) Execute

func (c *CreateWorkstation) Execute(ctx context.Context) error

Execute implements the Task interface

func (*CreateWorkstation) Rollback

func (c *CreateWorkstation) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*CreateWorkstation) String

func (c *CreateWorkstation) String() string

String implements the fmt.Stringer interface

type DBCluster

type DBCluster struct {
	AllocatedStorage    int    `json:"AllocatedStorage"`
	DBClusterIdentifier string `json:"DBClusterIdentifier"`
	Status              string `json:"Status"`
	DBClusterArn        string `json:"DBClusterArn"`
}

type DBClusterParameterGroup

type DBClusterParameterGroup struct {
	DBClusterParameterGroupName string `json:"DBClusterParameterGroupName"`
	DBParameterGroupFamily      string `json:"DBParameterGroupFamily"`
	Description                 string `json:"Description"`
	DBClusterParameterGroupArn  string `json:"DBClusterParameterGroupArn"`
}

type DBClusterParameterGroups

type DBClusterParameterGroups struct {
	DBClusterParameterGroups []DBClusterParameterGroup `json:"DBClusterParameterGroups"`
}

type DBClusters

type DBClusters struct {
	DBClusters []DBCluster `json:"DBClusters"`
}

type DBInstance

type DBInstance struct {
	DBInstanceIdentifier string             `json:"DBInstanceIdentifier"`
	DBInstanceStatus     string             `json:"DBInstanceStatus"`
	DBInstanceArn        string             `json:"DBInstanceArn"`
	MasterUsername       string             `json:"MasterUsername"`
	Endpoint             DBInstanceEndpoint `json:"Endpoint"`
}

type DBInstanceEndpoint

type DBInstanceEndpoint struct {
	Address string `json:"Address"`
	Port    int    `json:"Port"`
}

type DBInstances

type DBInstances struct {
	DBInstances []DBInstance `json:"DBInstances"`
}

type DBParameterGroup

type DBParameterGroup struct {
	DBParameterGroupName   string `json:"DBParameterGroupName"`
	DBParameterGroupFamily string `json:"DBParameterGroupFamily"`
	Description            string `json:"Description"`
	DBParameterGroupArn    string `json:"DBParameterGroupArn"`
}

type DBParameterGroups

type DBParameterGroups struct {
	DBParameterGroups []DBParameterGroup `json:"DBParameterGroups"`
}

type DBSubnetGroup

type DBSubnetGroup struct {
	DBSubnetGroupName string `json:"DBSubnetGroupName"`
	VpcId             string `json:"VpcId"`
	SubnetGroupStatus string `json:"SubnetGroupStatus"`
	DBSubnetGroupArn  string `json:"DBSubnetGroupArn"`
}

type DBSubnetGroups

type DBSubnetGroups struct {
	DBSubnetGroups []DBSubnetGroup `json:"DBSubnetGroups"`
}

type DMSSubnetGroup

type DMSSubnetGroup struct {
	ReplicationSubnetGroupIdentifier string `json:"ReplicationSubnetGroupIdentifier"`
	VpcId                            string `json:"VpcId"`
	SubnetGroupStatus                string `json:"SubnetGroupStatus"`
}

type DMSSubnetGroups

type DMSSubnetGroups struct {
	DMSSubnetGroups []DMSSubnetGroup `json:"ReplicationSubnetGroups"`
}

type Deploy

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

Mkdir is used to create directory on the target host

func (*Deploy) Execute

func (r *Deploy) Execute(ctx context.Context) error

Execute implements the Task interface

func (*Deploy) Rollback

func (r *Deploy) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*Deploy) String

func (r *Deploy) String() string

String implements the fmt.Stringer interface

type DeployPDNS

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

func (*DeployPDNS) Execute

func (c *DeployPDNS) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DeployPDNS) Rollback

func (c *DeployPDNS) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DeployPDNS) String

func (c *DeployPDNS) String() string

String implements the fmt.Stringer interface

type DeployTiCDC

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

func (*DeployTiCDC) Execute

func (c *DeployTiCDC) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DeployTiCDC) Rollback

func (c *DeployTiCDC) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DeployTiCDC) String

func (c *DeployTiCDC) String() string

String implements the fmt.Stringer interface

type DeployTiDB

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

func (*DeployTiDB) Execute

func (c *DeployTiDB) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DeployTiDB) Rollback

func (c *DeployTiDB) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DeployTiDB) String

func (c *DeployTiDB) String() string

String implements the fmt.Stringer interface

type DeployTiDBInstance

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

func (*DeployTiDBInstance) Execute

func (c *DeployTiDBInstance) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DeployTiDBInstance) Rollback

func (c *DeployTiDBInstance) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DeployTiDBInstance) String

func (c *DeployTiDBInstance) String() string

String implements the fmt.Stringer interface

type DeployWS

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

******************************************* Workspace

func (*DeployWS) Execute

func (c *DeployWS) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DeployWS) Rollback

func (c *DeployWS) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DeployWS) String

func (c *DeployWS) String() string

String implements the fmt.Stringer interface

type DestroyCloudFormation

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

func (*DestroyCloudFormation) Execute

func (c *DestroyCloudFormation) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyCloudFormation) Rollback

func (c *DestroyCloudFormation) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyCloudFormation) String

func (c *DestroyCloudFormation) String() string

String implements the fmt.Stringer interface

type DestroyDBCluster

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

func (*DestroyDBCluster) Execute

func (c *DestroyDBCluster) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyDBCluster) Rollback

func (c *DestroyDBCluster) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyDBCluster) String

func (c *DestroyDBCluster) String() string

String implements the fmt.Stringer interface

type DestroyDBClusterParameterGroup

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

func (*DestroyDBClusterParameterGroup) Execute

Execute implements the Task interface

func (*DestroyDBClusterParameterGroup) Rollback

Rollback implements the Task interface

func (*DestroyDBClusterParameterGroup) String

String implements the fmt.Stringer interface

type DestroyDBInstance

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

func (*DestroyDBInstance) Execute

func (c *DestroyDBInstance) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyDBInstance) Rollback

func (c *DestroyDBInstance) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyDBInstance) String

func (c *DestroyDBInstance) String() string

String implements the fmt.Stringer interface

type DestroyDBParameterGroup

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

func (*DestroyDBParameterGroup) Execute

func (c *DestroyDBParameterGroup) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyDBParameterGroup) Rollback

func (c *DestroyDBParameterGroup) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyDBParameterGroup) String

func (c *DestroyDBParameterGroup) String() string

String implements the fmt.Stringer interface

type DestroyDBSubnetGroup

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

func (*DestroyDBSubnetGroup) Execute

func (c *DestroyDBSubnetGroup) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyDBSubnetGroup) Rollback

func (c *DestroyDBSubnetGroup) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyDBSubnetGroup) String

func (c *DestroyDBSubnetGroup) String() string

String implements the fmt.Stringer interface

type DestroyDMSEndpoints

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

func (*DestroyDMSEndpoints) Execute

func (c *DestroyDMSEndpoints) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyDMSEndpoints) Rollback

func (c *DestroyDMSEndpoints) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyDMSEndpoints) String

func (c *DestroyDMSEndpoints) String() string

String implements the fmt.Stringer interface

type DestroyDMSInstance

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

func (*DestroyDMSInstance) Execute

func (c *DestroyDMSInstance) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyDMSInstance) Rollback

func (c *DestroyDMSInstance) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyDMSInstance) String

func (c *DestroyDMSInstance) String() string

String implements the fmt.Stringer interface

type DestroyDMSSubnetGroup

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

func (*DestroyDMSSubnetGroup) Execute

func (c *DestroyDMSSubnetGroup) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyDMSSubnetGroup) Rollback

func (c *DestroyDMSSubnetGroup) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyDMSSubnetGroup) String

func (c *DestroyDMSSubnetGroup) String() string

String implements the fmt.Stringer interface

type DestroyDMSTask

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

func (*DestroyDMSTask) Execute

func (c *DestroyDMSTask) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyDMSTask) Rollback

func (c *DestroyDMSTask) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyDMSTask) String

func (c *DestroyDMSTask) String() string

String implements the fmt.Stringer interface

type DestroyEC

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

func (*DestroyEC) Execute

func (c *DestroyEC) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyEC) Rollback

func (c *DestroyEC) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyEC) String

func (c *DestroyEC) String() string

String implements the fmt.Stringer interface

type DestroyInternetGateway

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

Mkdir is used to create directory on the target host

func (*DestroyInternetGateway) Execute

func (c *DestroyInternetGateway) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyInternetGateway) Rollback

func (c *DestroyInternetGateway) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyInternetGateway) String

func (c *DestroyInternetGateway) String() string

String implements the fmt.Stringer interface

type DestroyNLB

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

func (*DestroyNLB) Execute

func (c *DestroyNLB) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyNLB) Rollback

func (c *DestroyNLB) Rollback(ctx context.Context) error

func (*DestroyNLB) String

func (c *DestroyNLB) String() string

String implements the fmt.Stringer interface

type DestroyNetwork

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

func (*DestroyNetwork) Execute

func (c *DestroyNetwork) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyNetwork) Rollback

func (c *DestroyNetwork) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyNetwork) String

func (c *DestroyNetwork) String() string

String implements the fmt.Stringer interface

type DestroyRouteTable

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

Mkdir is used to create directory on the target host

func (*DestroyRouteTable) Execute

func (c *DestroyRouteTable) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyRouteTable) Rollback

func (c *DestroyRouteTable) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyRouteTable) String

func (c *DestroyRouteTable) String() string

String implements the fmt.Stringer interface

type DestroySecurityGroup

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

func (*DestroySecurityGroup) Execute

func (c *DestroySecurityGroup) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroySecurityGroup) Rollback

func (c *DestroySecurityGroup) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroySecurityGroup) String

func (c *DestroySecurityGroup) String() string

String implements the fmt.Stringer interface

type DestroyTargetGroup

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

func (*DestroyTargetGroup) Execute

func (c *DestroyTargetGroup) Execute(ctx context.Context) error

Execute implements the Task interface

func (*DestroyTargetGroup) Rollback

func (c *DestroyTargetGroup) Rollback(ctx context.Context) error

func (*DestroyTargetGroup) String

func (c *DestroyTargetGroup) String() string

String implements the fmt.Stringer interface

type DestroyTransitGateway

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

func (*DestroyTransitGateway) Execute

func (c *DestroyTransitGateway) Execute(ctx context.Context) error

func (*DestroyTransitGateway) Rollback

func (c *DestroyTransitGateway) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyTransitGateway) String

func (c *DestroyTransitGateway) String() string

String implements the fmt.Stringer interface

type DestroyTransitGatewayVpcAttachment

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

func (*DestroyTransitGatewayVpcAttachment) Execute

func (*DestroyTransitGatewayVpcAttachment) Rollback

Rollback implements the Task interface

func (*DestroyTransitGatewayVpcAttachment) String

String implements the fmt.Stringer interface

type DestroyVpc

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

func (*DestroyVpc) Execute

func (c *DestroyVpc) Execute(ctx context.Context) error

Description: Destroy the VPC if it does not exists.

func (*DestroyVpc) Rollback

func (c *DestroyVpc) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyVpc) String

func (c *DestroyVpc) String() string

String implements the fmt.Stringer interface

type DestroyVpcPeering

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

func (*DestroyVpcPeering) Execute

func (c *DestroyVpcPeering) Execute(ctx context.Context) error

func (*DestroyVpcPeering) Rollback

func (c *DestroyVpcPeering) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*DestroyVpcPeering) String

func (c *DestroyVpcPeering) String() string

String implements the fmt.Stringer interface

type Downloader

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

Downloader is used to download the specific version of a component from the repository, there is nothing to do if the specified version exists.

func NewDownloader

func NewDownloader(component string, os string, arch string, version string) *Downloader

NewDownloader create a Downloader instance.

func (*Downloader) Execute

func (d *Downloader) Execute(_ context.Context) error

Execute implements the Task interface

func (*Downloader) Rollback

func (d *Downloader) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*Downloader) String

func (d *Downloader) String() string

String implements the fmt.Stringer interface

type EC2

type EC2 struct {
	InstanceId       string              `json:"InstanceId"`
	State            ECState             `json:"State"`
	SubnetId         string              `json:"SubnetId"`
	VpcId            string              `json:"VpcId"`
	InstanceType     string              `json:"InstanceType"`
	ImageId          string              `json:"ImageId"`
	PrivateIpAddress string              `json:"PrivateIpAddress"`
	PrivateDnsName   string              `json:"PrivateDnsName"`
	PublicIpAddress  string              `json:"PublicIpAddress"`
	Tags             []map[string]string `json:"Tags"`
}

func (EC2) String

func (e EC2) String() string

type EC2s

type EC2s struct {
	Instances []EC2 `json:"Instances"`
}

func (EC2s) String

func (e EC2s) String() string

type ECState

type ECState struct {
	Code int    `json:"Code"`
	Name string `json:"Name"`
}

func (ECState) String

func (e ECState) String() string

type Endpoint

type Endpoint struct {
	EndpointIdentifier string `json:"EndpointIdentifier"`
	EndpointType       string `json:"EndpointType"`
	EngineName         string `json:"EngineName"`
	Status             string `json:"Status"`
	EndpointArn        string `json:"EndpointArn"`
}

type EndpointRecord

type EndpointRecord struct {
	Endpoint Endpoint `json:"Endpoint"`
}

type Endpoints

type Endpoints struct {
	Endpoints []Endpoint `json:"Endpoints"`
}

type EnvInit

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

EnvInit is used to initialize the remote environment, e.g: 1. Generate SSH key 2. ssh-copy-id

func (*EnvInit) Execute

func (e *EnvInit) Execute(ctx context.Context) error

Execute implements the Task interface

func (*EnvInit) Rollback

func (e *EnvInit) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*EnvInit) String

func (e *EnvInit) String() string

String implements the fmt.Stringer interface

type Func

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

Func wrap a closure.

func NewFunc

func NewFunc(name string, fn func(ctx context.Context) error) *Func

NewFunc create a Func task

func (*Func) Execute

func (m *Func) Execute(ctx context.Context) error

Execute implements the Task interface

func (*Func) Rollback

func (m *Func) Rollback(_ context.Context) error

Rollback implements the Task interface

func (*Func) String

func (m *Func) String() string

String implements the fmt.Stringer interface

type InitConfig

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

InitConfig is used to copy all configurations to the target directory of path

func (*InitConfig) Execute

func (c *InitConfig) Execute(ctx context.Context) error

Execute implements the Task interface

func (*InitConfig) Rollback

func (c *InitConfig) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*InitConfig) String

func (c *InitConfig) String() string

String implements the fmt.Stringer interface

type InstallPackage

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

InstallPackage is used to copy all files related the specific version a component to the target directory of path

func (*InstallPackage) Execute

func (c *InstallPackage) Execute(ctx context.Context) error

Execute implements the Task interface

func (*InstallPackage) Rollback

func (c *InstallPackage) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*InstallPackage) String

func (c *InstallPackage) String() string

String implements the fmt.Stringer interface

type InternetGateway

type InternetGateway struct {
	InternetGatewayId string       `json:"InternetGatewayId"`
	Attachments       []Attachment `json:"Attachments"`
}

func (InternetGateway) String

func (i InternetGateway) String() string

type InternetGateways

type InternetGateways struct {
	InternetGateways []InternetGateway `json:"InternetGateways"`
}

func (InternetGateways) String

func (i InternetGateways) String() string

type IpPermissions

type IpPermissions struct {
	FromPort   int        `json:"FromPort"`
	IpProtocol string     `json:"IpProtocol"`
	IpRanges   []IpRanges `json:"IpRanges"`
	ToPort     int        `json:"ToPort"`
}

type IpRanges

type IpRanges struct {
	CidrIp string `json:"CidrIp"`
}

type Limit

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

Limit set a system limit on host

func (*Limit) Execute

func (l *Limit) Execute(ctx context.Context) error

Execute implements the Task interface

func (*Limit) Rollback

func (l *Limit) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*Limit) String

func (l *Limit) String() string

String implements the fmt.Stringer interface

type List

type List struct {
	User          string
	Host          string
	ArnComponents []ARNComponent
}

func (*List) Execute

func (c *List) Execute(ctx context.Context, clusterName, clusterType string) error

Execute implements the Task interface

func (*List) Rollback

func (c *List) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*List) String

func (c *List) String() string

String implements the fmt.Stringer interface

type ListAurora

type ListAurora struct {
	User          string
	Host          string
	ArnComponents []ARNComponent
}

func (*ListAurora) Execute

func (c *ListAurora) Execute(ctx context.Context, clusterName, clusterType, subClusterType string) error

Execute implements the Task interface

func (*ListAurora) Rollback

func (c *ListAurora) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*ListAurora) String

func (c *ListAurora) String() string

String implements the fmt.Stringer interface

type ListEC

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

func (*ListEC) Execute

func (c *ListEC) Execute(ctx context.Context) error

Execute implements the Task interface

func (*ListEC) Rollback

func (c *ListEC) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*ListEC) String

func (c *ListEC) String() string

String implements the fmt.Stringer interface

type ListNLB

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

func (*ListNLB) Execute

func (c *ListNLB) Execute(ctx context.Context) error

Execute implements the Task interface

func (*ListNLB) Rollback

func (c *ListNLB) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*ListNLB) String

func (c *ListNLB) String() string

String implements the fmt.Stringer interface

type ListNetwork

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

func (*ListNetwork) Execute

func (c *ListNetwork) Execute(ctx context.Context) error

Execute implements the Task interface

func (*ListNetwork) Rollback

func (c *ListNetwork) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*ListNetwork) String

func (c *ListNetwork) String() string

String implements the fmt.Stringer interface

type ListRouteTable

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

Mkdir is used to create directory on the target host

func (*ListRouteTable) Execute

func (c *ListRouteTable) Execute(ctx context.Context) error

Execute implements the Task interface

func (*ListRouteTable) Rollback

func (c *ListRouteTable) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*ListRouteTable) String

func (c *ListRouteTable) String() string

String implements the fmt.Stringer interface

type ListSecurityGroup

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

func (*ListSecurityGroup) Execute

func (c *ListSecurityGroup) Execute(ctx context.Context) error

Execute implements the Task interface

func (*ListSecurityGroup) Rollback

func (c *ListSecurityGroup) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*ListSecurityGroup) String

func (c *ListSecurityGroup) String() string

String implements the fmt.Stringer interface

type ListTiDB2Aurora

type ListTiDB2Aurora struct {
	User          string
	Host          string
	ArnComponents []ARNComponent
}

func (*ListTiDB2Aurora) Execute

func (c *ListTiDB2Aurora) Execute(ctx context.Context, clusterName, clusterType, subClusterType string) error

Execute implements the Task interface

func (*ListTiDB2Aurora) Rollback

func (c *ListTiDB2Aurora) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*ListTiDB2Aurora) String

func (c *ListTiDB2Aurora) String() string

String implements the fmt.Stringer interface

type ListTransitGateway

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

func (*ListTransitGateway) Execute

func (c *ListTransitGateway) Execute(ctx context.Context) error

func (*ListTransitGateway) Rollback

func (c *ListTransitGateway) Rollback(ctx context.Context) error

func (*ListTransitGateway) String

func (c *ListTransitGateway) String() string

type ListTransitGatewayVpcAttachment

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

func (*ListTransitGatewayVpcAttachment) Execute

func (*ListTransitGatewayVpcAttachment) Rollback

Rollback implements the Task interface

func (*ListTransitGatewayVpcAttachment) String

String implements the fmt.Stringer interface

type ListVpc

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

func (*ListVpc) Execute

func (c *ListVpc) Execute(ctx context.Context) error

func (*ListVpc) Rollback

func (c *ListVpc) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*ListVpc) String

func (c *ListVpc) String() string

String implements the fmt.Stringer interface

type LoadBalancer

type LoadBalancer struct {
	LoadBalancerArn  string `json:"LoadBalancerArn"`
	DNSName          string `json:"DNSName"`
	LoadBalancerName string `json:"LoadBalancerName"`
	Scheme           string `json:"Scheme"`
	VpcId            string `json:"VpcId"`
	State            struct {
		Code string `json:"Code"`
	} `json:"State"`
	Type string `json:"Type"`
}

type LoadBalancers

type LoadBalancers struct {
	LoadBalancers []LoadBalancer `json:"LoadBalancers"`
}

type MakeDBObjects

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

func (*MakeDBObjects) Execute

func (c *MakeDBObjects) Execute(ctx context.Context) error

Execute implements the Task interface

func (*MakeDBObjects) Rollback

func (c *MakeDBObjects) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*MakeDBObjects) String

func (c *MakeDBObjects) String() string

String implements the fmt.Stringer interface

type Mkdir

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

Mkdir is used to create directory on the target host

func (*Mkdir) Execute

func (m *Mkdir) Execute(ctx context.Context) error

Execute implements the Task interface

func (*Mkdir) Rollback

func (m *Mkdir) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*Mkdir) String

func (m *Mkdir) String() string

String implements the fmt.Stringer interface

type MonitoredConfig

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

MonitoredConfig is used to generate the monitor node configuration

func (*MonitoredConfig) Execute

func (m *MonitoredConfig) Execute(ctx context.Context) error

Execute implements the Task interface

func (*MonitoredConfig) Rollback

func (m *MonitoredConfig) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*MonitoredConfig) String

func (m *MonitoredConfig) String() string

String implements the fmt.Stringer interface

type NewDBCluster

type NewDBCluster struct {
	DBCluster DBCluster `json:"DBCluster"`
}

type NewDBClusterParameterGroup

type NewDBClusterParameterGroup struct {
	DBClusterParameterGroup DBClusterParameterGroup `json:"DBClusterParameterGroup"`
}

type NewDBInstance

type NewDBInstance struct {
	DBInstance DBInstance `json:"DBInstance"`
}

type NewDBParameterGroup

type NewDBParameterGroup struct {
	DBParameterGroup DBParameterGroup `json:"DBParameterGroup"`
}

type NewEC2

type NewEC2 struct {
	Instances EC2 `json:"Instances"`
}

func (NewEC2) String

func (e NewEC2) String() string

type NewInternetGateway

type NewInternetGateway struct {
	InternetGateway InternetGateway `json:"InternetGateway"`
}

func (NewInternetGateway) String

func (i NewInternetGateway) String() string

type Parallel

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

Parallel will execute a bundle of task in parallelism way

func (*Parallel) Execute

func (pt *Parallel) Execute(ctx context.Context) error

Execute implements the Task interface

func (*Parallel) Rollback

func (pt *Parallel) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*Parallel) String

func (pt *Parallel) String() string

String implements the fmt.Stringer interface

type ParallelStepDisplay

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

ParallelStepDisplay is a task that will display multiple progress bars in parallel for inner tasks. Inner tasks will be executed in parallel.

func (*ParallelStepDisplay) Execute

func (ps *ParallelStepDisplay) Execute(ctx context.Context) error

Execute implements the Task interface

func (*ParallelStepDisplay) Rollback

func (ps *ParallelStepDisplay) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*ParallelStepDisplay) String

func (ps *ParallelStepDisplay) String() string

String implements the fmt.Stringer interface

type PrepareSysbenchTiCDC

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

func (*PrepareSysbenchTiCDC) Execute

func (c *PrepareSysbenchTiCDC) Execute(ctx context.Context) error

Execute implements the Task interface

func (*PrepareSysbenchTiCDC) Rollback

func (c *PrepareSysbenchTiCDC) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*PrepareSysbenchTiCDC) String

func (c *PrepareSysbenchTiCDC) String() string

String implements the fmt.Stringer interface

type RegionZone

type RegionZone struct {
	RegionName string `json:"RegionName"`
	ZoneName   string `json:"ZoneName"`
}

type RegisterTarget

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

func (*RegisterTarget) Execute

func (c *RegisterTarget) Execute(ctx context.Context) error

Execute implements the Task interface

func (*RegisterTarget) Rollback

func (c *RegisterTarget) Rollback(ctx context.Context) error

func (*RegisterTarget) String

func (c *RegisterTarget) String() string

String implements the fmt.Stringer interface

type ReplicationInstance

type ReplicationInstance struct {
	ReplicationInstanceIdentifier       string `json:"ReplicationInstanceIdentifier"`
	ReplicationInstanceClass            string `json:"ReplicationInstanceClass"`
	ReplicationInstanceStatus           string `json:"ReplicationInstanceStatus"`
	ReplicationInstanceArn              string `json:"ReplicationInstanceArn"`
	ReplicationInstancePrivateIpAddress string `json:"ReplicationInstancePrivateIpAddress"`
}

type ReplicationInstanceRecord

type ReplicationInstanceRecord struct {
	ReplicationInstance ReplicationInstance `json:"ReplicationInstance"`
}

type ReplicationInstances

type ReplicationInstances struct {
	ReplicationInstances []ReplicationInstance `json:"ReplicationInstances"`
}

type ReplicationTask

type ReplicationTask struct {
	ReplicationTaskIdentifier string `json:"ReplicationTaskIdentifier"`
	SourceEndpointArn         string `json:"SourceEndpointArn"`
	TargetEndpointArn         string `json:"TargetEndpointArn"`
	ReplicationInstanceArn    string `json:"ReplicationInstanceArn"`
	MigrationType             string `json:"MigrationType"`
	Status                    string `json:"Status"`
	ReplicationTaskArn        string `json:"ReplicationTaskArn"`
}

type ReplicationTaskRecord

type ReplicationTaskRecord struct {
	ReplicationTask ReplicationTask `json:"ReplicationTask"`
}

type ReplicationTasks

type ReplicationTasks struct {
	ReplicationTasks []ReplicationTask `json:"ReplicationTasks"`
}

type RequesterVpcInfo

type RequesterVpcInfo struct {
	CidrBlock string `json:"CidrBlock"`
	VpcId     string `json:"VpcId"`
}

type Reservations

type Reservations struct {
	Reservations []EC2s `json:"Reservations"`
}

func ListClusterEc2s

func ListClusterEc2s(ctx context.Context, pexecutor ctxt.Executor, clusterName string) (*Reservations, error)

func (Reservations) String

func (e Reservations) String() string

type ResourceTag

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

type ResultRouteTable

type ResultRouteTable struct {
	TheRouteTable RouteTable `json:"RouteTable"`
}

func (ResultRouteTable) String

func (r ResultRouteTable) String() string

type Rmdir

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

Rmdir is used to delete directory on the target host

func (*Rmdir) Execute

func (r *Rmdir) Execute(ctx context.Context) error

Execute implements the Task interface

func (*Rmdir) Rollback

func (r *Rmdir) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*Rmdir) String

func (r *Rmdir) String() string

String implements the fmt.Stringer interface

type RootSSH

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

RootSSH is used to establish a SSH connection to the target host with specific key

func (*RootSSH) Execute

func (s *RootSSH) Execute(ctx context.Context) error

Execute implements the Task interface

func (*RootSSH) Rollback

func (s *RootSSH) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (RootSSH) String

func (s RootSSH) String() string

String implements the fmt.Stringer interface

type Route

type Route struct {
	DestinationCidrBlock string `json:"DestinationCidrBlock"`
	TransitGatewayId     string `json:"TransitGatewayId"`
	GatewayId            string `json:"GatewayId"`
	Origin               string `json:"Origin"`
	State                string `json:"State"`
}

type RouteTable

type RouteTable struct {
	RouteTableId string  `json:"RouteTableId"`
	Tags         []Tag   `json:"Tags"`
	Routes       []Route `json:"Routes"`
}

func (RouteTable) String

func (r RouteTable) String() string

type RouteTables

type RouteTables struct {
	RouteTables []RouteTable `json:"RouteTables"`
}

func (RouteTables) String

func (r RouteTables) String() string

type SSHKeyGen

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

SSHKeyGen is used to generate SSH key

func (*SSHKeyGen) Execute

func (s *SSHKeyGen) Execute(ctx context.Context) error

Execute implements the Task interface

func (*SSHKeyGen) Rollback

func (s *SSHKeyGen) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*SSHKeyGen) String

func (s *SSHKeyGen) String() string

String implements the fmt.Stringer interface

type SSHKeySet

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

SSHKeySet is used to set the Context private/public key path

func (*SSHKeySet) Execute

func (s *SSHKeySet) Execute(ctx context.Context) error

Execute implements the Task interface

func (*SSHKeySet) Rollback

func (s *SSHKeySet) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*SSHKeySet) String

func (s *SSHKeySet) String() string

String implements the fmt.Stringer interface

type ScaleConfig

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

ScaleConfig is used to copy all configurations to the target directory of path

func (*ScaleConfig) Execute

func (c *ScaleConfig) Execute(ctx context.Context) error

Execute implements the Task interface

func (*ScaleConfig) Rollback

func (c *ScaleConfig) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*ScaleConfig) String

func (c *ScaleConfig) String() string

String implements the fmt.Stringer interface

type ScaleTiDB

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

func (*ScaleTiDB) Execute

func (c *ScaleTiDB) Execute(ctx context.Context) error

Execute implements the Task interface

func (*ScaleTiDB) Rollback

func (c *ScaleTiDB) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*ScaleTiDB) String

func (c *ScaleTiDB) String() string

String implements the fmt.Stringer interface

type ScriptParam

type ScriptParam struct {
	TiDBHost string
	TiDBPort int
	TiDBUser string
	TiDBPass string
	TiDBDB   string

	MySQLHost string
	MySQLPort int
	MySQLUser string
	MySQLPass string
	MySQLDB   string

	MSHost string
	MSPort int
	MSDB   string
	MSUser string
	MSPass string

	NumTables int
	Threads   int
	TableSize int
}

type SecurityGroup

type SecurityGroup struct {
	GroupId       string          `json:"GroupId"`
	GroupName     string          `json:"GroupName"`
	IpPermissions []IpPermissions `json:"IpPermissions"`
	Tags          []Tag           `json:"Tags"`
}

func (SecurityGroup) String

func (s SecurityGroup) String() string

type SecurityGroups

type SecurityGroups struct {
	SecurityGroups []SecurityGroup `json:"SecurityGroups"`
}

func (SecurityGroups) String

func (i SecurityGroups) String() string

type Serial

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

Serial will execute a bundle of task in serialized way

func (*Serial) Execute

func (s *Serial) Execute(ctx context.Context) error

Execute implements the Task interface

func (*Serial) Rollback

func (s *Serial) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*Serial) String

func (s *Serial) String() string

String implements the fmt.Stringer interface

type Shell

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

Shell is used to create directory on the target host

func (*Shell) Execute

func (m *Shell) Execute(ctx context.Context) error

Execute implements the Task interface

func (*Shell) Rollback

func (m *Shell) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*Shell) String

func (m *Shell) String() string

String implements the fmt.Stringer interface

type StepDisplay

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

StepDisplay is a task that will display a progress bar for inner task.

func (*StepDisplay) Execute

func (s *StepDisplay) Execute(ctx context.Context) error

Execute implements the Task interface

func (*StepDisplay) Rollback

func (s *StepDisplay) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*StepDisplay) SetHidden

func (s *StepDisplay) SetHidden(h bool) *StepDisplay

SetHidden set step hidden or not.

func (*StepDisplay) String

func (s *StepDisplay) String() string

String implements the fmt.Stringer interface

type Subnet

type Subnet struct {
	AvailabilityZone string `json:"AvailabilityZone"`
	CidrBlock        string `json:"CidrBlock"`
	State            string `json:"State"`
	SubnetId         string `json:"SubnetId"`
	VpcId            string `json:"VpcId"`
	Tags             []Tag  `json:"Tags"`
}

func (Subnet) String

func (s Subnet) String() string

type SubnetResult

type SubnetResult struct {
	Subnet Subnet `json:"Subnet"`
}

func (SubnetResult) String

func (r SubnetResult) String() string

type Subnets

type Subnets struct {
	Subnets []Subnet `json:"Subnets"`
}

func (Subnets) String

func (s Subnets) String() string

type SysbenchTiCDC

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

func (*SysbenchTiCDC) Execute

func (c *SysbenchTiCDC) Execute(ctx context.Context) error

Execute implements the Task interface

func (*SysbenchTiCDC) Rollback

func (c *SysbenchTiCDC) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*SysbenchTiCDC) String

func (c *SysbenchTiCDC) String() string

String implements the fmt.Stringer interface

type Sysctl

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

Sysctl set a kernel param on host

func (*Sysctl) Execute

func (s *Sysctl) Execute(ctx context.Context) error

Execute implements the Task interface

func (*Sysctl) Rollback

func (s *Sysctl) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*Sysctl) String

func (s *Sysctl) String() string

String implements the fmt.Stringer interface

type SystemCtl

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

SystemCtl run systemctl command on host

func (*SystemCtl) Execute

func (c *SystemCtl) Execute(ctx context.Context) error

Execute implements the Task interface

func (*SystemCtl) Rollback

func (c *SystemCtl) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*SystemCtl) String

func (c *SystemCtl) String() string

String implements the fmt.Stringer interface

type TLSCert

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

TLSCert generates a certificate for instance

func (*TLSCert) Execute

func (c *TLSCert) Execute(ctx context.Context) error

Execute implements the Task interface

func (*TLSCert) Rollback

func (c *TLSCert) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*TLSCert) String

func (c *TLSCert) String() string

String implements the fmt.Stringer interface

type Tag

type Tag struct {
	Key   string `json:"Key"`
	Value string `json:"Value"`
}

type TagDescription

type TagDescription struct {
	Tags []Tag `json:"Tags"`
}

type TagDescriptions

type TagDescriptions struct {
	TagDescriptions []TagDescription `json:"TagDescriptions"`
}

type TagList

type TagList struct {
	TagList []Tag `json:"TagList"`
}

type TargetGroup

type TargetGroup struct {
	TargetGroupArn  string `json:"TargetGroupArn"`
	TargetGroupName string `json:"TargetGroupName"`
	Protocol        string `json:"Protocol"`
	Port            int    `json:"Port"`
	VpcId           string `json:"VpcId"`
	TargetType      string `json:"TargetType"`
}

type TargetGroups

type TargetGroups struct {
	TargetGroups []TargetGroup `json:"TargetGroups"`
}

type Task

type Task interface {
	fmt.Stringer
	Execute(ctx context.Context) error
	Rollback(ctx context.Context) error
}

Task represents a operation while TiUP execution

type TiDBClusterComponent

type TiDBClusterComponent struct {
	Id            string `json:"id"`
	Role          string `json:"role"`
	Host          string `json:"host"`
	Ports         string `json:"ports"`
	OsArch        string `json:"os_arch"`
	Status        string `json:"status"`
	Since         string `json:"since"`
	DataDir       string `json:"data_dir"`
	DeployDir     string `json:"deploy_dir"`
	ComponentName string `json:"ComponentName"`
	Port          int    `json:"Port"`
}

type TiDBClusterDetail

type TiDBClusterDetail struct {
	TiDBClusterMeta TiDBClusterMeta        `json:"cluster_meta"`
	Instances       []TiDBClusterComponent `json:"instances"`
}

type TiDBClusterInfo

type TiDBClusterInfo struct {
	Name       string `json:"name"`
	User       string `json:"user"`
	Version    string `json:"version"`
	Path       string `json:"path"`
	PrivateKey string `json:"private_key"`
}

type TiDBClusterInfos

type TiDBClusterInfos struct {
	TiDBClusterInfos []TiDBClusterInfo `json:"clusters"`
}

type TiDBClusterMeta

type TiDBClusterMeta struct {
	ClusterType    string `json:"cluster_type"`
	ClusterName    string `json:"cluster_name"`
	ClusterVersion string `json:"cluster_version"`
	DeployUser     string `json:"deploy_user"`
	SshType        string `json:"ssh_type"`
	TlsEnabled     bool   `json:"tls_enabled"`
	DashboardUrl   string `json:"dashboard_url"`
}

type TplSQLServer

type TplSQLServer struct {
	Name string
	Host string
	Port int
}

type TplTiupData

type TplTiupData struct {
	PD      []string
	TiDB    []string
	TiKV    []string
	TiCDC   []string
	DM      []string
	Monitor []string
}

func (TplTiupData) String

func (t TplTiupData) String() string

type TransitGateway

type TransitGateway struct {
	TransitGatewayId  string `json:"TransitGatewayId"`
	TransitGatewayArn string `json:"TransitGatewayArn`
	State             string `json:"State"`
}

type TransitGatewayVpcAttachment

type TransitGatewayVpcAttachment struct {
	TransitGatewayAttachmentId string `json:"TransitGatewayAttachmentId"`
	VpcId                      string `json:"VpcId"`
	State                      string `json:"State"`
	Tags                       []Tag  `json:"Tags"`
}

type TransitGatewayVpcAttachments

type TransitGatewayVpcAttachments struct {
	TransitGatewayVpcAttachments []TransitGatewayVpcAttachment `json:"TransitGatewayVpcAttachments"`
}

type TransitGateways

type TransitGateways struct {
	TransitGateways []TransitGateway `json:"TransitGateways"`
}

type UpdateMeta

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

UpdateMeta is used to maintain the cluster meta information

func (*UpdateMeta) Execute

func (u *UpdateMeta) Execute(ctx context.Context) error

Execute implements the Task interface the metadata especially the topology is in wide use, the other callers point to this field by a pointer, so we should update the original topology directly, and don't make a copy

func (*UpdateMeta) Rollback

func (u *UpdateMeta) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*UpdateMeta) String

func (u *UpdateMeta) String() string

String implements the fmt.Stringer interface

type UpdateTopology

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

UpdateTopology is used to maintain the cluster meta information

func (*UpdateTopology) Execute

func (u *UpdateTopology) Execute(ctx context.Context) error

Execute implements the Task interface

func (*UpdateTopology) Rollback

func (u *UpdateTopology) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (*UpdateTopology) String

func (u *UpdateTopology) String() string

String implements the fmt.Stringer interface

type UserSSH

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

UserSSH is used to establish a SSH connection to the target host with generated key

func (*UserSSH) Execute

func (s *UserSSH) Execute(ctx context.Context) error

Execute implements the Task interface

func (*UserSSH) Rollback

func (s *UserSSH) Rollback(ctx context.Context) error

Rollback implements the Task interface

func (UserSSH) String

func (s UserSSH) String() string

String implements the fmt.Stringer interface

type VPCPeeringConnection

type VPCPeeringConnection struct {
	Status                 VPCPeeringStatus `json:"Status"`
	RequesterVpcInfo       RequesterVpcInfo `json:"RequesterVpcInfo"`
	AccepterVpcInfo        AccepterVpcInfo  `json:"AccepterVpcInfo"`
	VpcPeeringConnectionId string           `json:"VpcPeeringConnectionId"`
}

type VPCPeeringConnections

type VPCPeeringConnections struct {
	VpcPeeringConnections []VPCPeeringConnection `json:"VpcPeeringConnections"`
}

type VPCPeeringStatus

type VPCPeeringStatus struct {
	Code    string `json:"Code"`
	Message string `json:""Message`
}

type VPCStatus

type VPCStatus struct {
	Code    string `json:"Code"`
	Message string `json:"Message"`
}

type Vpc

type Vpc struct {
	CidrBlock string `json:"CidrBlock"`
	State     string `json:"State"`
	VpcId     string `json:"VpcId"`
	OwnerId   string `json:"OwnerId"`
	Tags      []Tag  `json:"Tags"`
}

func (Vpc) String

func (v Vpc) String() string

type VpcConnection

type VpcConnection struct {
	VpcPeeringConnection VpcPeer `json:"VpcPeeringConnection"`
}

type VpcConnections

type VpcConnections struct {
	VpcPeeringConnections []VpcPeer `json:"VpcPeeringConnections"`
}

type VpcPeer

type VpcPeer struct {
	VpcPeeringConnectionId string    `json:"VpcPeeringConnectionId"`
	VpcStatus              VPCStatus `json:"Status"`
}

type Vpcs

type Vpcs struct {
	Vpcs []Vpc `json:"Vpcs"`
}

Jump to

Keyboard shortcuts

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