Documentation ¶
Index ¶
- Constants
- Variables
- func FindOutboundIP(ctx context.Context, findExternalIP func() (string, error)) (string, error)
- func GetEC2(cfg steps.AWSConfig) (ec2iface.EC2API, error)
- func InitCreateMachine(fn func(steps.AWSConfig) (ec2iface.EC2API, error))
- func InitCreateSecurityGroups(fn GetEC2Fn)
- func InitCreateSubnet(fn GetEC2Fn)
- func InitCreateVPC(fn GetEC2Fn)
- func InitDeleteClusterMachines(fn GetEC2Fn)
- func InitDeleteNode(fn GetEC2Fn)
- func InitDeleteSecurityGroup(fn GetEC2Fn)
- func InitDeleteSubnets(fn GetEC2Fn)
- func InitDeleteVPC(fn GetEC2Fn)
- func InitImportKeyPair(fn GetEC2Fn)
- 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 CreateSubnetStep
- func (*CreateSubnetStep) Depends() []string
- func (*CreateSubnetStep) Description() string
- func (*CreateSubnetStep) Name() string
- func (*CreateSubnetStep) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s *CreateSubnetStep) 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 DeleteNodeStep
- 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 GetEC2Fn
- type KeyPairStep
- type StepCreateInstance
- func (*StepCreateInstance) Depends() []string
- func (*StepCreateInstance) Description() string
- func (s *StepCreateInstance) FindAMI(ctx context.Context, w io.Writer, EC2 ec2iface.EC2API) (string, error)
- 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
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 InitCreateMachine ¶
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) Name() string
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
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 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
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
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
type DeleteVPC ¶
type DeleteVPC struct {
GetEC2 GetEC2Fn
}
func (*DeleteVPC) Description ¶
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
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) Name ¶
func (*StepCreateInstance) Name() string
Click to show internal directories.
Click to hide internal directories.