config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAPIURL     = "https://prodapi.gofirefly.io/api"
	DefaultAuthHeader = "Authorization"
)

Variables

View Source
var (
	ErrConfigNotFound = errors.New("profile configuration not found")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Profile             string
	URL                 string
	AuthorizationHeader string
	AccessKey           string
	SecretKey           string
}

func LoadConfig

func LoadConfig(profile string) (c Config, err error)

func (Config) Save

func (c Config) Save() (path string, err error)

Jump to

Keyboard shortcuts

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