provisioners

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

Documentation

Index

Constants

View Source
const (
	MapKey = "type"
)

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data []byte, passphrase string) ([]byte, error)

func Encrypt

func Encrypt(data []byte, passphrase string) []byte

func ProvisionerType

func ProvisionerType(data []byte) (string, error)

ProvisionerType : Return Provisioner type as a string

Types

type InvalidProvisionerError

type InvalidProvisionerError struct {
	Err error
}

func (*InvalidProvisionerError) Error

func (e *InvalidProvisionerError) Error() string

type ProvisionArgs

type ProvisionArgs struct {
	Name            string
	Description     string
	Force           bool
	ReadyWhenUsable bool
	Context         context.Context
	Image           vio.File
}

ProvisionArgs ...

type Provisioner

type Provisioner interface {
	Type() string
	DiskFormat() vdisk.Format
	SizeAlign() vcfg.Bytes
	Provision(args *ProvisionArgs) error
	Marshal() ([]byte, error)
}

Provisioner ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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