Documentation ¶
Index ¶
Constants ¶
View Source
const ProvisionerType = "amazon-ec2"
ProvisionerType : Constant string value used to represent the provisioner type amazon
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Key string `json:"key"` // AWS Access Key Secret string `json:"secret"` // AWS Access Key Secret Region string `json:"region"` // AWS Region Bucket string `json:"bucket"` // AWS Bucket }
Config contains configuration fields required by the Provisioner
type Provisioner ¶
type Provisioner struct {
// contains filtered or unexported fields
}
Provisioner satisfies the provisioners.Provisioner interface
func NewProvisioner ¶
func NewProvisioner(log elog.View, cfg *Config) (*Provisioner, error)
NewProvisioner - Create a Amazon Provisioner object
func (*Provisioner) DiskFormat ¶
func (p *Provisioner) DiskFormat() vdisk.Format
DiskFormat returns the provisioners required disk format
func (*Provisioner) Marshal ¶
func (p *Provisioner) Marshal() ([]byte, error)
Marshal returns json provisioner as bytes
func (*Provisioner) Provision ¶
func (p *Provisioner) Provision(args *provisioners.ProvisionArgs) error
Provision given a valid ProvisionArgs object will provision the passed vorteil project
to the configured amazon provisioner. This process will return as soon as the vorteil projects image has been uploaded, unless ReadyWhenUsable was set to true, then this function will block until aws reports the ami as usable.
func (*Provisioner) SizeAlign ¶
func (p *Provisioner) SizeAlign() vcfg.Bytes
SizeAlign returns vcfg GiB size in bytes
Click to show internal directories.
Click to hide internal directories.