amazon

package
v2.0.0-beta.12+incompa... Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 23 Imported by: 4

Documentation

Index

Constants

View Source
const DeleteClusterMachinesStepName = "aws_delete_cluster_machines"
View Source
const DeleteNodeStepName = "aws_delete_node"
View Source
const DeleteSecurityGroupsStepName = "aws_delete_security_groups"
View Source
const DeleteSubnetsStepName = "aws_delete_subnets"
View Source
const DeleteVPCStepName = "aws_delete_vpc"
View Source
const StepCreateSecurityGroups = "create_security_groups_step"
View Source
const StepCreateSubnet = "create_subnet_step"
View Source
const StepCreateVPC = "aws_create_vpc"
View Source
const StepImportKeyPair = "awskeypairstep"
View Source
const (
	StepNameCreateEC2Instance = "aws_create_instance"
)

Variables

View Source
var (
	ErrReadVPC        = errors.New("aws: can't read vpc info")
	ErrCreateVPC      = errors.New("aws: create vpc")
	ErrAuthorization  = errors.New("aws: authorization")
	ErrCreateSubnet   = errors.New("aws: create subnet")
	ErrCreateInstance = errors.New("aws: create instance")
	ErrImportKeyPair  = errors.New("aws: import keypair")
	ErrNoPublicIP     = errors.New("aws: no public IP assigned")
	ErrDeleteCluster  = errors.New("aws: delete cluster")
	ErrDeleteNode     = errors.New("aws: delete node")
)

Functions

func FindOutboundIP

func FindOutboundIP(ctx context.Context, findExternalIP func() (string, error)) (string, error)

func GetEC2

func GetEC2(cfg steps.AWSConfig) (ec2iface.EC2API, error)

func InitCreateMachine

func InitCreateMachine(fn func(steps.AWSConfig) (ec2iface.EC2API, error))

InitCreateMachine adds the step to the registry

func InitCreateSecurityGroups

func InitCreateSecurityGroups(fn GetEC2Fn)

func InitCreateSubnet

func InitCreateSubnet(fn GetEC2Fn)

func InitCreateVPC

func InitCreateVPC(fn GetEC2Fn)

func InitDeleteClusterMachines

func InitDeleteClusterMachines(fn GetEC2Fn)

func InitDeleteNode

func InitDeleteNode(fn GetEC2Fn)

func InitDeleteSecurityGroup

func InitDeleteSecurityGroup(fn GetEC2Fn)

func InitDeleteSubnets

func InitDeleteSubnets(fn GetEC2Fn)

func InitDeleteVPC

func InitDeleteVPC(fn GetEC2Fn)

func InitImportKeyPair

func InitImportKeyPair(fn GetEC2Fn)

InitImportKeyPair add the step to the registry

Types

type CreateSecurityGroupsStep

type CreateSecurityGroupsStep struct {
	GetEC2 GetEC2Fn
}

func NewCreateSecurityGroupsStep

func NewCreateSecurityGroupsStep(fn GetEC2Fn) *CreateSecurityGroupsStep

func (*CreateSecurityGroupsStep) Depends

func (*CreateSecurityGroupsStep) Depends() []string

func (*CreateSecurityGroupsStep) Description

func (*CreateSecurityGroupsStep) Description() string

func (*CreateSecurityGroupsStep) Name

func (*CreateSecurityGroupsStep) Rollback

func (*CreateSecurityGroupsStep) Run

type CreateSubnetStep

type CreateSubnetStep struct {
	GetEC2 GetEC2Fn
}

func NewCreateSubnetStep

func NewCreateSubnetStep(fn GetEC2Fn) *CreateSubnetStep

func (*CreateSubnetStep) Depends

func (*CreateSubnetStep) Depends() []string

func (*CreateSubnetStep) Description

func (*CreateSubnetStep) Description() string

func (*CreateSubnetStep) Name

func (*CreateSubnetStep) Name() string

func (*CreateSubnetStep) Rollback

func (*CreateSubnetStep) Run

