Documentation ¶
Index ¶
- type Native
- func (p *Native) BindCredential() error
- func (p *Native) CreateCheck() error
- func (p *Native) CreateK3sCluster() (err error)
- func (p *Native) DeleteK3sCluster(f bool) error
- func (p *Native) DescribeCluster(kubecfg string) *types.ClusterInfo
- func (p *Native) GenerateClusterName() string
- func (p *Native) GenerateManifest() []string
- func (p *Native) GenerateMasterExtraArgs(cluster *types.Cluster, master types.Node) string
- func (p *Native) GenerateWorkerExtraArgs(cluster *types.Cluster, worker types.Node) string
- func (p *Native) GetCluster(kubecfg string) *types.ClusterInfo
- func (p *Native) GetCreateFlags() []types.Flag
- func (p *Native) GetCredentialFlags() []types.Flag
- func (p *Native) GetDeleteFlags() []types.Flag
- func (p *Native) GetJoinFlags() []types.Flag
- func (p *Native) GetOptionFlags() []types.Flag
- func (p *Native) GetProviderName() string
- func (p *Native) GetProviderOptions(opt []byte) (interface{}, error)
- func (p *Native) GetSSHConfig() *types.SSH
- func (p *Native) GetSSHFlags() []types.Flag
- func (p *Native) GetUsageExample(action string) string
- func (p *Native) IsClusterExist() (bool, []string, error)
- func (p *Native) JoinCheck() error
- func (p *Native) JoinK3sNode() (err error)
- func (p *Native) MergeClusterOptions() error
- func (p *Native) SSHK3sNode(ip string) error
- func (p *Native) SetConfig(config []byte) error
- func (p *Native) SetOptions(opt []byte) error
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
BindCredential bind native credential.
func (*Native) CreateCheck ¶ added in v0.4.0
CreateCheck check create command and flags.
func (*Native) CreateK3sCluster ¶
CreateK3sCluster create K3S cluster.
func (*Native) DeleteK3sCluster ¶
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 ¶
GenerateClusterName generates and returns cluster name.
func (*Native) GenerateManifest ¶ added in v0.4.0
GenerateManifest generates manifest deploy command.
func (*Native) GenerateMasterExtraArgs ¶
GenerateMasterExtraArgs generates K3S master extra args.
func (*Native) GenerateWorkerExtraArgs ¶
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 ¶
GetCreateFlags returns native create flags.
func (*Native) GetCredentialFlags ¶
GetCredentialFlags return native credential flags.
func (*Native) GetDeleteFlags ¶
GetDeleteFlags return native delete flags.
func (*Native) GetJoinFlags ¶
GetJoinFlags returns native join flags.
func (*Native) GetOptionFlags ¶ added in v0.4.0
GetOptionFlags returns native option flags.
func (*Native) GetProviderName ¶
GetProviderName returns provider name.
func (*Native) GetProviderOptions ¶ added in v0.4.0
GetProviderOptions get provider options.
func (*Native) GetSSHConfig ¶ added in v0.4.0
GetSSHConfig return native ssh config.
func (*Native) GetSSHFlags ¶
GetSSHFlags returns native ssh flags.
func (*Native) GetUsageExample ¶ added in v0.3.0
GetUsageExample returns native usage example prompt.
func (*Native) IsClusterExist ¶
IsClusterExist determine if the cluster exists.
func (*Native) MergeClusterOptions ¶ added in v0.3.0
MergeClusterOptions merge native cluster options.
func (*Native) SetOptions ¶ added in v0.4.0
SetOptions set options.