client

package
v0.0.0-...-fc91ca8 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 14 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url *url.URL, accessKey string, httpClient *http.Client) *Client

func (*Client) Connect

func (c *Client) Connect(ctx context.Context, project, deviceID, connection string) (net.Conn, error)

func (*Client) CreateApplication

func (c *Client) CreateApplication(ctx context.Context, project string, name string) (*models.Application, error)

func (*Client) CreateProject

func (c *Client) CreateProject(ctx context.Context, name string) (*models.Project, error)

func (*Client) CreateRelease

func (c *Client) CreateRelease(ctx context.Context, project, application, yamlConfig string) (*models.Release, error)

func (*Client) GetApplication

func (c *Client) GetApplication(ctx context.Context, project, application string) (*models.Application, error)

func (*Client) GetDevice

func (c *Client) GetDevice(ctx context.Context, project, device string) (*models.Device, error)

func (*Client) GetDeviceMetrics

func (c *Client) GetDeviceMetrics(ctx context.Context, project, device string) (*string, error)

func (*Client) GetLatestRelease

func (c *Client) GetLatestRelease(ctx context.Context, project, application string) (*models.Release, error)

func (*Client) GetServiceMetrics

func (c *Client) GetServiceMetrics(ctx context.Context, project, device, application, service string) (*string, error)

func (*Client) ListApplications

func (c *Client) ListApplications(ctx context.Context, project string) ([]models.Application, error)

func (*Client) ListDevices

func (c *Client) ListDevices(ctx context.Context, filters []models.Filter, project string) ([]models.Device, error)

func (*Client) ListProjects

func (c *Client) ListProjects(ctx context.Context, project string) ([]models.ProjectFull, error)

func (*Client) Reboot

func (c *Client) Reboot(ctx context.Context, project, device string) error

func (*Client) SSH

func (c *Client) SSH(ctx context.Context, project, deviceID string) (net.Conn, error)

Jump to

Keyboard shortcuts

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