testing

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 6 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirToMap

func DirToMap(dir string) (map[string]interface{}, error)

DirToMap converts directory to a map where keys are filenames without full path and values are the contents of the files. Files with '.iso' extensions are unpacked using 7z and then converted to a map using DirToMap. Directories are handled recursively. If the directory doesn't exist, dirToMap returns nil

func IsoToMap

func IsoToMap(isoPath string) (map[string]interface{}, error)

IsoToMap converts an iso image to a map where keys are filenames without full path and values are the contents of the files. It does so by unpacking the image into a temporary directory and processing it with DirToMap.

Types

This section is empty.

Jump to

Keyboard shortcuts

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