google

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Google

type Google struct {
	*cluster.ProviderBase `json:",inline"`
	typesgoogle.Options   `json:",inline"`
	// contains filtered or unexported fields
}

Google provider

func (*Google) BindCredential

func (p *Google) BindCredential() error

BindCredential bind google credential.

func (*Google) CreateCheck

func (p *Google) CreateCheck() error

CreateCheck check create command and flags.

func (*Google) CreateK3sCluster

func (p *Google) CreateK3sCluster() error

CreateK3sCluster create K3S cluster on Google Cloud Provider.

func (*Google) DeleteK3sCluster

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

DeleteK3sCluster delete K3S cluster.

func (*Google) DescribeCluster

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

DescribeCluster describe cluster info.

func (*Google) GenerateClusterName

func (p *Google) GenerateClusterName() string

GenerateClusterName generates and returns cluster name.

func (*Google) GenerateManifest

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

func (*Google) GenerateMasterExtraArgs

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

func (*Google) GenerateWorkerExtraArgs

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

func (*Google) GetCluster

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

GetCluster returns cluster status.

func (*Google) GetCreateFlags

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

GetCreateFlags returns google create flags.

func (*Google) GetCredentialFlags

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

GetCredentialFlags return google credential flags.

func (*Google) GetDeleteFlags

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

GetDeleteFlags returns google option flags.

func (*Google) GetJoinFlags

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

GetJoinFlags returns google join flags.

func (*Google) GetOptionFlags

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

GetOptionFlags returns google option flags.

func (*Google) GetProviderName

func (p *Google) GetProviderName() string

GetProviderName returns provider name.

func (*Google) GetProviderOptions

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

GetProviderOptions return Google Cloud Provider options.

func (*Google) GetSSHConfig

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

GetSSHConfig returns google ssh config.

func (*Google) GetSSHFlags

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

GetSSHFlags returns google ssh flags.

func (*Google) GetUsageExample

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

GetUsageExample return cli usage example for provider

func (*Google) IsClusterExist

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

IsClusterExist determine if the cluster exists.

func (*Google) JoinCheck

func (p *Google) JoinCheck() error

JoinCheck check join command and flags.

func (*Google) JoinK3sNode

func (p *Google) JoinK3sNode() error

JoinK3sNode join K3S node for exist cluster on Google Cloud Provider.

func (*Google) MergeClusterOptions

func (p *Google) MergeClusterOptions() error

MergeClusterOptions merge google cluster options.

func (*Google) SSHK3sNode

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

func (*Google) SetConfig

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

SetConfig merge cluster config for Google Cloud Provider.

func (*Google) SetOptions

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

SetOptions merge option struct for Google Cloud Provider

Jump to

Keyboard shortcuts

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