Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseInstance ¶
func ParseInstance(in *Ec2Instance) (*v1.MachineType, error)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetCredentialFormat ¶
func (g *Client) GetCredentialFormat() v1.CredentialFormat
func (*Client) ListMachineTypes ¶
func (g *Client) ListMachineTypes() ([]v1.MachineType, error)
https://ec2instances.info/instances.json https://github.com/powdahound/ec2instances.info
type Ec2Instance ¶
type Ec2Storage ¶
type Ec2Storage struct { Devices int `json:"devices"` IncludesSwapPartition bool `json:"includes_swap_partition"` NvmeSsd bool `json:"nvme_ssd"` Size int `json:"size"` Ssd bool `json:"ssd"` StorageNeedsInitialization bool `json:"storage_needs_initialization"` TrimSupport bool `json:"trim_support"` }
Click to show internal directories.
Click to hide internal directories.