marketplace

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MPL-2.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 Client

type Client struct {
	HTTPClient *http.Client
}

func (*Client) Delete

func (c *Client) Delete(endpoint string) (*http.Response, error)

func (*Client) Do

func (c *Client) Do(method, endpoint string, payload *bytes.Buffer) (*http.Response, error)

func (*Client) DownloadArtifact

func (c *Client) DownloadArtifact(url string, dest *os.File) error

func (*Client) Get

func (c *Client) Get(endpoint string) (*http.Response, error)

func (*Client) Post

func (c *Client) Post(endpoint string, jsonpayload *bytes.Buffer) (*http.Response, error)

func (*Client) Put

func (c *Client) Put(endpoint string, jsonpayload *bytes.Buffer) (*http.Response, error)

func (*Client) PutOnly

func (c *Client) PutOnly(endpoint string) (*http.Response, error)

type Error

type Error struct {
	StatusCode int
	Endpoint   string
}

Error represents a error from the marketplace api.

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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