client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinArgs

func JoinArgs(args []string) string

JoinArgs ...

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client ...

func NewClient

func NewClient(url string, options *Options) *Client

NewClient ...

func (*Client) Close

func (c *Client) Close(id string) (err error)

Close ...

func (*Client) Create

func (c *Client) Create(name string, args []string, input io.Reader, interactive, wait bool) (res []*je.Job, err error)

Create ...

func (*Client) GetJobByID

func (c *Client) GetJobByID(id string) (res []*je.Job, err error)

GetJobByID returns the matching job by id

func (*Client) Kill

func (c *Client) Kill(id string, force bool) (err error)

Kill ...

func (*Client) Logs

func (c *Client) Logs(id string, follow bool) (r io.Reader, err error)

Logs ...

func (*Client) Output

func (c *Client) Output(id string, follow bool) (r io.Reader, err error)

Output ...

func (*Client) Search

func (c *Client) Search(options *SearchOptions) (res []*je.Job, err error)

Search ...

func (*Client) Write

func (c *Client) Write(id string, input io.Reader) (err error)

Write ...

type Options

type Options struct {
}

Options ...

type SearchFilter

type SearchFilter struct {
	ID    string
	Name  string
	State string
}

SearchFilter ...

type SearchOptions

type SearchOptions struct {
	Filter *SearchFilter
}

SearchOptions ...

Jump to

Keyboard shortcuts

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