Documentation ¶
Index ¶
- func ExtractArchive(s string) (user, archive string)
- func ExtractEngine(archive string) (engine, version string)
- func GetEngine(user, archive, version string) (*http.Response, error)
- func GetOverlay(overlay, dst string)
- func MountLocal() (mountName, mountDir string, err error)
- func RemountLocal() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractArchive ¶
ExtractArchive splits args on "/" looking for a user and archive: - user/engine-name - user/engine-name=0.0.1
func ExtractEngine ¶
ExtractEngine splits on the archive to find the engine and the release (version)
func GetOverlay ¶
func GetOverlay(overlay, dst string)
GetOverlay fetches an overlay from nanobox.io and untars it into dst
func MountLocal ¶
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.
Click to show internal directories.
Click to hide internal directories.