sololib

package
v0.0.0-...-46c4e5f Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 6 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(baseURL string) *Client

func (*Client) CreateTask

func (c *Client) CreateTask(ctx context.Context, task *Task) (*Task, error)

func (*Client) GetTask

func (c *Client) GetTask(ctx context.Context, taskID string) (*Task, error)

func (*Client) ListTask

func (c *Client) ListTask(ctx context.Context, opts *ListOptions) ([]*Task, error)

func (*Client) SetDebug

func (c *Client) SetDebug(debug bool)

func (*Client) UpdateTask

func (c *Client) UpdateTask(ctx context.Context, taskID string, task *Task) (*Task, error)

type ListOptions

type ListOptions struct {
	Matchers []*Matcher
	Sort     []string
}

func (*ListOptions) Apply

func (lo *ListOptions) Apply(req *resty.Request)

type Matcher

type Matcher struct {
	Path  string
	Op    string
	Value string
}

type Task

type Task = schema.Task

Jump to

Keyboard shortcuts

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