aws

package
v2.2.0-beta.2+incompat... Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyID          = "awsKeyID"
	SecretKey      = "awsSecretKey"
	Region         = "awsRegion"
	KeyName        = "awsKeyName"
	ImageID        = "awsImageID"
	IAMRole        = "awsIAMRole"
	SecurityGroups = "awsSecurityGroups"
	SubnetID       = "awsSubnetID"
	VolType        = "awsVolType"
	VolSize        = "awsVolSize"
	VolDeviceName  = "awsVolDeviceName"
	EBSOptimized   = "ebsOptimized"
	Tags           = "awsTags"
)

AWS instance parameters:

View Source
const (
	Name = "aws"
)

Provider name:

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	KeyName        string
	ImageID        string
	IAMRole        string
	SecurityGroups []*string
	SubnetID       string
	VolType        string
	VolSize        int64
	VolDeviceName  string
	EBSOptimized   *bool
	Tags           map[string]string
}

type Provider

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

func New

func New(clusterName string, config provider.Config) (*Provider, error)

func (*Provider) CreateMachine

func (p *Provider) CreateMachine(ctx context.Context, name, mtype, clusterRole, userData string, config provider.Config) (*provider.Machine, error)

func (*Provider) DeleteMachine

func (p *Provider) DeleteMachine(ctx context.Context, id string) (*provider.Machine, error)

func (*Provider) GetMachine

func (p *Provider) GetMachine(ctx context.Context, id string) (*provider.Machine, error)

func (*Provider) MachineTypes

func (p *Provider) MachineTypes(_ context.Context) ([]*provider.MachineType, error)

func (*Provider) Machines

func (p *Provider) Machines(ctx context.Context) ([]*provider.Machine, error)

func (*Provider) Name

func (p *Provider) Name() string

func (*Provider) ParseMachineID

func (p *Provider) ParseMachineID(providerID string) (string, error)

parseProviderID extracts the awsInstanceID from the providerID

providerID represents the id for an instance in the kubernetes API; the following form

  • aws:///<zone>/<awsInstanceId>
  • aws:////<awsInstanceId>
  • <awsInstanceId>

Directories

Path Synopsis
This file was generated by go generate; DO NOT EDIT
This file was generated by go generate; DO NOT EDIT

Jump to

Keyboard shortcuts

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