client

package
v0.0.0-...-0fa8ac3 Latest Latest
Warning

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

Go to latest
Published: May 5, 2017 License: MIT Imports: 12 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 New

func New(url, token string) *Client

New creates a new Client

func (*Client) MachineCreate

func (c *Client) MachineCreate(machine *model.Machine) (*model.Machine, error)

func (*Client) MachineDelete

func (c *Client) MachineDelete(name string) error

func (*Client) MachineInfo

func (c *Client) MachineInfo(name string) (*model.Machine, error)

func (*Client) MachineList

func (c *Client) MachineList() ([]*model.Machine, error)

func (*Client) SessionControl

func (c *Client) SessionControl(sessionID string) (chan driver.ControlMessage, error)

SessionControl returns a control message channel for a session

func (*Client) SessionCreate

func (c *Client) SessionCreate(machineName string, width, height int) (string, error)

SessionCreate creates a new exec session

func (*Client) SessionIO

func (c *Client) SessionIO(sessionID string, r io.ReadCloser, w io.WriteCloser) error

SessionIO transmits input and output for a session

Jump to

Keyboard shortcuts

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