fetch

package
v0.0.0-...-2e0f108 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *http.Client
View Source
var DefaultClientName = "fetch"
View Source
var DefaultHost = "api-v2.envkey.com"
View Source
var FetchServiceVersion = 2
View Source
var NumFailovers = 2
View Source
var UpdateTrustedRootActionType = "envkey/api/ENVKEY_FETCH_UPDATE_TRUSTED_ROOT_PUBKEY"
View Source
var UpdateTrustedRootLoggableType = "authAction"

Functions

func Fetch

func Fetch(envkey string, options FetchOptions) (string, error)

func FetchMap

func FetchMap(envkey string, options FetchOptions) (parser.EnvMap, error)

func GetHost

func GetHost(envkeyHost string) string

func InitClient

func InitClient(timeoutSeconds float64)

func SplitEnvkey

func SplitEnvkey(envkey string) (string, string, string)

func UrlWithLoggingParams

func UrlWithLoggingParams(baseUrl string, options FetchOptions) string

Types

type FailoverResponse

type FailoverResponse struct {
	SignedUrl string `json:"signedUrl"`
}

type FetchOptions

type FetchOptions struct {
	ShouldCache    bool
	CacheDir       string
	ClientName     string
	ClientVersion  string
	VerboseOutput  bool
	TimeoutSeconds float64
	Retries        uint8
	RetryBackoff   float64
}

Jump to

Keyboard shortcuts

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