Documentation ¶
Index ¶
- type Google
- func (p *Google) BindCredential() error
- func (p *Google) CreateCheck() error
- func (p *Google) CreateK3sCluster() error
- func (p *Google) DeleteK3sCluster(f bool) error
- func (p *Google) DescribeCluster(kubecfg string) *types.ClusterInfo
- func (p *Google) GenerateClusterName() string
- func (p *Google) GenerateManifest() []string
- func (p *Google) GenerateMasterExtraArgs(cluster *types.Cluster, master types.Node) string
- func (p *Google) GenerateWorkerExtraArgs(cluster *types.Cluster, worker types.Node) string
- func (p *Google) GetCluster(kubecfg string) *types.ClusterInfo
- func (p *Google) GetCreateFlags() []types.Flag
- func (p *Google) GetCredentialFlags() []types.Flag
- func (p *Google) GetDeleteFlags() []types.Flag
- func (p *Google) GetJoinFlags() []types.Flag
- func (p *Google) GetOptionFlags() []types.Flag
- func (p *Google) GetProviderName() string
- func (p *Google) GetProviderOptions(opt []byte) (interface{}, error)
- func (p *Google) GetSSHConfig() *types.SSH
- func (p *Google) GetSSHFlags() []types.Flag
- func (p *Google) GetUsageExample(action string) string
- func (p *Google) IsClusterExist() (bool, []string, error)
- func (p *Google) JoinCheck() error
- func (p *Google) JoinK3sNode() error
- func (p *Google) MergeClusterOptions() error
- func (p *Google) SSHK3sNode(ip string) error
- func (p *Google) SetConfig(config []byte) error
- func (p *Google) SetOptions(opt []byte) error
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 ¶
BindCredential bind google credential.
func (*Google) CreateCheck ¶
CreateCheck check create command and flags.
func (*Google) CreateK3sCluster ¶
CreateK3sCluster create K3S cluster on Google Cloud Provider.
func (*Google) DeleteK3sCluster ¶
DeleteK3sCluster delete K3S cluster.
func (*Google) DescribeCluster ¶
func (p *Google) DescribeCluster(kubecfg string) *types.ClusterInfo
DescribeCluster describe cluster info.
func (*Google) GenerateClusterName ¶
GenerateClusterName generates and returns cluster name.
func (*Google) GenerateManifest ¶
func (*Google) GenerateMasterExtraArgs ¶
func (*Google) GenerateWorkerExtraArgs ¶
func (*Google) GetCluster ¶
func (p *Google) GetCluster(kubecfg string) *types.ClusterInfo
GetCluster returns cluster status.
func (*Google) GetCreateFlags ¶
GetCreateFlags returns google create flags.
func (*Google) GetCredentialFlags ¶
GetCredentialFlags return google credential flags.
func (*Google) GetDeleteFlags ¶
GetDeleteFlags returns google option flags.
func (*Google) GetJoinFlags ¶
GetJoinFlags returns google join flags.
func (*Google) GetOptionFlags ¶
GetOptionFlags returns google option flags.
func (*Google) GetProviderName ¶
GetProviderName returns provider name.
func (*Google) GetProviderOptions ¶
GetProviderOptions return Google Cloud Provider options.
func (*Google) GetSSHConfig ¶
GetSSHConfig returns google ssh config.
func (*Google) GetSSHFlags ¶
GetSSHFlags returns google ssh flags.
func (*Google) GetUsageExample ¶
GetUsageExample return cli usage example for provider
func (*Google) IsClusterExist ¶
IsClusterExist determine if the cluster exists.
func (*Google) JoinK3sNode ¶
JoinK3sNode join K3S node for exist cluster on Google Cloud Provider.
func (*Google) MergeClusterOptions ¶
MergeClusterOptions merge google cluster options.
func (*Google) SSHK3sNode ¶
func (*Google) SetOptions ¶
SetOptions merge option struct for Google Cloud Provider