utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2016 License: Apache-2.0 Imports: 15 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DockerHelpMessage = `` /* 268-byte string literal not displayed */
View Source
var FliBinaryCmd = "fli "
View Source
var FliDockerCmd = "docker run --rm --privileged -v /chq/:/chq/:shared -v /root:/root -v /lib/modules:/lib/modules clusterhq/fli "
View Source
var FliDockerHelp = `` /* 534-byte string literal not displayed */
View Source
var FliDockerVersion = `Version: 0.1.0`
View Source
var FliHelpMessage = `` /* 277-byte string literal not displayed */

Functions

func CheckForCmd

func CheckForCmd(cmd string) (result bool, err error)

func CheckForCopy

func CheckForCopy(composeFile string)

func CheckForFile

func CheckForFile(file string) (result bool, err error)

func CheckForPath

func CheckForPath(path string) (result bool, err error)

func CleanEnv

func CleanEnv(composeFile string)

Clean up files fli-docker touches.

func DestroyCompose

func DestroyCompose(composeFile string, projectName string)

Run the compose file with options

func GenUUID

func GenUUID() (uuid string, err error)

Generate UUIDs

func MakeCopy

func MakeCopy(composeFile string)

A function to copy a file and label it as fli did it.

func MapVolumeToCompose

func MapVolumeToCompose(volume string, path string, composeFile string)

Replace volume names with associated volume paths

func ParseCompose

func ParseCompose(composeFile string)

Parse the compose file. This will validate the compose file and print it.

func ParseManifest

func ParseManifest(yamlFile []byte) *types.Manifest

Parse a raw yaml file.

func RunCompose

func RunCompose(composeFile string, projectName string)

Run the compose file with options

func StopCompose

func StopCompose(composeFile string, projectName string)

Run the compose file with options

Types

This section is empty.

Jump to

Keyboard shortcuts

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