func (s *CreateSubnetStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

type CreateVPCStep

type CreateVPCStep struct {
	GetEC2 GetEC2Fn
}

CreateVPCStep represents creation of an virtual private cloud in AWS

func NewCreateVPCStep

func NewCreateVPCStep(fn GetEC2Fn) *CreateVPCStep

func (*CreateVPCStep) Depends

func (*CreateVPCStep) Depends() []string

func (*CreateVPCStep) Description

func (*CreateVPCStep) Description() string

func (*CreateVPCStep) Name

func (*CreateVPCStep) Name() string

func (*CreateVPCStep) Rollback

func (*CreateVPCStep) Run

func (c *CreateVPCStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

type DeleteClusterMachines

type DeleteClusterMachines struct {
	GetEC2 GetEC2Fn
}

func (*DeleteClusterMachines) Depends

func (*DeleteClusterMachines) Depends() []string

func (*DeleteClusterMachines) Description

func (*DeleteClusterMachines) Description() string

func (*DeleteClusterMachines) Name

func (*DeleteClusterMachines) Name() string

func (*DeleteClusterMachines) Rollback

func (*DeleteClusterMachines) Run

type DeleteNodeStep

type DeleteNodeStep struct {
	GetEC2 GetEC2Fn
}

func (*DeleteNodeStep) Depends

func (*DeleteNodeStep) Depends() []string

func (*DeleteNodeStep) Description

func (*DeleteNodeStep) Description() string

func (*DeleteNodeStep) Name

func (*DeleteNodeStep) Name() string

func (*DeleteNodeStep) Rollback

func (*DeleteNodeStep) Run

func (s *DeleteNodeStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

type DeleteSecurityGroup

type DeleteSecurityGroup struct {
	GetEC2 GetEC2Fn
}

func (*DeleteSecurityGroup) Depends

func (*DeleteSecurityGroup) Depends() []string

func (*DeleteSecurityGroup) Description

func (*DeleteSecurityGroup) Description() string

func (*DeleteSecurityGroup) Name

func (*DeleteSecurityGroup) Name() string

func (*DeleteSecurityGroup) Rollback

func (*DeleteSecurityGroup) Run

type DeleteSubnets

type DeleteSubnets struct {
	GetEC2 GetEC2Fn
}

func (*DeleteSubnets) Depends

func (*DeleteSubnets) Depends() []string

func (*DeleteSubnets) Description

func (*DeleteSubnets) Description() string

func (*DeleteSubnets) Name

func (*DeleteSubnets) Name() string

func (*DeleteSubnets) Rollback

func (*DeleteSubnets) Run

func (s *DeleteSubnets) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

type DeleteVPC

type DeleteVPC struct {
	GetEC2 GetEC2Fn
}

func (*DeleteVPC) Depends

func (*DeleteVPC) Depends() []string

func (*DeleteVPC) Description

func (*DeleteVPC) Description() string

func (*DeleteVPC) Name

func (*DeleteVPC) Name() string

func (*DeleteVPC) Rollback

func (*DeleteVPC) Run

func (s *DeleteVPC) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

type GetEC2Fn

type GetEC2Fn func(steps.AWSConfig) (ec2iface.EC2API, error)

type KeyPairStep

type KeyPairStep struct {
	GetEC2 GetEC2Fn
}

KeyPairStep represents creation of keypair in aws since there is hard cap on keypairs per account supergiant will create one per clster

func NewImportKeyPairStep

func NewImportKeyPairStep(fn GetEC2Fn) *KeyPairStep

func (*KeyPairStep) Depends

func (*KeyPairStep) Depends() []string

func (*KeyPairStep) Description

func (*KeyPairStep) Description() string

func (*KeyPairStep) Name

func (*KeyPairStep) Name() string

func (*KeyPairStep) Rollback

func (s *KeyPairStep) Rollback(ctx context.Context, w io.Writer, cfg *steps.Config) error

func (*KeyPairStep) Run

func (s *KeyPairStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

Verifies that a key exists,

type StepCreateInstance

type StepCreateInstance struct {
	GetEC2 GetEC2Fn
}

func NewCreateInstance

func NewCreateInstance(fn GetEC2Fn) *StepCreateInstance

func (*StepCreateInstance) Depends

func (*StepCreateInstance) Depends() []string

func (*StepCreateInstance) Description

func (*StepCreateInstance) Description() string

func (*StepCreateInstance) FindAMI

func (s *StepCreateInstance) FindAMI(ctx context.Context, w io.Writer, EC2 ec2iface.EC2API) (string, error)

func (*StepCreateInstance) Name

func (*StepCreateInstance) Name() string

func (*StepCreateInstance) Rollback

func (s *StepCreateInstance) Rollback(ctx context.Context, w io.Writer, cfg *steps.Config) error

func (*StepCreateInstance) Run

Jump to

Keyboard shortcuts

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