Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ProvisionerType for GCP provisioner
ProvisionerType = "google-compute"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Bucket string `json:"bucket"` // Name of the bucket Key string `json:"key"` // base64 encoded contents of a (JSON) Google Cloud Platform service account key file }
Config contains configuration fields required by the Provisioner
type ProvisionArgs ¶
ProvisionArgs TODO:
type Provisioner ¶
type Provisioner struct {
// contains filtered or unexported fields
}
Provisioner ...
func NewProvisioner ¶
func NewProvisioner(log elog.View, cfg *Config) (*Provisioner, error)
NewProvisioner - Create a Google 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 provisions BUILDABLE to GCP
func (*Provisioner) SizeAlign ¶
func (p *Provisioner) SizeAlign() vcfg.Bytes
SizeAlign returns vcfg GiB size in bytes
type ProvisionerArgs ¶
ProvisionerArgs ...
Click to show internal directories.
Click to hide internal directories.