fetch

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiVersion = 1
View Source
var BackupHost = "s3-eu-west-1.amazonaws.com/envkey-backup/envs"
View Source
var BackupHostRestricted = "me66hg5t17.execute-api.eu-west-1.amazonaws.com/default/envBackup"
View Source
var Client *http.Client
View Source
var DefaultHost = "env.envkey.com"

Functions

func Fetch

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

func InitHttpClient added in v1.2.1

func InitHttpClient(timeoutSeconds float64)

func UrlWithLoggingParams added in v1.2.1

func UrlWithLoggingParams(baseUrl string, options FetchOptions) string

Types

type FetchOptions

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

Jump to

Keyboard shortcuts

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