api

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiClient = getApiClient()
View Source
var ErrorTimeout = errors.New("timeout")

Functions

func CreateAuthenticatedContext

func CreateAuthenticatedContext(parentCtx context.Context, apiKey string, baseUrl string) context.Context

func DownloadFile

func DownloadFile(url string, file io.Writer) error

func UploadFile

func UploadFile(url string, file io.Reader) error

func WaitForCondition added in v0.0.22

func WaitForCondition(ctx context.Context, message string, condition func() (bool, error), sleepDuration time.Duration, timeoutDuration time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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