manager

package
v0.0.0-...-820a931 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0 Imports: 9 Imported by: 1

Documentation

Overview

Package manager is used for interacting with the cloudery.

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) Post

func (c *APIClient) Post(url string, body io.Reader) error

Post makes a POST 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