Versions in this module Expand all Collapse all v0 v0.1.4 Nov 19, 2021 v0.1.3 Nov 19, 2021 v0.1.2 Nov 19, 2021 v0.1.1 Nov 19, 2021 v0.1.0 Nov 19, 2021 Changes in this version + const AWS_TAG_KEY + var AWS_REGIONS = map[string]string + type AWSClient struct + Config aws.Config + func NewAWSClient(key, secret, region string) AWSClient + func (c *AWSClient) CopyImage(imageId string, machineUuid string, sourceRegion string, destRegion string) (string, error) + func (c *AWSClient) CopySnapshot(snapshotId string, sourceRegion string, destRegion string) (string, error) + func (c *AWSClient) CreateImage(instanceId string, region string) (string, error) + func (c *AWSClient) CreateInstance(imageId string, instanceType types.InstanceType, securityGroupId string, ...) (string, error) + func (c *AWSClient) CreateNewVolume(instanceId string, size int32, region string) error + func (c *AWSClient) CreateRole() (AWSRole, error) + func (c *AWSClient) CreateSecurityGroup(streamSW StreamSoftware, region string) (AWSSecurityGroup, error) + func (c *AWSClient) CreateSnapshot(volumeId string, region string) (string, error) + func (c *AWSClient) CreateVolume(snapshotId string, region string) (string, error) + func (c *AWSClient) DeleteImage(imageId string, region string) error + func (c *AWSClient) DeleteSnapshot(snapshotId string, region string) error + func (c *AWSClient) DeleteVolume(volumeId string, region string) (bool, error) + func (c *AWSClient) GetAvailability(regionList []string) map[string]map[string]bool + func (c *AWSClient) GetGPUInstances(region string) []AWSGPUInstance + func (c *AWSClient) GetImageState(imageId string, region string) (types.ImageState, error) + func (c *AWSClient) GetInstanceState(instanceId string, region string) (types.InstanceStateName, error) + func (c *AWSClient) GetMachineData(imageId string, region string) (string, string, error) + func (c *AWSClient) GetPrices(region string) AWSPrices + func (c *AWSClient) GetRegions() []AWSRegion + func (c *AWSClient) GetRoles() ([]types.Role, error) + func (c *AWSClient) GetSecurityGroups(region string) ([]types.SecurityGroup, error) + func (c *AWSClient) GetSnapshotState(snapshotId string, region string) (types.SnapshotState, error) + func (c *AWSClient) GetSpotState(spotRequestId string, region string) (types.SpotInstanceState, string, *string, error) + func (c *AWSClient) GetVolumeModificationState(volumeId string, region string) (types.VolumeModificationState, error) + func (c *AWSClient) GetVolumeState(volumeId string, region string) (types.VolumeState, error) + func (c *AWSClient) GetWindowsAMIId(region string) (string, error) + func (c *AWSClient) IsValidAWSCredentials() (bool, error) + func (c *AWSClient) ModifyVolume(volumeId string, newSize int32, region string) (bool, error) + func (c *AWSClient) ResizeSnapshot(snapshotId string, newSize int32, region string) (string, error) + func (c *AWSClient) StartInstance(imageId string, snapshotId string, instanceType types.InstanceType, ...) (string, error) + func (c *AWSClient) TerminateInstance(instanceId string, region string) error + type AWSGPUInstance struct + InstanceType string + Price float64 + type AWSPrices struct + Bandwidth float64 + Snapshots float64 + Volume float64 + type AWSRegion struct + ID string + Name string + type AWSRole struct + Arn string + Created time.Time + Id int64 + RoleId string + RoleName string + func (a *AWSRole) TableName() string + type AWSSecurityGroup struct + Created time.Time + GroupId string + Id int64 + Region string + StreamSoftware string + func (sg *AWSSecurityGroup) TableName() string + type StreamSoftware string + const MOONLIGHT + const PARSEC + func (s StreamSoftware) String() string