rc

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Current    string                 `yaml:"current"`
	Targets    map[string]interface{} `yaml:"targets"`
	Aliases    map[string]string      `yaml:"aliases"`
	SkipVerify map[string]bool        `yaml:"skip_verify"`
}

func Apply

func Apply() Config

func (*Config) Apply

func (c *Config) Apply() error

func (*Config) SetCurrent

func (c *Config) SetCurrent(alias string, reskip bool) error

func (*Config) SetTarget

func (c *Config) SetTarget(alias, url string, skipverify bool) error

func (*Config) SetToken

func (c *Config) SetToken(token string) error

func (*Config) URL

func (c *Config) URL() string

func (*Config) Verified added in v0.0.28

func (c *Config) Verified() bool

func (*Config) Write

func (c *Config) Write() error

Jump to

Keyboard shortcuts

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