azure

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: 20 Imported by: 0

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

func (*Provisioner) Type

func (p *Provisioner) Type() string

Type returns 'microsoft-azure'

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