v0.27.0 Latest Latest

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

Go to latest
Published: Apr 19, 2017 License: Apache-2.0 Imports: 6 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type Client

type Client struct {
	// contains filtered or unexported fields

Client is used for communicating with an Eremetic server.

func New

func New(endpoint string, client *http.Client) (*Client, error)

New returns a new instance of a Client.

func (*Client) AddTask

func (c *Client) AddTask(r eremetic.Request) error

AddTask sends a request for a new task to be scheduled.

func (*Client) Kill added in v0.27.0

func (c *Client) Kill(taskID string) error

func (*Client) Sandbox

func (c *Client) Sandbox(taskID, file string) ([]byte, error)

Sandbox returns a sandbox resource for a given task.

func (*Client) Task

func (c *Client) Task(id string) (*eremetic.Task, error)

Task returns a task with a given ID.

func (*Client) Tasks

func (c *Client) Tasks() ([]eremetic.Task, error)

Tasks returns all current tasks.

func (*Client) Version

func (c *Client) Version() (string, error)

Version returns the version of the Eremetic server.

Jump to

Keyboard shortcuts

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