config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AutoInstallEnabled  string = "enabled"
	AutoInstallMissing  string = "missing"
	AutoInstallDisabled string = "disabled"

	SelfUpgradesEnabled  = "enabled"
	SelfUpgradesDisabled = "disabled"
)

Variables

This section is empty.

Functions

func SetDefaultVersion added in v0.0.3

func SetDefaultVersion(gowrapHome, version string) error

Types

type Configuration

type Configuration struct {
	DefaultVersion string `json:"defaultVersion,omitempty"`
	AutoInstall    string `json:"autoInstall,omitempty"`
	SelfUpgrade    string `json:"selfUpgrade,omitempty"`
	// contains filtered or unexported fields
}

func Load

func Load(gowrapHome string) (*Configuration, error)

func (*Configuration) Save

func (c *Configuration) Save() error

Jump to

Keyboard shortcuts

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