aws

package
v0.0.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseInstance

func ParseInstance(in *Ec2Instance) (*v1alpha1.MachineType, error)

func ParseRegion

func ParseRegion(in *ec2.Region) *v1alpha1.Region

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts credential.AWS) (*Client, error)

func (*Client) GetName

func (g *Client) GetName() string

func (*Client) ListRegions

func (g *Client) ListRegions() ([]v1alpha1.Region, error)

func (*Client) ListZones

func (g *Client) ListZones() ([]string, error)

type Ec2Instance

type Ec2Instance struct {
	Family       string      `json:"family"`
	InstanceType string      `json:"instance_type"`
	Memory       json.Number `json:"memory"`
	VCPU         json.Number `json:"vCPU"`
	Storage      *Ec2Storage `json:"storage"`
}

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"`
}

Jump to

Keyboard shortcuts

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