tencent

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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

func (p *Tencent) BindCredential() error

BindCredential bind tencent credential.

func (*Tencent) CreateCheck added in v0.4.0

func (p *Tencent) CreateCheck() error

CreateCheck check create command and flags.

func (*Tencent) CreateK3sCluster

func (p *Tencent) CreateK3sCluster() (err error)

CreateK3sCluster create K3S cluster.

func (*Tencent) DeleteK3sCluster

func (p *Tencent) DeleteK3sCluster(f bool) error

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

func (p *Tencent) GenerateClusterName() string

GenerateClusterName generates and returns cluster name.

func (*Tencent) GenerateManifest added in v0.4.0

func (p *Tencent) GenerateManifest() []string

GenerateManifest generates manifest deploy command.

func (*Tencent) GenerateMasterExtraArgs

func (p *Tencent) GenerateMasterExtraArgs(cluster *types.Cluster, master types.Node) string

GenerateMasterExtraArgs generates K3S master extra args.

func (*Tencent) GenerateWorkerExtraArgs

func (p *Tencent) GenerateWorkerExtraArgs(cluster *types.Cluster, worker types.Node) string

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

func (p *Tencent) GetCreateFlags() []types.Flag

GetCreateFlags returns tencent create flags.

func (*Tencent) GetCredentialFlags

func (p *Tencent) GetCredentialFlags() []types.Flag

GetCredentialFlags returns tencent credential flags.

func (*Tencent) GetDeleteFlags

func (p *Tencent) GetDeleteFlags() []types.Flag

GetDeleteFlags returns tencent delete flags.

func (*Tencent) GetJoinFlags

func (p *Tencent) GetJoinFlags() []types.Flag

GetJoinFlags returns tencent join flags.

func (*Tencent) GetOptionFlags added in v0.4.0

func (p *Tencent) GetOptionFlags() []types.Flag

GetOptionFlags returns tencent option flags.

func (*Tencent) GetProviderName

func (p *Tencent) GetProviderName() string

GetProviderName returns provider name.

func (*Tencent) GetProviderOptions added in v0.4.0

func (p *Tencent) GetProviderOptions(opt []byte) (interface{}, error)

GetProviderOptions get provider options.

func (*Tencent) GetSSHConfig added in v0.4.0

func (p *Tencent) GetSSHConfig() *types.SSH

GetSSHConfig returns tencent ssh config.

func (*Tencent) GetSSHFlags

func (p *Tencent) GetSSHFlags() []types.Flag

GetSSHFlags returns tencent ssh flags.

func (*Tencent) GetUsageExample added in v0.3.0

func (p *Tencent) GetUsageExample(action string) string

GetUsageExample returns tencent usage example prompt.

func (*Tencent) IsClusterExist

func (p *Tencent) IsClusterExist() (bool, []string, error)

IsClusterExist determine if the cluster exists.

func (*Tencent) JoinCheck added in v0.4.0

func (p *Tencent) JoinCheck() error

JoinCheck check join command and flags.

func (*Tencent) JoinK3sNode

func (p *Tencent) JoinK3sNode() (err error)

JoinK3sNode join K3S node.

func (*Tencent) MergeClusterOptions added in v0.3.0

func (p *Tencent) MergeClusterOptions() error

MergeClusterOptions merge tencent options.

func (*Tencent) SSHK3sNode

func (p *Tencent) SSHK3sNode(ip string) error

SSHK3sNode ssh K3s node.

func (*Tencent) SetConfig added in v0.4.0

func (p *Tencent) SetConfig(config []byte) error

SetConfig set cluster config.

func (*Tencent) SetOptions added in v0.4.0

func (p *Tencent) SetOptions(opt []byte) error

SetOptions set options.

Jump to

Keyboard shortcuts

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