native

package
v0.5.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Native

type Native struct {
	*cluster.ProviderBase `json:",inline"`
	native.Options        `json:",inline"`
}

Native provider native struct.

func (*Native) BindCredential added in v0.4.0

func (p *Native) BindCredential() error

BindCredential bind native credential.

func (*Native) CreateCheck added in v0.4.0

func (p *Native) CreateCheck() error

CreateCheck check create command and flags.

func (*Native) CreateK3sCluster

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

CreateK3sCluster create K3S cluster.

func (*Native) DeleteK3sCluster

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

DeleteK3sCluster delete K3S cluster.

func (*Native) DescribeCluster added in v0.3.0

func (p *Native) DescribeCluster(kubecfg string) *types.ClusterInfo

DescribeCluster describe cluster info.

func (*Native) GenerateClusterName

func (p *Native) GenerateClusterName() string

GenerateClusterName generates and returns cluster name.

func (*Native) GenerateManifest added in v0.4.0

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

GenerateManifest generates manifest deploy command.

func (*Native) GenerateMasterExtraArgs

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

GenerateMasterExtraArgs generates K3S master extra args.

func (*Native) GenerateWorkerExtraArgs

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

GenerateWorkerExtraArgs generates K3S worker extra args.

func (*Native) GetCluster added in v0.3.0

func (p *Native) GetCluster(kubecfg string) *types.ClusterInfo

GetCluster returns cluster status.

func (*Native) GetCreateFlags

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

GetCreateFlags returns native create flags.

func (*Native) GetCredentialFlags

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

GetCredentialFlags return native credential flags.

func (*Native) GetDeleteFlags

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

GetDeleteFlags return native delete flags.

func (*Native) GetJoinFlags

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

GetJoinFlags returns native join flags.

func (*Native) GetOptionFlags added in v0.4.0

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

GetOptionFlags returns native option flags.

func (*Native) GetProviderName

func (p *Native) GetProviderName() string

GetProviderName returns provider name.

func (*Native) GetProviderOptions added in v0.4.0

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

GetProviderOptions get provider options.

func (*Native) GetSSHConfig added in v0.4.0

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

GetSSHConfig return native ssh config.

func (*Native) GetSSHFlags

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

GetSSHFlags returns native ssh flags.

func (*Native) GetUsageExample added in v0.3.0

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

GetUsageExample returns native usage example prompt.

func (*Native) IsClusterExist

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

IsClusterExist determine if the cluster exists.

func (*Native) JoinCheck added in v0.4.0

func (p *Native) JoinCheck() error

JoinCheck check join command and flags.

func (*Native) JoinK3sNode

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

JoinK3sNode join K3S node.

func (*Native) MergeClusterOptions added in v0.3.0

func (p *Native) MergeClusterOptions() error

MergeClusterOptions merge native cluster options.

func (*Native) SSHK3sNode

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

SSHK3sNode ssh K3s node.

func (*Native) SetConfig added in v0.4.0

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

SetConfig set cluster config.

func (*Native) SetOptions added in v0.4.0

func (p *Native) 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