Documentation ¶
Index ¶
- Constants
- Variables
- func ExecuteDBInstance(texecutor ctxt.Executor, ctx context.Context, ...) error
- func ExistsDMSResource(clusterType, subClusterType, clusterName, resourceName string, ...) bool
- func ExistsELBResource(executor ctxt.Executor, ctx context.Context, ...) bool
- func ExistsResource(clusterType, subClusterType, clusterName, resourceName string, ...) bool
- func GetWSExecutor(texecutor ctxt.Executor, ctx context.Context, ...) (*ctxt.Executor, error)
- func SearchTiDBNode(clusterComponents []TiDBClusterComponent, host string) string
- func SearchVPCName(executor *ctxt.Executor, ctx context.Context, clusterKeyWord string) (*[]map[string]string, error)
- func WaitDBInstanceUntilActive(texecutor ctxt.Executor, ctx context.Context, clusterName string) error
- type ARNComponent
- type AcceptVPCPeering
- type AccepterVpcInfo
- type Attachment
- type AvailabilityZones
- type BackupComponent
- type Builder
- func (b *Builder) AcceptVPCPeering(pexecutor *ctxt.Executor) *Builder
- func (b *Builder) BackupComponent(component, fromVer string, host, deployDir string) *Builder
- func (b *Builder) Build() Task
- func (b *Builder) BuildAsStep(prefix string) *StepDisplay
- func (b *Builder) CheckSys(host, dir, checkType string, topo *spec.Specification, ...) *Builder
- func (b *Builder) ClusterOperate(spec *spec.Specification, op operator.Operation, options operator.Options, ...) *Builder
- func (b *Builder) ClusterSSH(topo spec.Topology, deployUser string, sshTimeout, exeTimeout uint64, ...) *Builder
- func (b *Builder) CopyComponent(component, os, arch string, version string, srcPath, dstHost, dstDir string) *Builder
- func (b *Builder) CopyFile(src, dst, server string, download bool, limit int) *Builder
- func (b *Builder) CreateAurora(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) CreateBasicResource(pexecutor *ctxt.Executor, subClusterType string, isPrivate bool, ...) *Builder
- func (b *Builder) CreateCloudFormation(pexecutor *ctxt.Executor, ...) *Builder
- func (b *Builder) CreateDBCluster(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateDBClusterParameterGroup(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateDBInstance(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateDBParameterGroup(pexecutor *ctxt.Executor, subClusterType, groupFamily string, ...) *Builder
- func (b *Builder) CreateDBSubnetGroup(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateDMNodes(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) CreateDMSInstance(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateDMSService(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) CreateDMSSourceEndpoint(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateDMSSubnetGroup(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateDMSTargetEndpoint(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateDMSTask(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateInternetGateway(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateMS(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) CreateNLB(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateNLBListener(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateNetwork(pexecutor *ctxt.Executor, subClusterType string, isPrivate bool, ...) *Builder
- func (b *Builder) CreatePDNodes(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) CreateRouteTable(pexecutor *ctxt.Executor, subClusterType string, isPrivate bool, ...) *Builder
- func (b *Builder) CreateRouteTgw(pexecutor *ctxt.Executor, subClusterType string, subClusterTypes []string) *Builder
- func (b *Builder) CreateSecurityGroup(pexecutor *ctxt.Executor, subClusterType string, isPrivate bool, ...) *Builder
- func (b *Builder) CreateSqlServer(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) CreateTargetGroup(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateTiCDCNodes(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) CreateTiDBCluster(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) CreateTiDBNLB(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateTiDBNodes(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) CreateTiKVNodes(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) CreateTransitGateway(pexecutor *ctxt.Executor) *Builder
- func (b *Builder) CreateTransitGatewayVpcAttachment(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) CreateVpc(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) CreateWorkstation(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) CreateWorkstationCluster(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) Deploy(user, host string) *Builder
- func (b *Builder) DeployPDNS(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) DeploySpark(inst spec.Instance, sparkVersion, srcPath, deployDir string) *Builder
- func (b *Builder) DeployTiCDC(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) DeployTiDB(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) DeployTiDBInstance(pexecutor *ctxt.Executor, awsWSConfigs *spec.AwsWSConfigs, ...) *Builder
- func (b *Builder) DeployWS(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) DestroyAurora(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) DestroyBasicResource(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyCloudFormation(pexecutor *ctxt.Executor) *Builder
- func (b *Builder) DestroyDBCluster(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyDBClusterParameterGroup(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyDBInstance(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyDBParameterGroup(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyDBSubnetGroup(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyDMSEndpoints(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyDMSInstance(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyDMSService(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyDMSSubnetGroup(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyDMSTask(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyEC(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyEC2Nodes(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyInternetGateway(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyNLB(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyNetwork(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyRouteTable(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroySecurityGroup(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroySqlServer(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) DestroyTargetGroup(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyTransitGateway(pexecutor *ctxt.Executor) *Builder
- func (b *Builder) DestroyTransitGatewayVpcAttachment(pexecutor *ctxt.Executor) *Builder
- func (b *Builder) DestroyTransitGateways(pexecutor *ctxt.Executor) *Builder
- func (b *Builder) DestroyVpc(pexecutor *ctxt.Executor, subClusterType string) *Builder
- func (b *Builder) DestroyVpcPeering(pexecutor *ctxt.Executor) *Builder
- func (b *Builder) Download(component, os, arch string, version string) *Builder
- func (b *Builder) EnvInit(host, deployUser string, userGroup string, skipCreateUser bool) *Builder
- func (b *Builder) Func(name string, fn func(ctx context.Context) error) *Builder
- func (b *Builder) InitConfig(clusterName, clusterVersion string, specManager *spec.SpecManager, ...) *Builder
- func (b *Builder) InstallPackage(srcPath, dstHost, dstDir string) *Builder
- func (b *Builder) Limit(host, domain, limit, item, value string) *Builder
- func (b *Builder) ListEC(pexecutor *ctxt.Executor, tableECs *[][]string) *Builder
- func (b *Builder) ListNLB(pexecutor *ctxt.Executor, subClusterType string, nlb *LoadBalancer) *Builder
- func (b *Builder) ListNetwork(pexecutor *ctxt.Executor, tableSubnets *[][]string) *Builder
- func (b *Builder) ListRouteTable(pexecutor *ctxt.Executor, tableRouteTables *[][]string) *Builder
- func (b *Builder) ListSecurityGroup(pexecutor *ctxt.Executor, tableSecurityGroups *[][]string) *Builder
- func (b *Builder) ListTransitGateway(pexecutor *ctxt.Executor, transitGateway *TransitGateway) *Builder
- func (b *Builder) ListTransitGatewayVpcAttachment(pexecutor *ctxt.Executor, tableTransitGatewayVpcAttachments *[][]string) *Builder
- func (b *Builder) ListVpc(pexecutor *ctxt.Executor, tableVPC *[][]string) *Builder
- func (b *Builder) MakeDBObjects(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) Mkdir(user, host string, dirs ...string) *Builder
- func (b *Builder) MonitoredConfig(name, comp, host string, globResCtl meta.ResourceControl, ...) *Builder
- func (b *Builder) Parallel(ignoreError bool, tasks ...Task) *Builder
- func (b *Builder) ParallelStep(prefix string, ignoreError bool, tasks ...*StepDisplay) *Builder
- func (b *Builder) PrepareSysbenchTiCDC(pexecutor *ctxt.Executor, identityFile string, scriptParam ScriptParam) *Builder
- func (b *Builder) RegisterTarget(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) Rmdir(host string, dirs ...string) *Builder
- func (b *Builder) RootSSH(host string, port int, user, password, keyFile, passphrase string, ...) *Builder
- func (b *Builder) SSHKeyGen(keypath string) *Builder
- func (b *Builder) SSHKeySet(privKeyPath, pubKeyPath string) *Builder
- func (b *Builder) ScaleConfig(clusterName, clusterVersion string, specManager *spec.SpecManager, ...) *Builder
- func (b *Builder) ScaleTiDB(pexecutor *ctxt.Executor, subClusterType string, ...) *Builder
- func (b *Builder) ScaleTiDBInstance(pexecutor *ctxt.Executor, subClusterType string, clusterInfo *ClusterInfo) *Builder
- func (b *Builder) Serial(tasks ...Task) *Builder
- func (b *Builder) Shell(host, command, cmdID string, sudo bool) *Builder
- func (b *Builder) Step(prefix string, inner Task) *Builder
- func (b *Builder) SysbenchTiCDC(pexecutor *ctxt.Executor, identityFile string, clusterTable *[][]string) *Builder
- func (b *Builder) Sysctl(host, key, val string) *Builder
- func (b *Builder) SystemCtl(host, unit, action string, daemonReload bool) *Builder
- func (b *Builder) TLSCert(host, comp, role string, port int, ca *crypto.CertificateAuthority, ...) *Builder
- func (b *Builder) UpdateMeta(cluster string, metadata *spec.ClusterMeta, deletedNodeIds []string) *Builder
- func (b *Builder) UpdateTopology(cluster, profile string, metadata *spec.ClusterMeta, deletedNodeIds []string) *Builder
- func (b *Builder) UserSSH(host string, port int, deployUser string, sshTimeout, exeTimeout uint64, ...) *Builder
- type ByComponentType
- type CDCTask
- type CDCTaskSummary
- type CheckSys
- type ClusterInfo
- type ClusterOperate
- type CopyComponent
- type CopyFile
- type CreateCloudFormation
- type CreateDBCluster
- type CreateDBClusterParameterGroup
- type CreateDBInstance
- type CreateDBParameterGroup
- type CreateDBSubnetGroup
- type CreateDMNodes
- type CreateDMSInstance
- type CreateDMSSourceEndpoint
- type CreateDMSSubnetGroup
- type CreateDMSTargetEndpoint
- type CreateDMSTask
- type CreateInternetGateway
- type CreateMS
- type CreateNLB
- type CreateNLBListener
- type CreateNetwork
- type CreatePDNodes
- type CreateRouteTable
- type CreateRouteTgw
- type CreateSecurityGroup
- type CreateTargetGroup
- type CreateTiCDCNodes
- type CreateTiDBNodes
- type CreateTiKVNodes
- type CreateTransitGateway
- type CreateTransitGatewayVpcAttachment
- type CreateVpc
- type CreateVpcPeering
- type CreateWorkstation
- type DBCluster
- type DBClusterParameterGroup
- type DBClusterParameterGroups
- type DBClusters
- type DBInstance
- type DBInstanceEndpoint
- type DBInstances
- type DBParameterGroup
- type DBParameterGroups
- type DBSubnetGroup
- type DBSubnetGroups
- type DMSSubnetGroup
- type DMSSubnetGroups
- type Deploy
- type DeployPDNS
- type DeployTiCDC
- type DeployTiDB
- type DeployTiDBInstance
- type DeployWS
- type DestroyCloudFormation
- type DestroyDBCluster
- type DestroyDBClusterParameterGroup
- type DestroyDBInstance
- type DestroyDBParameterGroup
- type DestroyDBSubnetGroup
- type DestroyDMSEndpoints
- type DestroyDMSInstance
- type DestroyDMSSubnetGroup
- type DestroyDMSTask
- type DestroyEC
- type DestroyInternetGateway
- type DestroyNLB
- type DestroyNetwork
- type DestroyRouteTable
- type DestroySecurityGroup
- type DestroyTargetGroup
- type DestroyTransitGateway
- type DestroyTransitGatewayVpcAttachment
- type DestroyVpc
- type DestroyVpcPeering
- type Downloader
- type EC2
- type EC2s
- type ECState
- type Endpoint
- type EndpointRecord
- type Endpoints
- type EnvInit
- type Func
- type InitConfig
- type InstallPackage
- type InternetGateway
- type InternetGateways
- type IpPermissions
- type IpRanges
- type Limit
- type List
- type ListAurora
- type ListEC
- type ListNLB
- type ListNetwork
- type ListRouteTable
- type ListSecurityGroup
- type ListTiDB2Aurora
- type ListTransitGateway
- type ListTransitGatewayVpcAttachment
- type ListVpc
- type LoadBalancer
- type LoadBalancers
- type MakeDBObjects
- type Mkdir
- type MonitoredConfig
- type NewDBCluster
- type NewDBClusterParameterGroup
- type NewDBInstance
- type NewDBParameterGroup
- type NewEC2
- type NewInternetGateway
- type Parallel
- type ParallelStepDisplay
- type PrepareSysbenchTiCDC
- type RegionZone
- type RegisterTarget
- type ReplicationInstance
- type ReplicationInstanceRecord
- type ReplicationInstances
- type ReplicationTask
- type ReplicationTaskRecord
- type ReplicationTasks
- type RequesterVpcInfo
- type Reservations
- type ResourceTag
- type ResultRouteTable
- type Rmdir
- type RootSSH
- type Route
- type RouteTable
- type RouteTables
- type SSHKeyGen
- type SSHKeySet
- type ScaleConfig
- type ScaleTiDB
- type ScriptParam
- type SecurityGroup
- type SecurityGroups
- type Serial
- type Shell
- type StepDisplay
- type Subnet
- type SubnetResult
- type Subnets
- type SysbenchTiCDC
- type Sysctl
- type SystemCtl
- type TLSCert
- type Tag
- type TagDescription
- type TagDescriptions
- type TagList
- type TargetGroup
- type TargetGroups
- type Task
- type TiDBClusterComponent
- type TiDBClusterDetail
- type TiDBClusterInfo
- type TiDBClusterInfos
- type TiDBClusterMeta
- type TplSQLServer
- type TplTiupData
- type TransitGateway
- type TransitGatewayVpcAttachment
- type TransitGatewayVpcAttachments
- type TransitGateways
- type UpdateMeta
- type UpdateTopology
- type UserSSH
- type VPCPeeringConnection
- type VPCPeeringConnections
- type VPCPeeringStatus
- type VPCStatus
- type Vpc
- type VpcConnection
- type VpcConnections
- type VpcPeer
- type Vpcs
Constants ¶
const (
CheckToolsPathDir = "/tmp/tiup"
)
place the check utilities are stored
Variables ¶
var ( CheckTypeSystemInfo = "insight" CheckTypeSystemLimits = "limits" CheckTypeSystemConfig = "system" CheckTypePort = "port" CheckTypeService = "service" CheckTypePackage = "package" CheckTypePartitions = "partitions" CheckTypeFIO = "fio" CheckTypePermission = "permission" )
the check types
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") )
var DBNAME string
var DMSInfo struct { SourceEndpointArn string TargetEndpointArn string ReplicationInstanceArn string }
var (
// ErrEnvInitFailed is ErrEnvInitFailed
ErrEnvInitFailed = errNSEnvInit.NewType("failed")
)
var SqlServerHost string
Functions ¶
func ExecuteDBInstance ¶
func ExistsDMSResource ¶
func ExistsELBResource ¶
func ExistsResource ¶
func GetWSExecutor ¶
func SearchTiDBNode ¶
func SearchTiDBNode(clusterComponents []TiDBClusterComponent, host string) string
func SearchVPCName ¶
Types ¶
type ARNComponent ¶
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 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 (*Builder) AcceptVPCPeering ¶
func (*Builder) BackupComponent ¶
BackupComponent appends a BackupComponent task to the current task collection
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) CreateAurora ¶
func (b *Builder) CreateAurora(pexecutor *ctxt.Executor, subClusterType string, awsAuroraConfigs *spec.AwsAuroraConfigs, clusterInfo *ClusterInfo) *Builder
func (*Builder) CreateBasicResource ¶
func (*Builder) CreateCloudFormation ¶
func (b *Builder) CreateCloudFormation(pexecutor *ctxt.Executor, awsCloudFormationConfigs *spec.AwsCloudFormationConfigs, cloudFormationType string, clusterInfo *ClusterInfo) *Builder
func (*Builder) CreateDBCluster ¶
func (*Builder) CreateDBClusterParameterGroup ¶
func (*Builder) CreateDBInstance ¶
func (*Builder) CreateDBParameterGroup ¶
func (*Builder) CreateDBSubnetGroup ¶
func (*Builder) CreateDMNodes ¶
func (b *Builder) CreateDMNodes(pexecutor *ctxt.Executor, subClusterType string, awsTopoConfigs *spec.AwsTopoConfigs, clusterInfo *ClusterInfo) *Builder
func (*Builder) CreateDMSInstance ¶
func (*Builder) CreateDMSService ¶
func (b *Builder) CreateDMSService(pexecutor *ctxt.Executor, subClusterType string, awsDMSConfigs *spec.AwsDMSConfigs, clusterInfo *ClusterInfo) *Builder
func (*Builder) CreateDMSSourceEndpoint ¶
func (*Builder) CreateDMSSubnetGroup ¶
func (*Builder) CreateDMSTargetEndpoint ¶
func (*Builder) CreateDMSTask ¶
func (*Builder) CreateInternetGateway ¶
func (*Builder) CreateMS ¶
func (b *Builder) CreateMS(pexecutor *ctxt.Executor, subClusterType string, awsMSConfigs *spec.AwsMSConfigs, clusterInfo *ClusterInfo) *Builder
func (*Builder) CreateNLBListener ¶
func (*Builder) CreateNetwork ¶
func (*Builder) CreatePDNodes ¶
func (b *Builder) CreatePDNodes(pexecutor *ctxt.Executor, subClusterType string, awsTopoConfigs *spec.AwsTopoConfigs, clusterInfo *ClusterInfo) *Builder
func (*Builder) CreateRouteTable ¶
func (*Builder) CreateRouteTgw ¶
func (*Builder) CreateSecurityGroup ¶
func (*Builder) CreateSqlServer ¶
func (b *Builder) CreateSqlServer(pexecutor *ctxt.Executor, subClusterType string, awsMSConfigs *spec.AwsMSConfigs, clusterInfo *ClusterInfo) *Builder
func (*Builder) CreateTargetGroup ¶
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 (*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 (*Builder) CreateTransitGatewayVpcAttachment ¶
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 ¶
GcloudCreateInstance appends a GcloudCreateInstance task to the current task collection
func (*Builder) DeployPDNS ¶
func (*Builder) DeploySpark ¶
DeploySpark deployes spark as dependency of TiSpark
func (*Builder) DeployTiCDC ¶
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) DestroyAurora ¶
func (*Builder) DestroyBasicResource ¶
func (*Builder) DestroyCloudFormation ¶
func (*Builder) DestroyDBCluster ¶
func (*Builder) DestroyDBClusterParameterGroup ¶
func (*Builder) DestroyDBInstance ¶
func (*Builder) DestroyDBParameterGroup ¶
func (*Builder) DestroyDBSubnetGroup ¶
func (*Builder) DestroyDMSEndpoints ¶
func (*Builder) DestroyDMSInstance ¶
func (*Builder) DestroyDMSService ¶
func (*Builder) DestroyDMSSubnetGroup ¶
func (*Builder) DestroyDMSTask ¶
func (*Builder) DestroyEC2Nodes ¶
func (*Builder) DestroyInternetGateway ¶
func (*Builder) DestroyNLB ¶
func (*Builder) DestroyNetwork ¶
func (*Builder) DestroyRouteTable ¶
func (*Builder) DestroySecurityGroup ¶
func (*Builder) DestroySqlServer ¶
func (*Builder) DestroyTargetGroup ¶
func (*Builder) DestroyTransitGateway ¶
func (*Builder) DestroyTransitGatewayVpcAttachment ¶
func (*Builder) DestroyTransitGateways ¶
func (*Builder) DestroyVpc ¶
func (*Builder) DestroyVpcPeering ¶
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 ¶
InstallPackage appends a InstallPackage task to the current task collection
func (*Builder) ListNetwork ¶
func (*Builder) ListRouteTable ¶
func (*Builder) ListSecurityGroup ¶
func (*Builder) ListTransitGateway ¶
func (b *Builder) ListTransitGateway(pexecutor *ctxt.Executor, transitGateway *TransitGateway) *Builder
func (*Builder) ListTransitGatewayVpcAttachment ¶
func (*Builder) MakeDBObjects ¶
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) 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 (*Builder) RegisterTarget ¶
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) 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 (*Builder) Step ¶
Step appends a new StepDisplay task, which will print single line progress for inner tasks.
func (*Builder) SysbenchTiCDC ¶
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 CheckSys ¶
type CheckSys struct {
// contains filtered or unexported fields
}
CheckSys performs checks of system information
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
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 ¶
func (c *CreateDBClusterParameterGroup) Execute(ctx context.Context) error
Execute implements the Task interface
func (*CreateDBClusterParameterGroup) Rollback ¶
func (c *CreateDBClusterParameterGroup) Rollback(ctx context.Context) error
Rollback implements the Task interface
func (*CreateDBClusterParameterGroup) String ¶
func (c *CreateDBClusterParameterGroup) String() 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
}
type CreateNLB ¶
type CreateNLB struct {
// contains filtered or unexported fields
}
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 (c *CreateTransitGatewayVpcAttachment) Execute(ctx context.Context) error
func (*CreateTransitGatewayVpcAttachment) Rollback ¶
func (c *CreateTransitGatewayVpcAttachment) Rollback(ctx context.Context) error
Rollback implements the Task interface
func (*CreateTransitGatewayVpcAttachment) String ¶
func (c *CreateTransitGatewayVpcAttachment) String() string
String implements the fmt.Stringer interface
type CreateVpc ¶
type CreateVpc struct {
// contains filtered or unexported fields
}
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 DBClusterParameterGroup ¶
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 DBInstances ¶
type DBInstances struct {
DBInstances []DBInstance `json:"DBInstances"`
}
type DBParameterGroup ¶
type DBParameterGroups ¶
type DBParameterGroups struct {
DBParameterGroups []DBParameterGroup `json:"DBParameterGroups"`
}
type DBSubnetGroup ¶
type DBSubnetGroups ¶
type DBSubnetGroups struct {
DBSubnetGroups []DBSubnetGroup `json:"DBSubnetGroups"`
}
type DMSSubnetGroup ¶
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
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
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 ¶
func (c *DestroyDBClusterParameterGroup) Execute(ctx context.Context) error
Execute implements the Task interface
func (*DestroyDBClusterParameterGroup) Rollback ¶
func (c *DestroyDBClusterParameterGroup) Rollback(ctx context.Context) error
Rollback implements the Task interface
func (*DestroyDBClusterParameterGroup) String ¶
func (c *DestroyDBClusterParameterGroup) String() 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
}
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) 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 (c *DestroyTransitGatewayVpcAttachment) Execute(ctx context.Context) error
func (*DestroyTransitGatewayVpcAttachment) Rollback ¶
func (c *DestroyTransitGatewayVpcAttachment) Rollback(ctx context.Context) error
Rollback implements the Task interface
func (*DestroyTransitGatewayVpcAttachment) String ¶
func (c *DestroyTransitGatewayVpcAttachment) String() 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) 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"` }
type EndpointRecord ¶
type EndpointRecord struct {
Endpoint Endpoint `json:"Endpoint"`
}
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
type Func ¶
type Func struct {
// contains filtered or unexported fields
}
Func wrap a closure.
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 Limit ¶
type Limit struct {
// contains filtered or unexported fields
}
Limit set a system limit on host
type List ¶
type List struct { User string Host string ArnComponents []ARNComponent }
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
}
type ListNLB ¶
type ListNLB struct {
// contains filtered or unexported fields
}
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 (c *ListTransitGatewayVpcAttachment) Execute(ctx context.Context) error
func (*ListTransitGatewayVpcAttachment) Rollback ¶
func (c *ListTransitGatewayVpcAttachment) Rollback(ctx context.Context) error
Rollback implements the Task interface
func (*ListTransitGatewayVpcAttachment) String ¶
func (c *ListTransitGatewayVpcAttachment) String() string
String implements the fmt.Stringer interface
type ListVpc ¶
type ListVpc struct {
// contains filtered or unexported fields
}
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
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 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
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 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) 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 Reservations ¶
type Reservations struct {
Reservations []EC2s `json:"Reservations"`
}
func ListClusterEc2s ¶
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
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
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
type SSHKeySet ¶
type SSHKeySet struct {
// contains filtered or unexported fields
}
SSHKeySet is used to set the Context private/public key path
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
}
type ScriptParam ¶
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
type Shell ¶
type Shell struct {
// contains filtered or unexported fields
}
Shell is used to create directory on the target host
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 SubnetResult ¶
type SubnetResult struct {
Subnet Subnet `json:"Subnet"`
}
func (SubnetResult) String ¶
func (r SubnetResult) 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
type SystemCtl ¶
type SystemCtl struct {
// contains filtered or unexported fields
}
SystemCtl run systemctl command on host
type TLSCert ¶
type TLSCert struct {
// contains filtered or unexported fields
}
TLSCert generates a certificate for instance
type TagDescription ¶
type TagDescription struct {
Tags []Tag `json:"Tags"`
}
type TagDescriptions ¶
type TagDescriptions struct {
TagDescriptions []TagDescription `json:"TagDescriptions"`
}
type TargetGroup ¶
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 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 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 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
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 Vpc ¶
type VpcConnection ¶
type VpcConnection struct {
VpcPeeringConnection VpcPeer `json:"VpcPeeringConnection"`
}
type VpcConnections ¶
type VpcConnections struct {
VpcPeeringConnections []VpcPeer `json:"VpcPeeringConnections"`
}
Source Files ¶
- action.go
- backup_component.go
- builder.go
- check.go
- cloud_formation.go
- common.go
- copy_component.go
- copy_file.go
- db_cluster.go
- db_cluster_parameter_group.go
- db_instance.go
- db_parameter_group.go
- db_subnet_group.go
- deploy.go
- deploy_pdns.go
- deploy_ticdc.go
- deploy_tidb.go
- deploy_tidb_instance.go
- dms.go
- dms_endpoint.go
- dms_instance.go
- dms_subnet_group.go
- dms_task.go
- download.go
- ec2.go
- env_init.go
- func.go
- init_config.go
- install_package.go
- internet_gateway.go
- limits.go
- list.go
- list_aurora.go
- list_tidb2aurora.go
- load_balancer.go
- make_db_objects.go
- mkdir.go
- monitored_config.go
- network.go
- rds.go
- rmdir.go
- route_table.go
- route_tgw.go
- scale_config.go
- scale_tidb.go
- security_group.go
- shell.go
- ssh.go
- ssh_keygen.go
- ssh_keyset.go
- step.go
- sysbench_ticdc.go
- sysctl.go
- systemd.go
- task.go
- tidb.go
- tls.go
- transit_gateway.go
- transit_gateway_vpc_attachment.go
- update_meta.go
- update_topology.go
- vpc.go
- vpc_peering.go