utils

package
v1.3.9-k8s-whitelist-u... Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteHTTPRequest

func ExecuteHTTPRequest(uuid string, apiUrl ApiURL, httpClient Client) (b []byte, status int, err error)

func ExecuteSimpleHTTPRequest

func ExecuteSimpleHTTPRequest(urlStr string, httpClient Client) (b []byte, status int, err error)

Types

type ApiURL

type ApiURL struct {
	BaseURL  string
	Endpoint string
}

type Client

type Client interface {
	Do(req *http.Request) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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