Documentation ¶ Index ¶ func File(path string, content []byte) *file func FilePerm(path string, content []byte, perm os.FileMode) *file type Bakeable type Remover func Mount(path string, nodes ...Bakeable) (*Remover, error) func (m *Remover) Remove() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func File ¶ func File(path string, content []byte) *file File is a file with contents specified by a string func FilePerm ¶ func FilePerm(path string, content []byte, perm os.FileMode) *file FilePerm is like File but you can specify the permissions Types ¶ type Bakeable ¶ type Bakeable interface { Bake(dir string) error } Bakeable stamps itself out onto a temporary directory type Remover ¶ type Remover struct { // contains filtered or unexported fields } Remover holds the location of certain temporary files supporting a pivot_root'ed overlay filesystem. The main purpose of this struct is to clean it up afterwards. func Mount ¶ func Mount(path string, nodes ...Bakeable) (*Remover, error) func (*Remover) Remove ¶ func (m *Remover) Remove() error Remove cleans up the temporary directory created by Pivot Source Files ¶ View all Source files overlay.go Click to show internal directories. Click to hide internal directories.