Documentation ¶
Index ¶
- Constants
- Variables
- func FindOutboundIP(ctx context.Context, findExternalIP func() (string, error)) (string, error)
- func GetEC2(cfg steps.AWSConfig) (ec2iface.EC2API, error)
- func GetIAM(cfg steps.AWSConfig) (iamiface.IAMAPI, error)
- func InitAssociateRouteTable(ec2fn GetEC2Fn)
- func InitCreateInstanceProfiles(iamfn GetIAMFn)
- func InitCreateInternetGateway(ec2fn GetEC2Fn)
- func InitCreateMachine(ec2fn GetEC2Fn)
- func InitCreateRouteTable(ec2fn GetEC2Fn)
- func InitCreateSecurityGroups(fn GetEC2Fn)
- func InitCreateSubnet(fn GetEC2Fn, accSvc *account.Service)
- func InitCreateVPC(fn GetEC2Fn)
- func InitDeleteClusterMachines(fn GetEC2Fn)
- func InitDeleteInternetGateWay(fn GetEC2Fn)
- func InitDeleteKeyPair(fn GetEC2Fn)
- func InitDeleteNode(fn GetEC2Fn)
- func InitDeleteRouteTable(fn GetEC2Fn)
- func InitDeleteSecurityGroup(fn GetEC2Fn)
- func InitDeleteSubnets(fn GetEC2Fn)
- func InitDeleteVPC(fn GetEC2Fn)
- func InitDisassociateRouteTable(fn GetEC2Fn)
- func InitFindAMI(fn GetEC2Fn)
- func InitImportKeyPair(fn GetEC2Fn)
- type AssociateRouteTableStep
- func (*AssociateRouteTableStep) Depends() []string
- func (*AssociateRouteTableStep) Description() string
- func (*AssociateRouteTableStep) Name() string
- func (s *AssociateRouteTableStep) Rollback(ctx context.Context, w io.Writer, cfg *steps.Config) error
- func (s *AssociateRouteTableStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error
- type Associater
- type CreateInternetGatewayStep
- func (*CreateInternetGatewayStep) Depends() []string
- func (*CreateInternetGatewayStep) Description() string
- func (*CreateInternetGatewayStep) Name() string
- func (s *CreateInternetGatewayStep) Rollback(ctx context.Context, w io.Writer, cfg *steps.Config) error
- func (s *CreateInternetGatewayStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error
- type CreateRouteTableStep
- func (*CreateRouteTableStep) Depends() []string
- func (*CreateRouteTableStep) Description() string
- func (*CreateRouteTableStep) Name() string
- func (s *CreateRouteTableStep) Rollback(ctx context.Context, w io.Writer, cfg *steps.Config) error
- func (s *CreateRouteTableStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error
- type CreateSecurityGroupsStep
- func (*CreateSecurityGroupsStep) Depends() []string
- func (*CreateSecurityGroupsStep) Description() string
- func (*CreateSecurityGroupsStep) Name() string
- func (*CreateSecurityGroupsStep) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s *CreateSecurityGroupsStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error
- type CreateSubnetsStep
- func (*CreateSubnetsStep) Depends() []string
- func (*CreateSubnetsStep) Description() string
- func (*CreateSubnetsStep) Name() string
- func (*CreateSubnetsStep) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s *CreateSubnetsStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error
- type CreateVPCStep
- type DeleteClusterMachines
- func (*DeleteClusterMachines) Depends() []string
- func (*DeleteClusterMachines) Description() string
- func (*DeleteClusterMachines) Name() string
- func (*DeleteClusterMachines) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s *DeleteClusterMachines) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error
- type DeleteInternetGateway
- func (*DeleteInternetGateway) Depends() []string
- func (*DeleteInternetGateway) Description() string
- func (*DeleteInternetGateway) Name() string
- func (*DeleteInternetGateway) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s *DeleteInternetGateway) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error
- type DeleteKeyPair
- type DeleteNodeStep
- type DeleteRouteTable
- func (*DeleteRouteTable) Depends() []string
- func (*DeleteRouteTable) Description() string
- func (*DeleteRouteTable) Name() string
- func (*DeleteRouteTable) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s *DeleteRouteTable) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error
- type DeleteSecurityGroup
- func (*DeleteSecurityGroup) Depends() []string
- func (*DeleteSecurityGroup) Description() string
- func (*DeleteSecurityGroup) Name() string
- func (*DeleteSecurityGroup) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s *DeleteSecurityGroup) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error
- type DeleteSubnets
- type DeleteVPC
- type DisassociateRouteTable
- func (*DisassociateRouteTable) Depends() []string
- func (*DisassociateRouteTable) Description() string
- func (*DisassociateRouteTable) Name() string
- func (*DisassociateRouteTable) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s *DisassociateRouteTable) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error
- type DisassociateService
- type FindAMIStep
- func (*FindAMIStep) Depends() []string
- func (*FindAMIStep) Description() string
- func (s *FindAMIStep) FindAMI(ctx context.Context, w io.Writer, finder ImageFinder) (string, error)
- func (*FindAMIStep) Name() string
- func (*FindAMIStep) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s *FindAMIStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error
- type GetEC2Fn
- type GetIAMFn
- type IGWDeleter
- type ImageFinder
- type InternetGatewayCreater
- type KeyPairStep
- type KeyService
- type Service
- type StepCreateInstance
- func (*StepCreateInstance) Depends() []string
- func (*StepCreateInstance) Description() string
- func (*StepCreateInstance) Name() string
- func (s *StepCreateInstance) Rollback(ctx context.Context, w io.Writer, cfg *steps.Config) error
- func (s *StepCreateInstance) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error
- type StepCreateInstanceProfiles
- func (StepCreateInstanceProfiles) Depends() []string
- func (StepCreateInstanceProfiles) Description() string
- func (StepCreateInstanceProfiles) Name() string
- func (s StepCreateInstanceProfiles) Rollback(ctx context.Context, w io.Writer, cfg *steps.Config) error
- func (s StepCreateInstanceProfiles) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error
Constants ¶
View Source
const DeleteClusterMachinesStepName = "aws_delete_cluster_machines"
View Source
const DeleteInternetGatewayStepName = "aws_delete_internet_gateway"
View Source
const DeleteKeyPairStepName = "aws_delete_key_pair"
View Source
const DeleteNodeStepName = "aws_delete_node"
View Source
const DeleteRouteTableStepName = "aws_delete_route_table"
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 DisassociateRouteTableStepName = "aws_disassociate_route_table"
View Source
const StepAssociateRouteTable = "associate_route_table"
View Source
const StepCreateInternetGateway = "create_internet_gateway"
View Source
const StepCreateRouteTable = "create_route_table"
View Source
const StepCreateSecurityGroups = "create_security_groups_step"
View Source
const StepCreateSubnets = "create_subnet_steps"
View Source
const StepCreateVPC = "aws_create_vpc"
View Source
const StepFindAMI = "find_amazon_machine_image"
View Source
const StepImportKeyPair = "aws_import_keypair_step"
View Source
const (
StepNameCreateEC2Instance = "aws_create_instance"
)
View Source
const (
StepNameCreateInstanceProfiles = "aws_create_instance_profiles"
)
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") )
View Source
var (
ErrEmptyResponse = errors.New("empty response")
)
Functions ¶
func FindOutboundIP ¶
func InitAssociateRouteTable ¶
func InitAssociateRouteTable(ec2fn GetEC2Fn)
InitAssociateRouteTable adds the step to the registry
func InitCreateInstanceProfiles ¶
func InitCreateInstanceProfiles(iamfn GetIAMFn)
func InitCreateInternetGateway ¶
func InitCreateInternetGateway(ec2fn GetEC2Fn)
InitCreateMachine adds the step to the registry
func InitCreateMachine ¶
func InitCreateMachine(ec2fn GetEC2Fn)
InitCreateMachine adds the step to the registry
func InitCreateRouteTable ¶
func InitCreateRouteTable(ec2fn GetEC2Fn)
InitCreateRouteTable adds the step to the registry
func InitCreateSecurityGroups ¶
func InitCreateSecurityGroups(fn GetEC2Fn)
func InitCreateSubnet ¶
func InitCreateVPC ¶
func InitCreateVPC(fn GetEC2Fn)
func InitDeleteClusterMachines ¶
func InitDeleteClusterMachines(fn GetEC2Fn)
func InitDeleteInternetGateWay ¶
func InitDeleteInternetGateWay(fn GetEC2Fn)
func InitDeleteKeyPair ¶
func InitDeleteKeyPair(fn GetEC2Fn)
func InitDeleteNode ¶
func InitDeleteNode(fn GetEC2Fn)
func InitDeleteRouteTable ¶
func InitDeleteRouteTable(fn GetEC2Fn)
func InitDeleteSecurityGroup ¶
func InitDeleteSecurityGroup(fn GetEC2Fn)
func InitDeleteSubnets ¶
func InitDeleteSubnets(fn GetEC2Fn)
func InitDeleteVPC ¶
func InitDeleteVPC(fn GetEC2Fn)
func InitDisassociateRouteTable ¶
func InitDisassociateRouteTable(fn GetEC2Fn)
func InitFindAMI ¶
func InitFindAMI(fn GetEC2Fn)
func InitImportKeyPair ¶
func InitImportKeyPair(fn GetEC2Fn)
InitImportKeyPair add the step to the registry
Types ¶
type AssociateRouteTableStep ¶
type AssociateRouteTableStep struct {
// contains filtered or unexported fields
}
func NewAssociateRouteTableStep ¶
func NewAssociateRouteTableStep(ec2fn GetEC2Fn) *AssociateRouteTableStep
func (*AssociateRouteTableStep) Depends ¶
func (*AssociateRouteTableStep) Depends() []string
func (*AssociateRouteTableStep) Description ¶
func (*AssociateRouteTableStep) Description() string
func (*AssociateRouteTableStep) Name ¶
func (*AssociateRouteTableStep) Name() string
type Associater ¶
type Associater interface {
AssociateRouteTable(*ec2.AssociateRouteTableInput) (*ec2.AssociateRouteTableOutput, error)
}
type CreateInternetGatewayStep ¶
type CreateInternetGatewayStep struct {
// contains filtered or unexported fields
}
func NewCreateInternetGatewayStep ¶
func NewCreateInternetGatewayStep(ec2fn GetEC2Fn) *CreateInternetGatewayStep
func (*CreateInternetGatewayStep) Depends ¶
func (*CreateInternetGatewayStep) Depends() []string
func (*CreateInternetGatewayStep) Description ¶
func (*CreateInternetGatewayStep) Description() string
func (*CreateInternetGatewayStep) Name ¶
func (*CreateInternetGatewayStep) Name() string
type CreateRouteTableStep ¶
type CreateRouteTableStep struct { GetEC2 GetEC2Fn // contains filtered or unexported fields }
func NewCreateRouteTableStep ¶
func NewCreateRouteTableStep(ec2fn GetEC2Fn) *CreateRouteTableStep
func (*CreateRouteTableStep) Depends ¶
func (*CreateRouteTableStep) Depends() []string
func (*CreateRouteTableStep) Description ¶
func (*CreateRouteTableStep) Description() string
func (*CreateRouteTableStep) Name ¶
func (*CreateRouteTableStep) Name() string
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) Name() string
type CreateSubnetsStep ¶
type CreateSubnetsStep struct { GetEC2 GetEC2Fn // contains filtered or unexported fields }
func NewCreateSubnetStep ¶
func NewCreateSubnetStep(fn GetEC2Fn, accSvc *account.Service) *CreateSubnetsStep
func (*CreateSubnetsStep) Depends ¶
func (*CreateSubnetsStep) Depends() []string
func (*CreateSubnetsStep) Description ¶
func (*CreateSubnetsStep) Description() string
func (*CreateSubnetsStep) Name ¶
func (*CreateSubnetsStep) Name() string
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
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
type DeleteInternetGateway ¶
type DeleteInternetGateway struct {
// contains filtered or unexported fields
}
func NewDeleteInernetGateway ¶
func NewDeleteInernetGateway(fn GetEC2Fn) *DeleteInternetGateway
func (*DeleteInternetGateway) Depends ¶
func (*DeleteInternetGateway) Depends() []string
func (*DeleteInternetGateway) Description ¶
func (*DeleteInternetGateway) Description() string
func (*DeleteInternetGateway) Name ¶
func (*DeleteInternetGateway) Name() string
type DeleteKeyPair ¶
type DeleteKeyPair struct { GetEC2 GetEC2Fn // contains filtered or unexported fields }
func NewDeleteKeyPairStep ¶
func NewDeleteKeyPairStep(fn GetEC2Fn) *DeleteKeyPair
func (*DeleteKeyPair) Depends ¶
func (*DeleteKeyPair) Depends() []string
func (*DeleteKeyPair) Description ¶
func (*DeleteKeyPair) Description() string
func (*DeleteKeyPair) Name ¶
func (*DeleteKeyPair) Name() string
type DeleteNodeStep ¶
type DeleteNodeStep struct {
// contains filtered or unexported fields
}
func NewDeleteNode ¶
func NewDeleteNode(fn GetEC2Fn) *DeleteNodeStep
func (*DeleteNodeStep) Depends ¶
func (*DeleteNodeStep) Depends() []string
func (*DeleteNodeStep) Description ¶
func (*DeleteNodeStep) Description() string
func (*DeleteNodeStep) Name ¶
func (*DeleteNodeStep) Name() string
type DeleteRouteTable ¶
type DeleteRouteTable struct {
// contains filtered or unexported fields
}
func NewDeleteRouteTableStep ¶
func NewDeleteRouteTableStep(fn GetEC2Fn) *DeleteRouteTable
func (*DeleteRouteTable) Depends ¶
func (*DeleteRouteTable) Depends() []string
func (*DeleteRouteTable) Description ¶
func (*DeleteRouteTable) Description() string
func (*DeleteRouteTable) Name ¶
func (*DeleteRouteTable) Name() string
type DeleteSecurityGroup ¶
type DeleteSecurityGroup struct {
// contains filtered or unexported fields
}
func NewDeleteSecurityGroupService ¶
func NewDeleteSecurityGroupService(fn GetEC2Fn) *DeleteSecurityGroup
func (*DeleteSecurityGroup) Depends ¶
func (*DeleteSecurityGroup) Depends() []string
func (*DeleteSecurityGroup) Description ¶
func (*DeleteSecurityGroup) Description() string
func (*DeleteSecurityGroup) Name ¶
func (*DeleteSecurityGroup) Name() string
type DeleteSubnets ¶
type DeleteSubnets struct { GetEC2 GetEC2Fn // contains filtered or unexported fields }
func NewDeleteSubnets ¶
func NewDeleteSubnets(fn GetEC2Fn) *DeleteSubnets
func (*DeleteSubnets) Depends ¶
func (*DeleteSubnets) Depends() []string
func (*DeleteSubnets) Description ¶
func (*DeleteSubnets) Description() string
func (*DeleteSubnets) Name ¶
func (*DeleteSubnets) Name() string
type DeleteVPC ¶
type DeleteVPC struct { GetEC2 GetEC2Fn // contains filtered or unexported fields }
func NewDeleteVPC ¶
func (*DeleteVPC) Description ¶
type DisassociateRouteTable ¶
type DisassociateRouteTable struct {
// contains filtered or unexported fields
}
func NewDisassociateRouteTableStep ¶
func NewDisassociateRouteTableStep(fn GetEC2Fn) *DisassociateRouteTable
func (*DisassociateRouteTable) Depends ¶
func (*DisassociateRouteTable) Depends() []string
func (*DisassociateRouteTable) Description ¶
func (*DisassociateRouteTable) Description() string
func (*DisassociateRouteTable) Name ¶
func (*DisassociateRouteTable) Name() string
type DisassociateService ¶
type DisassociateService interface {
DisassociateRouteTable(*ec2.DisassociateRouteTableInput) (*ec2.DisassociateRouteTableOutput, error)
}
type FindAMIStep ¶
type FindAMIStep struct {
// contains filtered or unexported fields
}
func NewFindAMIStep ¶
func NewFindAMIStep(fn GetEC2Fn) *FindAMIStep
func (*FindAMIStep) Depends ¶
func (*FindAMIStep) Depends() []string
func (*FindAMIStep) Description ¶
func (*FindAMIStep) Description() string
func (*FindAMIStep) FindAMI ¶
func (s *FindAMIStep) FindAMI(ctx context.Context, w io.Writer, finder ImageFinder) (string, error)
func (*FindAMIStep) Name ¶
func (*FindAMIStep) Name() string
type IGWDeleter ¶
type IGWDeleter interface { DetachInternetGateway(*ec2.DetachInternetGatewayInput) (*ec2.DetachInternetGatewayOutput, error) DeleteInternetGateway(*ec2.DeleteInternetGatewayInput) (*ec2.DeleteInternetGatewayOutput, error) }
type ImageFinder ¶
type ImageFinder interface { DescribeImagesWithContext(aws.Context, *ec2.DescribeImagesInput, ...request.Option) (*ec2.DescribeImagesOutput, error) }
type InternetGatewayCreater ¶
type InternetGatewayCreater interface { CreateInternetGateway(*ec2.CreateInternetGatewayInput) (*ec2.CreateInternetGatewayOutput, error) CreateTags(*ec2.CreateTagsInput) (*ec2.CreateTagsOutput, error) AttachInternetGateway(*ec2.AttachInternetGatewayInput) (*ec2.AttachInternetGatewayOutput, error) }
type KeyPairStep ¶
type KeyPairStep struct { GetEC2 GetEC2Fn // contains filtered or unexported fields }
KeyPairStep represents creation of keypair in aws since there is hard cap on keypairs per account supergiant will create one per cluster
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
type KeyService ¶
type KeyService interface {
DeleteKeyPair(*ec2.DeleteKeyPairInput) (*ec2.DeleteKeyPairOutput, error)
}
type Service ¶
type Service interface { CreateRouteTable(*ec2.CreateRouteTableInput) (*ec2.CreateRouteTableOutput, error) CreateTags(*ec2.CreateTagsInput) (*ec2.CreateTagsOutput, error) CreateRoute(*ec2.CreateRouteInput) (*ec2.CreateRouteOutput, error) }
type StepCreateInstance ¶
type StepCreateInstance struct {
GetEC2 GetEC2Fn
}
func NewCreateInstance ¶
func NewCreateInstance(ec2fn GetEC2Fn) *StepCreateInstance
func (*StepCreateInstance) Depends ¶
func (*StepCreateInstance) Depends() []string
func (*StepCreateInstance) Description ¶
func (*StepCreateInstance) Description() string
func (*StepCreateInstance) Name ¶
func (*StepCreateInstance) Name() string
type StepCreateInstanceProfiles ¶
type StepCreateInstanceProfiles struct {
GetIAM GetIAMFn
}
func NewCreateInstanceProfiles ¶
func NewCreateInstanceProfiles(iamfn GetIAMFn) *StepCreateInstanceProfiles
func (StepCreateInstanceProfiles) Depends ¶
func (StepCreateInstanceProfiles) Depends() []string
func (StepCreateInstanceProfiles) Description ¶
func (StepCreateInstanceProfiles) Description() string
func (StepCreateInstanceProfiles) Name ¶
func (StepCreateInstanceProfiles) Name() string
Source Files ¶
- associate_route_table.go
- common.go
- create_instance_profiles.go
- create_internet_gateway.go
- create_machine.go
- create_route_table.go
- create_security_groups.go
- create_subnet.go
- create_vpc.go
- delete_cluster_machines.go
- delete_internet_gateway.go
- delete_key_pair.go
- delete_machine.go
- delete_route_table.go
- delete_security_groups.go
- delete_subnets.go
- delete_vpc.go
- disassociate_route_table.go
- errors.go
- find_ami.go
- import_keypair.go
- util.go
Click to show internal directories.
Click to hide internal directories.