manager

package
v0.0.0-...-4b98c26 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	// contains filtered or unexported fields
}

APIClient is an http client that can be used to query the API of the manager.

func NewAPIClient

func NewAPIClient(baseURL, token string) *APIClient

NewAPIClient builds a new client for the manager API

func (*APIClient) Delete

func (c *APIClient) Delete(url string) error

Delete makes a DELETE request to the manager API

func (*APIClient) Do

func (c *APIClient) Do(method, url string, body io.Reader) (*http.Response, error)

Do makes a request to the manager API

func (*APIClient) Get

func (c *APIClient) Get(url string) (map[string]interface{}, error)

Get makes a GET request to the manager API

func (*APIClient) Put

func (c *APIClient) Put(url string, params map[string]interface{}) error

Put makes a PUT request to the manager API

Jump to

Keyboard shortcuts

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