aws

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

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

func (p *Amazon) BindCredential() error

BindCredential bind aws credential.

func (*Amazon) CreateCheck

func (p *Amazon) CreateCheck() error

CreateCheck check create command and flags.

func (*Amazon) CreateK3sCluster

func (p *Amazon) CreateK3sCluster() (err error)

CreateK3sCluster create K3S cluster.

func (*Amazon) DeleteK3sCluster

func (p *Amazon) DeleteK3sCluster(f bool) (err error)

DeleteK3sCluster delete K3S cluster.

func (*Amazon) DescribeCluster

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

DescribeCluster describe cluster info.

func (*Amazon) GenerateClusterName

func (p *Amazon) GenerateClusterName() string

GenerateClusterName generates and returns cluster name.

func (*Amazon) GenerateManifest

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

GenerateManifest generates manifest deploy command.

func (*Amazon) GenerateMasterExtraArgs

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

GenerateMasterExtraArgs generates K3S master extra args.

func (*Amazon) GenerateWorkerExtraArgs

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

GenerateWorkerExtraArgs generates K3S worker extra args.

func (*Amazon) GetCluster

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

GetCluster returns cluster status.

func (*Amazon) GetCreateFlags

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

GetCreateFlags returns aws create flags.

func (*Amazon) GetCredentialFlags

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

GetCredentialFlags return aws credential flags.

func (*Amazon) GetDeleteFlags

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

GetDeleteFlags returns aws option flags.

func (*Amazon) GetJoinFlags

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

GetJoinFlags returns aws join flags.

func (*Amazon) GetOptionFlags

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

GetOptionFlags returns aws option flags.

func (*Amazon) GetProviderName

func (p *Amazon) GetProviderName() string

GetProviderName returns provider name.

func (*Amazon) GetProviderOptions

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

GetProviderOptions get provider options.

func (*Amazon) GetSSHConfig

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

GetSSHConfig returns aws ssh config.

func (*Amazon) GetSSHFlags

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

GetSSHFlags returns aws ssh flags.

func (*Amazon) GetUsageExample

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

GetUsageExample returns aws usage example prompt.

func (*Amazon) IsClusterExist

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

IsClusterExist determine if the cluster exists.

func (*Amazon) JoinCheck

func (p *Amazon) JoinCheck() error

JoinCheck check join command and flags.

func (*Amazon) JoinK3sNode

func (p *Amazon) JoinK3sNode() (err error)

JoinK3sNode join K3S node.

func (*Amazon) MergeClusterOptions

func (p *Amazon) MergeClusterOptions() error

MergeClusterOptions merge aws cluster options.

func (*Amazon) SSHK3sNode

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

SSHK3sNode ssh K3s node.

func (*Amazon) SetConfig

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

SetConfig set cluster config.

func (*Amazon) SetOptions

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

SetOptions set options.

func (*Amazon) UpgradeK3sCluster added in v0.5.2

func (p *Amazon) UpgradeK3sCluster(clusterName, installScript, channel, version, packageName, packagePath string) error

UpgradeK3sCluster AWS Customized k3s upgrade

Jump to

Keyboard shortcuts

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