config

package
v1.999.999-b3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: Apache-2.0, BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConfigAndCommandFlags

func CheckConfigAndCommandFlags(c *cli.Context) error

func CheckConfigAndCommandFlagsDP

func CheckConfigAndCommandFlagsDP(c *cli.Context) error

func CheckConfigAndCommandFlagsWithoutWorkspace

func CheckConfigAndCommandFlagsWithoutWorkspace(c *cli.Context) error

func CheckResourceAddressingFlags

func CheckResourceAddressingFlags(c *cli.Context) error

func GetHomeDirectory

func GetHomeDirectory() string

func PrintConfig

func PrintConfig(cfg Config)

func WriteConfigToFile

func WriteConfigToFile(baseDir, server, output, profile, workspace, apiKeyID, privateKey string) error

Types

type Config

type Config struct {
	Server       string `json:"server" yaml:"server"`
	Workspace    string `json:"workspace,omitempty" yaml:"workspace,omitempty"`
	Output       string `json:"output,omitempty" yaml:"output,omitempty"`
	RefreshToken string `json:"refreshtoken,omitempty" yaml:"refreshtoken,omitempty"`
	ApiKeyID     string `json:"apikeyid" yaml:"apikeyid"`
	PrivateKey   string `json:"privatekey" yaml:"privatekey"`
	Timeout      string `json:"timeout,omitempty" yaml:"timeout,omitempty"`
}

func ReadConfig

func ReadConfig(baseDir string, profile string) (*Config, error)

func (Config) Yaml

func (c Config) Yaml() string

type ConfigList

type ConfigList map[string]Config

func (ConfigList) Json

func (c ConfigList) Json() string

func (ConfigList) Yaml

func (c ConfigList) Yaml() string

Jump to

Keyboard shortcuts

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