native

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderName = "native"

ProviderName is the name of this provider.

Variables

This section is empty.

Functions

This section is empty.

Types

type Native

type Native struct {
	types.Metadata `json:",inline"`
	native.Options `json:",inline"`
	types.Status   `json:"status"`
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider() *Native

func (*Native) BindCredentialFlags

func (p *Native) BindCredentialFlags() *pflag.FlagSet

func (*Native) CommandNotSupport

func (p *Native) CommandNotSupport(commandName string) error

func (*Native) CreateK3sCluster

func (p *Native) CreateK3sCluster(ssh *types.SSH) (err error)

func (*Native) DeleteK3sCluster

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

func (*Native) GenerateClusterName

func (p *Native) GenerateClusterName()

func (*Native) GenerateMasterExtraArgs

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

func (*Native) GenerateWorkerExtraArgs

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

func (*Native) GetCreateFlags

func (p *Native) GetCreateFlags(cmd *cobra.Command) *pflag.FlagSet

func (*Native) GetCredentialFlags

func (p *Native) GetCredentialFlags(cmd *cobra.Command) *pflag.FlagSet

func (*Native) GetDeleteFlags

func (p *Native) GetDeleteFlags(cmd *cobra.Command) *pflag.FlagSet

func (*Native) GetJoinFlags

func (p *Native) GetJoinFlags(cmd *cobra.Command) *pflag.FlagSet

func (*Native) GetProviderName

func (p *Native) GetProviderName() string

func (*Native) GetSSHFlags

func (p *Native) GetSSHFlags(cmd *cobra.Command) *pflag.FlagSet

func (*Native) GetStartFlags

func (p *Native) GetStartFlags(cmd *cobra.Command) *pflag.FlagSet

func (*Native) GetStopFlags

func (p *Native) GetStopFlags(cmd *cobra.Command) *pflag.FlagSet

func (*Native) IsClusterExist

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

func (*Native) JoinK3sNode

func (p *Native) JoinK3sNode(ssh *types.SSH) (err error)

func (*Native) Rollback

func (p *Native) Rollback() error

func (*Native) SSHK3sNode

func (p *Native) SSHK3sNode(ssh *types.SSH) error

func (*Native) StartK3sCluster

func (p *Native) StartK3sCluster() error

func (*Native) StopK3sCluster

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

Jump to

Keyboard shortcuts

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