engine

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2015 License: MPL-2.0 Imports: 9 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractArchive

func ExtractArchive(s string) (user, archive string)

ExtractArchive splits args on "/" looking for a user and archive: - user/engine-name - user/engine-name=0.0.1

func ExtractEngine

func ExtractEngine(archive string) (engine, version string)

ExtractEngine splits on the archive to find the engine and the release (version)

func GetEngine

func GetEngine(user, archive, version string) (*http.Response, error)

GetEngine gets an engine from nanobox.io

func GetOverlay

func GetOverlay(overlay, dst string)

GetOverlay fetches an overlay from nanobox.io and untars it into dst

func MountLocal

func MountLocal() (mountName, mountDir string, err error)

MountLocal creates a local mount (~/.nanobox/apps/<app>/<engine>/<mount>)

func RemountLocal

func RemountLocal() (err error)

RemountLocal simply calls MountLocal() but only returns the error as the mounts name and dir are not important in this instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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