config

package
v0.0.0-...-04fe7af Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AuthClient = "credhub_cli"
View Source
const AuthPassword = ""

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() string

func ConfigPath

func ConfigPath() string

func RemoveConfig

func RemoveConfig() error

func ValidateConfig

func ValidateConfig(c Config) error

func ValidateConfigApi

func ValidateConfigApi(c Config) error

func WriteConfig

func WriteConfig(c Config) error

Types

type Config

type Config struct {
	ApiURL             string
	AuthURL            string
	AccessToken        string
	RefreshToken       string
	InsecureSkipVerify bool
	CaCerts            []string
	ServerVersion      string
}

func ReadConfig

func ReadConfig() Config

func (*Config) UpdateTrustedCAs

func (cfg *Config) UpdateTrustedCAs(caCerts []string) error

Jump to

Keyboard shortcuts

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