context

package
v3.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: MIT Imports: 5 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalContext = Context{
	Version:    semver.MustParse("3.0.1-alpha").String(),
	ConfigDir:  configdir.ConfigDir(),
	ConfigPath: path.Join(configdir.ConfigDir(), "config.toml"),
}

Functions

This section is empty.

Types

type Context

type Context struct {
	Version     string
	ConfigPath  string
	ConfigDir   string
	Fingerprint string
	Namespace   string
	Quiet       bool
	Changed     bool
	Client      chClient.Client
}

func (*Context) GetStorable

func (ctx *Context) GetStorable() Storable

func (*Context) SetStorable

func (ctx *Context) SetStorable(config Storable)

type Storable

type Storable struct {
	Namespace string
	Username  string
	Password  string
}

Jump to

Keyboard shortcuts

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