sliceconfig

package
Version: v0.0.0-...-137f5f1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

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

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

Functions

func Parse

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.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto