Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ProvisionerType : Constant string value used to represent the provisioner type azure
ProvisionerType = "microsoft-azure"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Container string `json:"container"` // Azure storage container name Key string `json:"key"` // Base64 encoded contents of an Azure service principal credentials file Location string `json:"location"` // Azure location ResourceGroup string `json:"resourceGroup"` // Azure resource group name StorageAccountKey string `json:"storageAccountKey"` // Azure storage account key StorageAccountName string `json:"storageAccountName"` // Azure storage account name }
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 Azure 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 will provision the configured vorteil project to your configured gcp provisioner
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.