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 ¶
InDeveloperMode returns true if the image was build with --developer-mode
func IsSideLoaded ¶
IsSideLoaded determines if the system was installed using a custom enablement part.
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 InitialVersion string `yaml:"initial-version"` SystemImageServer string `yaml:"system-image-server"` }
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"` Oem string DeveloperMode bool `yaml:"developer-mode,omitempty"` }
InstallOptions summarises the options used when creating the system image.
type InstallTool ¶
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
Click to show internal directories.
Click to hide internal directories.