provisioning

package
v0.0.0-...-677ed08 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2016 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InstallYamlFile is the name of the file created by
	// ubuntu-device-flash(1), created at system installation time,
	// that contains metadata on the installation.
	//
	// XXX: Public for ubuntu-device-flash(1)
	InstallYamlFile = "install.yaml"
)

Variables

This section is empty.

Functions

func InDeveloperMode

func InDeveloperMode() bool

InDeveloperMode returns true if the image was build with --developer-mode

Types

type ErrNoInstallYaml

type ErrNoInstallYaml struct {
	// contains filtered or unexported fields
}

ErrNoInstallYaml is emitted when InstallYamlFile does not exist.

func (*ErrNoInstallYaml) Error

func (e *ErrNoInstallYaml) Error() string

type InstallMeta

type InstallMeta struct {
	Timestamp time.Time
}

InstallMeta encapsulates the metadata for a system install.

type InstallOptions

type InstallOptions struct {
	Size          int64  `yaml:"size"`
	SizeUnit      string `yaml:"size-unit"`
	Output        string
	Channel       string
	DevicePart    string `yaml:"device-part,omitempty"`
	Gadget        string
	OS            string
	Kernel        string
	DeveloperMode bool `yaml:"developer-mode,omitempty"`
}

InstallOptions summarises the options used when creating the system image.

type InstallTool

type InstallTool struct {
	Name    string
	Path    string
	Version string
}

InstallTool encapsulates metadata on the tool used to create the system image.

type InstallYaml

type InstallYaml struct {
	InstallMeta    `yaml:"meta"`
	InstallTool    `yaml:"tool"`
	InstallOptions `yaml:"options"`
}

InstallYaml represents 'InstallYamlFile'

XXX: Public for ubuntu-device-flash

Jump to

Keyboard shortcuts

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