Documentation
¶
Index ¶
- Constants
- Variables
- type 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
- type AWSPrices
- type AWSRegion
- type AWSRole
- type AWSSecurityGroup
- type StreamSoftware
Constants ¶
View Source
const (
AWS_TAG_KEY string = "lakitu"
)
Variables ¶
View Source
var AWS_REGIONS = map[string]string{
"us-east-2": "US East (Ohio)",
"us-east-1": "US East (N. Virginia)",
"us-west-1": "US West (N. California)",
"us-west-2": "US West (Oregon)",
"af-south-1": "Africa (Cape Town)",
"ap-east-1": "Asia Pacific (Hong Kong)",
"ap-south-1": "Asia Pacific (Mumbai)",
"ap-northeast-3": "Asia Pacific (Osaka)",
"ap-northeast-2": "Asia Pacific (Seoul)",
"ap-southeast-1": "Asia Pacific (Singapore)",
"ap-southeast-2": "Asia Pacific (Sydney)",
"ap-northeast-1": "Asia Pacific (Tokyo)",
"ca-central-1": "Canada (Central)",
"eu-central-1": "EU (Frankfurt)",
"eu-west-1": "EU (Ireland)",
"eu-west-2": "EU (London)",
"eu-south-1": "EU (Milan)",
"eu-west-3": "EU (Paris)",
"eu-north-1": "EU (Stockholm)",
"me-south-1": "Middle East (Bahrain)",
"sa-east-1": "South America (Sao Paulo)",
}
Functions ¶
This section is empty.
Types ¶
type AWSClient ¶
func NewAWSClient ¶
func (*AWSClient) CopySnapshot ¶
func (*AWSClient) CreateImage ¶
func (*AWSClient) CreateInstance ¶
func (*AWSClient) CreateNewVolume ¶
func (*AWSClient) CreateRole ¶
func (*AWSClient) CreateSecurityGroup ¶
func (c *AWSClient) CreateSecurityGroup(streamSW StreamSoftware, region string) (AWSSecurityGroup, error)
func (*AWSClient) CreateSnapshot ¶
func (*AWSClient) CreateVolume ¶
func (*AWSClient) DeleteImage ¶
func (*AWSClient) DeleteSnapshot ¶
func (*AWSClient) DeleteVolume ¶
func (*AWSClient) GetAvailability ¶
func (*AWSClient) GetGPUInstances ¶
func (c *AWSClient) GetGPUInstances(region string) []AWSGPUInstance
func (*AWSClient) GetImageState ¶
func (*AWSClient) GetInstanceState ¶
func (*AWSClient) GetMachineData ¶
func (*AWSClient) GetRegions ¶
func (*AWSClient) GetSecurityGroups ¶
func (c *AWSClient) GetSecurityGroups(region string) ([]types.SecurityGroup, error)
func (*AWSClient) GetSnapshotState ¶
func (*AWSClient) GetSpotState ¶
func (*AWSClient) GetVolumeModificationState ¶
func (*AWSClient) GetVolumeState ¶
func (*AWSClient) GetWindowsAMIId ¶
func (*AWSClient) IsValidAWSCredentials ¶
func (*AWSClient) ModifyVolume ¶
func (*AWSClient) ResizeSnapshot ¶
Resizes snapshot, doesn't automate expanding partition Expanding partition will occur on next machine boot
func (*AWSClient) StartInstance ¶
type AWSGPUInstance ¶
type AWSRole ¶
type AWSSecurityGroup ¶
type AWSSecurityGroup struct { Id int64 GroupId string Region string StreamSoftware string Created time.Time `xorm:"created"` }
func (*AWSSecurityGroup) TableName ¶
func (sg *AWSSecurityGroup) TableName() string
type StreamSoftware ¶
type StreamSoftware string
const ( PARSEC StreamSoftware = "parsec" MOONLIGHT StreamSoftware = "moonlight" )
func (StreamSoftware) String ¶
func (s StreamSoftware) String() string
Click to show internal directories.
Click to hide internal directories.