configdrive

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Handling configuration data passed via Config-Drive disk images.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnableToLocateConfigDrive = errors.New("configdrive: couldn't locate the config drive device")
)

Functions

func FindMountTarget

func FindMountTarget(e sys.Executor) (string, error)

FindMountTarget finds the mount target location of the config drive device. It finds the device labeled with 'LABEL=config-2', then gets the mount target of that device.

Types

type Mount added in v0.2.0

type Mount struct {
	Path string
}

func (Mount) FetchMetadata added in v0.2.0

func (m Mount) FetchMetadata() (*metadata.Digest, error)

func (Mount) FetchUserdata added in v0.2.0

func (m Mount) FetchUserdata() (userdata.Map, error)

Jump to

Keyboard shortcuts

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