client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 5 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 interface {
	PluginList() ([]model.Plugin, error)
	PluginInstall(pi url.Values, filepath string) error
	PluginUninstall(id string) error
}

type HTTPClient

type HTTPClient struct {
	*resty.Client
}

func NewHTTPClient

func NewHTTPClient(hostURL string) *HTTPClient

func (*HTTPClient) PluginInstall

func (hc *HTTPClient) PluginInstall(pi url.Values, filepath string) (err error)

func (*HTTPClient) PluginList

func (hc *HTTPClient) PluginList() ([]model.Plugin, error)

func (*HTTPClient) PluginUninstall

func (hc *HTTPClient) PluginUninstall(id string) (err error)

Jump to

Keyboard shortcuts

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