amazon

package
v0.0.0-...-79a645e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

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

func (*Provisioner) Type

func (p *Provisioner) Type() string

Type returns 'amazon-ec2'

func (*Provisioner) Validate

func (p *Provisioner) Validate() error

Validate ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL