aws

package
v0.0.0-...-7759ae7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseInstance

func ParseInstance(in *Ec2Instance) (*data.InstanceType, error)

func ParseRegion

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

Types

type AwsData

type AwsData data.CloudData

type Client

type Client struct {
	Data    *AwsData
	Session *session.Session
}

func NewClient

func NewClient(awsRegionName, awsAccessKeyId, awsSecretAccessKey string) (*Client, error)

func (*Client) GetCredentials

func (g *Client) GetCredentials() []data.CredentialFormat

func (*Client) GetEnvs

func (g *Client) GetEnvs() []string

func (*Client) GetKubernets

func (g *Client) GetKubernets() []data.Kubernetes

func (*Client) GetName

func (g *Client) GetName() string

func (*Client) GetRegions

func (g *Client) GetRegions() ([]data.Region, error)

func (*Client) GetZones

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

type Ec2Instance

type Ec2Instance struct {
	Family        string      `json:"family"`
	Instance_type string      `json:"instance_type"`
	Memory        json.Number `json:"memory"`
	VCPU          json.Number `json:"vCPU"`
	Pricing       interface{} `json:"pricing"`
}

Jump to

Keyboard shortcuts

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