client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(registryURL string) *Client

func (*Client) GetPlugin

func (c *Client) GetPlugin(ctx context.Context, plugin string) (*registry.Plugin, error)

func (*Client) GetPluginRelease

func (c *Client) GetPluginRelease(ctx context.Context, plugin, version string) (*registry.PluginRelease, error)

func (*Client) GetPlugins

func (c *Client) GetPlugins(ctx context.Context) ([]string, error)

func (*Client) SendBatchRequest

func (c *Client) SendBatchRequest(ctx context.Context, batch *registry.BatchRequest) (*registry.BatchResponse, error)

type ErrorResponse

type ErrorResponse struct {
	StatusCode int
	ErrorMsg   string `json:"error"`
}

func (*ErrorResponse) Error

func (e *ErrorResponse) Error() string

Jump to

Keyboard shortcuts

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