Documentation ¶
Index ¶
- func SplitParentSubnet(parentSubnet *model.ParentSubnet) ([]model.Subnet, error)
- type GenProvisioner
- func (provisioner *GenProvisioner) CreateAccount(account *model.Account, awsClient aws.AWS) error
- func (provisioner *GenProvisioner) DeleteAccount(account *model.Account, awsClient aws.AWS) error
- func (provisioner *GenProvisioner) PrepareAccount(account *model.Account) bool
- func (provisioner *GenProvisioner) ProvisionAccount(account *model.Account, awsClient aws.AWS) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitParentSubnet ¶
func SplitParentSubnet(parentSubnet *model.ParentSubnet) ([]model.Subnet, error)
SplitParentSubnet splits a parent subnet into usable provisioning VPCs.
Types ¶
type GenProvisioner ¶
type GenProvisioner struct {
// contains filtered or unexported fields
}
GenProvisioner provisions accounts using AWS API and Terraform.
func NewGenesisProvisioner ¶
func NewGenesisProvisioner(accountCreation model.AccountCreation, accountProvision model.AccountProvision, logger log.FieldLogger) *GenProvisioner
NewGenesisProvisioner creates a new GenProvisioner.
func (*GenProvisioner) CreateAccount ¶
CreateAccount creates an account using AWS API and terraform.
func (*GenProvisioner) DeleteAccount ¶
DeleteAccount deletes an account using AWS API and terraform.
func (*GenProvisioner) PrepareAccount ¶
func (provisioner *GenProvisioner) PrepareAccount(account *model.Account) bool
PrepareAccount ensures an account object is ready for provisioning.
func (*GenProvisioner) ProvisionAccount ¶
func (provisioner *GenProvisioner) ProvisionAccount(account *model.Account, awsClient aws.AWS) error
ProvisionAccount deletes an account using AWS API and terraform.
Click to show internal directories.
Click to hide internal directories.