rc

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: MIT Imports: 6 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 {
	Version int               `yaml:"version"`
	Current string            `yaml:"current"`
	Vaults  map[string]*Vault `yaml:"vaults"`
}

func Apply

func Apply(use string) Config

func (*Config) Apply

func (c *Config) Apply(use string) error

func (*Config) Find added in v0.7.0

func (c *Config) Find(alias string) (*Vault, bool, 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) Vault added in v0.5.0

func (c *Config) Vault(which string) (*Vault, error)

func (*Config) Verified added in v0.0.28

func (c *Config) Verified() bool

func (*Config) Write

func (c *Config) Write() error

type Vault added in v0.5.0

type Vault struct {
	URL        string `yaml:"url"`
	Token      string `yaml:"token"`
	SkipVerify bool   `yaml:"skip_verify"`
}

Jump to

Keyboard shortcuts

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