bigslice: Index | Files

package sliceconfig

import ""

Package sliceconfig provides a mechanism to create a bigslice session from a shared configuration. Sliceconfig uses the configuration mechanism in package, and reads a default profile from $HOME/.bigslice/config. Configurations may be provisioned using the bigslice command.


Package Files



var Path = os.ExpandEnv("$HOME/.bigslice/config")

Path determines the location of the bigslice profile read by Parse.

func Parse Uses

func Parse() (sess *exec.Session, shutdown func())

Parse registers configuration flags, bigslice flags, and calls flag.Parse. It reads bigslice configuration from Path defined in this package. Parse returns session as configured by the configuration and any flags provided. Parse panics if session creation fails. Parse also instantiates the default http server according to the configuration profile, and registers the bigslice session status handlers with it.

Package sliceconfig imports 13 packages (graph) and is imported by 4 packages. Updated 2019-11-14. Refresh now. Tools for package owners.