legacyparams

package
v1.6.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadParams

func LoadParams(v *viper.Viper) (APIParams, NetworkParams, error)

LoadParams loads legacy params from viper.Viper instance. Returns ErrAuth if failed to retrieve api key.

Types

type APIParams

type APIParams struct {
	Key     string
	URL     string
	Plugin  string
	Timeout time.Duration
}

APIParams contains api related command parameters.

func (APIParams) String

func (p APIParams) String() string

type NetworkParams

type NetworkParams struct {
	DisableSSLVerify bool
	ProxyURL         string
	SSLCertFilepath  string
}

NetworkParams contains network related command parameters.

func (NetworkParams) String

func (p NetworkParams) String() string

Jump to

Keyboard shortcuts

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