client

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2017 License: Apache-2.0 Imports: 7 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
}

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 api.RequestV1) 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

Kill a running task

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