cfg

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: EPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// FilePath path to config file.
	FilePath string

	// PushStatusesEndpoint where to push statuses.
	PushStatusesEndpoint string

	// AuthEnabled whether authentication is needed
	AuthEnabled bool

	// Token to access wsmaster API
	Token string

	// RuntimeID the id of workspace runtime this machine belongs to.
	RuntimeID model.RuntimeID
)

Functions

func Parse

func Parse()

Parse parses configuration.

func Print

func Print()

Print prints configuration.

func ReadConfig

func ReadConfig() []model.PluginMeta

ReadConfig reads content of file by path cfg.FilePath, parses its content as array of Che plugin meta objects and returns it. If any error occurs during read, log.Fatal is called.

Types

This section is empty.

Jump to

Keyboard shortcuts

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