config

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthenticationServer = "AuthenticationServer"
	Eana360Server        = "Eana360Endpoint"
	Eana360FarmId        = "CurrentFarm"
)

Variables

View Source
var ErrValueNotFound = eris.New("value not found for key")

Functions

func Delete

func Delete(key string) error

func Dump

func Dump() (map[string][]byte, error)

func GetValue

func GetValue(key string) ([]byte, error)

func Load

func Load(key string, response interface{}) error

func Must

func Must(key string, driver display.Driver) string

Must return a string or fails gracefully

func PreVerify

func PreVerify(cmd *cobra.Command)

func Store

func Store(key string, payload interface{}) error

func WriteValue

func WriteValue(key string, value []byte) error

Types

type Config

type Config struct {
	Server                  string                    `json:"server"`
	ClientId                string                    `json:"client_id"`
	ClientSecret            string                    `json:"client_secret"`
	Authorizer              string                    `json:"authorizer"`
	Audience                string                    `json:"audience"`
	Type                    string                    `json:"type"`
	Token                   string                    `json:"token"`
	OauthToken              *oauth2.Token             `json:"oauth_token"`
	OauthConfig             *oauth2.Config            `json:"oauth_config"`
	ClientCredentialsConfig *clientcredentials.Config `json:"cc_config"`
}

Jump to

Keyboard shortcuts

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