Documentation ¶
Index ¶
- type Tencent
- func (p *Tencent) BindCredential() error
- func (p *Tencent) CreateCheck() error
- func (p *Tencent) CreateK3sCluster() (err error)
- func (p *Tencent) DeleteK3sCluster(f bool) error
- func (p *Tencent) DescribeCluster(kubecfg string) *types.ClusterInfo
- func (p *Tencent) GenerateClusterName() string
- func (p *Tencent) GenerateManifest() []string
- func (p *Tencent) GenerateMasterExtraArgs(cluster *types.Cluster, master types.Node) string
- func (p *Tencent) GenerateWorkerExtraArgs(cluster *types.Cluster, worker types.Node) string
- func (p *Tencent) GetCluster(kubecfg string) *types.ClusterInfo
- func (p *Tencent) GetCreateFlags() []types.Flag
- func (p *Tencent) GetCredentialFlags() []types.Flag
- func (p *Tencent) GetDeleteFlags() []types.Flag
- func (p *Tencent) GetJoinFlags() []types.Flag
- func (p *Tencent) GetOptionFlags() []types.Flag
- func (p *Tencent) GetProviderName() string
- func (p *Tencent) GetProviderOptions(opt []byte) (interface{}, error)
- func (p *Tencent) GetSSHConfig() *types.SSH
- func (p *Tencent) GetSSHFlags() []types.Flag
- func (p *Tencent) GetUsageExample(action string) string
- func (p *Tencent) IsClusterExist() (bool, []string, error)
- func (p *Tencent) JoinCheck() error
- func (p *Tencent) JoinK3sNode() (err error)
- func (p *Tencent) MergeClusterOptions() error
- func (p *Tencent) SSHK3sNode(ip string) error
- func (p *Tencent) SetConfig(config []byte) error
- func (p *Tencent) SetOptions(opt []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tencent ¶
type Tencent struct { *cluster.ProviderBase `json:",inline"` tencent.Options `json:",inline"` // contains filtered or unexported fields }
Tencent provider tencent struct.
func (*Tencent) BindCredential ¶ added in v0.4.0
BindCredential bind tencent credential.
func (*Tencent) CreateCheck ¶ added in v0.4.0
CreateCheck check create command and flags.
func (*Tencent) CreateK3sCluster ¶
CreateK3sCluster create K3S cluster.
func (*Tencent) DeleteK3sCluster ¶
DeleteK3sCluster delete K3S cluster.
func (*Tencent) DescribeCluster ¶ added in v0.3.0
func (p *Tencent) DescribeCluster(kubecfg string) *types.ClusterInfo
DescribeCluster describe cluster info.
func (*Tencent) GenerateClusterName ¶
GenerateClusterName generates and returns cluster name.
func (*Tencent) GenerateManifest ¶ added in v0.4.0
GenerateManifest generates manifest deploy command.
func (*Tencent) GenerateMasterExtraArgs ¶
GenerateMasterExtraArgs generates K3S master extra args.
func (*Tencent) GenerateWorkerExtraArgs ¶
GenerateWorkerExtraArgs generates K3S worker extra args.
func (*Tencent) GetCluster ¶ added in v0.3.0
func (p *Tencent) GetCluster(kubecfg string) *types.ClusterInfo
GetCluster returns cluster status.
func (*Tencent) GetCreateFlags ¶
GetCreateFlags returns tencent create flags.
func (*Tencent) GetCredentialFlags ¶
GetCredentialFlags returns tencent credential flags.
func (*Tencent) GetDeleteFlags ¶
GetDeleteFlags returns tencent delete flags.
func (*Tencent) GetJoinFlags ¶
GetJoinFlags returns tencent join flags.
func (*Tencent) GetOptionFlags ¶ added in v0.4.0
GetOptionFlags returns tencent option flags.
func (*Tencent) GetProviderName ¶
GetProviderName returns provider name.
func (*Tencent) GetProviderOptions ¶ added in v0.4.0
GetProviderOptions get provider options.
func (*Tencent) GetSSHConfig ¶ added in v0.4.0
GetSSHConfig returns tencent ssh config.
func (*Tencent) GetSSHFlags ¶
GetSSHFlags returns tencent ssh flags.
func (*Tencent) GetUsageExample ¶ added in v0.3.0
GetUsageExample returns tencent usage example prompt.
func (*Tencent) IsClusterExist ¶
IsClusterExist determine if the cluster exists.
func (*Tencent) JoinK3sNode ¶
JoinK3sNode join K3S node.
func (*Tencent) MergeClusterOptions ¶ added in v0.3.0
MergeClusterOptions merge tencent options.
func (*Tencent) SetOptions ¶ added in v0.4.0
SetOptions set options.