Versions in this module Expand all Collapse all v1 v1.0.0 Nov 14, 2024 Changes in this version + var ErrNoAddressFound = errors.New("unable to get public IP address info on AWS") + var ErrNoInstanceState = errors.New("unable to get instance state") + var ErrNodeNotFoundToBeRunning = errors.New("node not found to be running") + func CheckIPInSg(sg *types.SecurityGroup, currentIP string, port int32) bool + type AwsCloud struct + func NewAwsCloud(awsProfile, region string) (*AwsCloud, error) + func (c *AwsCloud) AddSecurityGroupRule(groupID, direction, protocol, ip string, port int32) error + func (c *AwsCloud) AssociateEIP(instanceID, allocationID string) error + func (c *AwsCloud) ChangeInstanceType(instanceID, instanceType string) error + func (c *AwsCloud) CheckKeyPairExists(kpName string) (bool, error) + func (c *AwsCloud) CheckSecurityGroupExists(sgName string) (bool, types.SecurityGroup, error) + func (c *AwsCloud) CreateAndDownloadKeyPair(keyName string, privateKeyFilePath string) error + func (c *AwsCloud) CreateEC2Instances(prefix string, count int, amiID, instanceType, keyName, securityGroupID string, ...) ([]string, error) + func (c *AwsCloud) CreateEIP(prefix string) (string, string, error) + func (c *AwsCloud) CreateSecurityGroup(groupName, description string) (string, error) + func (c *AwsCloud) DeleteSecurityGroupRule(groupID, direction, protocol, ip string, port int32) error + func (c *AwsCloud) DestroyAWSNode(nodeConfig models.NodeConfig, clusterName string) error + func (c *AwsCloud) DestroyInstance(instanceID, publicIP string, releasePublicIP bool) error + func (c *AwsCloud) GetInstancePublicIPs(nodeIDs []string) (map[string]string, error) + func (c *AwsCloud) GetInstanceTypeArch(instanceType string) (string, error) + func (c *AwsCloud) GetRootVolumeID(instanceID string) (string, error) + func (c *AwsCloud) GetUbuntuAMIID(arch string, ubuntuVerLTS string) (string, error) + func (c *AwsCloud) IsInstanceTypeSupported(instanceType string) (bool, error) + func (c *AwsCloud) ListRegions() ([]string, error) + func (c *AwsCloud) ResizeVolume(volumeID string, newSizeInGB int32) error + func (c *AwsCloud) SetupSecurityGroup(ipAddress, securityGroupName string) (string, error) + func (c *AwsCloud) UploadSSHIdentityKeyPair(keyName string, identity string) error + func (c *AwsCloud) WaitForEC2Instances(nodeIDs []string, state types.InstanceStateName) error + func (c *AwsCloud) WaitForVolumeModificationState(volumeID string, targetState string, timeout time.Duration) error