Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PackDirectoryAsISO ¶
Packs a directory into a gzipped ISO image
Types ¶
type ConfigDrive ¶
type ConfigDrive struct { UserData UserDataBuilder `json:"user_data"` MetaData map[string]interface{} `json:"meta_data"` NetworkData map[string]interface{} `json:"network_data"` Version string `json:"-"` BuildDirectory string `json:"-"` }
A ConfigDrive struct will be used to create a base64-encoded, gzipped ISO9660 image for use with Ironic.
func (ConfigDrive) ToConfigDrive ¶
func (configDrive ConfigDrive) ToConfigDrive() (string, error)
Writes out the ConfigDrive struct to a directory structure, and then packs it as a base64-encoded gzipped ISO9660 image.
func (ConfigDrive) ToDirectory ¶
func (configDrive ConfigDrive) ToDirectory() (string, error)
Writes out a ConfigDrive to a temporary directory, and returns the path
type ConfigDriveBuilder ¶
type UserDataBuilder ¶
Interface to let us specify a raw string, or a map for the user data
type UserDataMap ¶
type UserDataMap map[string]interface{}
func (UserDataMap) ToUserData ¶
func (data UserDataMap) ToUserData() ([]byte, error)
Converts a UserDataMap to JSON-string
type UserDataString ¶
type UserDataString string
func (UserDataString) ToUserData ¶
func (data UserDataString) ToUserData() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.