Documentation ¶
Index ¶
- Constants
- Variables
- 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 InitDeleteCluster(fn GetEC2Fn)
- func InitDeleteNode(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 DeleteClusterStep
- func (*DeleteClusterStep) Depends() []string
- func (*DeleteClusterStep) Description() string
- func (*DeleteClusterStep) Name() string
- func (*DeleteClusterStep) Rollback(context.Context, io.Writer, *steps.Config) error
- func (s *DeleteClusterStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error
- type DeleteNodeStep
- 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 DeleteClusterStepName = "aws_delete_cluster"
View Source
const DeleteNodeStepName = "aws_delete_node"
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 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 InitDeleteCluster ¶
func InitDeleteCluster(fn GetEC2Fn)
func InitDeleteNode ¶
func InitDeleteNode(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 DeleteClusterStep ¶
type DeleteClusterStep struct {
GetEC2 GetEC2Fn
}
func (*DeleteClusterStep) Depends ¶
func (*DeleteClusterStep) Depends() []string
func (*DeleteClusterStep) Description ¶
func (*DeleteClusterStep) Description() string
func (*DeleteClusterStep) Name ¶
func (*DeleteClusterStep) 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 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.