Documentation ¶
Index ¶
- type Amazon
- func (p *Amazon) BindCredential() error
- func (p *Amazon) CreateCheck() error
- func (p *Amazon) CreateK3sCluster() (err error)
- func (p *Amazon) DeleteK3sCluster(f bool) (err error)
- func (p *Amazon) DescribeCluster(kubecfg string) *types.ClusterInfo
- func (p *Amazon) GenerateClusterName() string
- func (p *Amazon) GenerateManifest() []string
- func (p *Amazon) GenerateMasterExtraArgs(cluster *types.Cluster, master types.Node) string
- func (p *Amazon) GenerateWorkerExtraArgs(cluster *types.Cluster, worker types.Node) string
- func (p *Amazon) GetCluster(kubecfg string) *types.ClusterInfo
- func (p *Amazon) GetCreateFlags() []types.Flag
- func (p *Amazon) GetCredentialFlags() []types.Flag
- func (p *Amazon) GetDeleteFlags() []types.Flag
- func (p *Amazon) GetJoinFlags() []types.Flag
- func (p *Amazon) GetOptionFlags() []types.Flag
- func (p *Amazon) GetProviderName() string
- func (p *Amazon) GetProviderOptions(opt []byte) (interface{}, error)
- func (p *Amazon) GetSSHConfig() *types.SSH
- func (p *Amazon) GetSSHFlags() []types.Flag
- func (p *Amazon) GetUsageExample(action string) string
- func (p *Amazon) IsClusterExist() (bool, []string, error)
- func (p *Amazon) JoinCheck() error
- func (p *Amazon) JoinK3sNode() (err error)
- func (p *Amazon) MergeClusterOptions() error
- func (p *Amazon) Rollback() error
- func (p *Amazon) SSHK3sNode(ip string) error
- func (p *Amazon) SetConfig(config []byte) error
- func (p *Amazon) SetOptions(opt []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Amazon ¶
type Amazon struct { *cluster.ProviderBase `json:",inline"` typesaws.Options `json:",inline"` // contains filtered or unexported fields }
Amazon provider amazon struct.
func (*Amazon) BindCredential ¶
BindCredential bind aws credential.
func (*Amazon) CreateCheck ¶
CreateCheck check create command and flags.
func (*Amazon) CreateK3sCluster ¶
CreateK3sCluster create K3S cluster.
func (*Amazon) DeleteK3sCluster ¶
DeleteK3sCluster delete K3S cluster.
func (*Amazon) DescribeCluster ¶
func (p *Amazon) DescribeCluster(kubecfg string) *types.ClusterInfo
DescribeCluster describe cluster info.
func (*Amazon) GenerateClusterName ¶
GenerateClusterName generates and returns cluster name.
func (*Amazon) GenerateManifest ¶
GenerateManifest generates manifest deploy command.
func (*Amazon) GenerateMasterExtraArgs ¶
GenerateMasterExtraArgs generates K3S master extra args.
func (*Amazon) GenerateWorkerExtraArgs ¶
GenerateWorkerExtraArgs generates K3S worker extra args.
func (*Amazon) GetCluster ¶
func (p *Amazon) GetCluster(kubecfg string) *types.ClusterInfo
GetCluster returns cluster status.
func (*Amazon) GetCreateFlags ¶
GetCreateFlags returns aws create flags.
func (*Amazon) GetCredentialFlags ¶
GetCredentialFlags return aws credential flags.
func (*Amazon) GetDeleteFlags ¶
GetDeleteFlags returns aws option flags.
func (*Amazon) GetJoinFlags ¶
GetJoinFlags returns aws join flags.
func (*Amazon) GetOptionFlags ¶
GetOptionFlags returns aws option flags.
func (*Amazon) GetProviderName ¶
GetProviderName returns provider name.
func (*Amazon) GetProviderOptions ¶
GetProviderOptions get provider options.
func (*Amazon) GetSSHConfig ¶
GetSSHConfig returns aws ssh config.
func (*Amazon) GetSSHFlags ¶
GetSSHFlags returns aws ssh flags.
func (*Amazon) GetUsageExample ¶
GetUsageExample returns aws usage example prompt.
func (*Amazon) IsClusterExist ¶
IsClusterExist determine if the cluster exists.
func (*Amazon) MergeClusterOptions ¶
MergeClusterOptions merge aws cluster options.