fetch

package
v1.999.16 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 23 Imported by: 2

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 InitClient

func InitClient(timeoutSeconds float64)

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