client

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 21 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 {
}

func NewClient

func NewClient() *Client

func (*Client) CheckRead

func (c *Client) CheckRead(mod *model.Model) error

func (*Client) DeleteVersion

func (c *Client) DeleteVersion(mod *model.Model, id string) error

func (*Client) DownloadVersion

func (c *Client) DownloadVersion(mod *model.Model, id string, outputDir string) error

func (*Client) GetBuildLogs

func (c *Client) GetBuildLogs(mod *model.Model, buildID string, follow bool) (chan *LogEntry, error)

func (*Client) GetDisplayTokenURL

func (c *Client) GetDisplayTokenURL(address string) (url string, err error)

func (*Client) GetVersion

func (c *Client) GetVersion(mod *model.Model, id string) (*server.APIVersion, error)

func (*Client) ListVersions

func (c *Client) ListVersions(mod *model.Model) ([]*model.Version, error)

func (*Client) Ping

func (c *Client) Ping(mod *model.Model) error

func (*Client) UploadVersion

func (c *Client) UploadVersion(mod *model.Model, projectDir string) (*model.Version, error)

func (*Client) VerifyToken

func (c *Client) VerifyToken(address string, token string) (username string, err error)

type LogEntry

type LogEntry struct {
	Level logger.Level `json:"level"`
	Line  string       `json:"line"`
}

FIXME(bfirsh): why is this a different format to logger.LogWriter?

Jump to

Keyboard shortcuts

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