tasks

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 15 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 represents cloud tasks client.

func NewClient

func NewClient(ctx context.Context) (*Client, error)

NewClient returns cloud tasks client.

type Tasks

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

Tasks implements repository.Action for tasks.

func New

func New(cli *Client, ac model.ActionConfig) *Tasks

New returns an action for cloud tasks.

func (*Tasks) List

func (a *Tasks) List(ctx context.Context) (model.ScheduleEvents, error)

List lists schedule events from cloud tasks.

func (*Tasks) Register

func (a *Tasks) Register(ctx context.Context, events ...model.ScheduleEvent) error

Register registeres schedule events to cloud tasks.

func (*Tasks) Unregister

func (a *Tasks) Unregister(ctx context.Context, events ...model.ScheduleEvent) error

Unregister unregisters schedule events from cloud tasks.

Jump to

Keyboard shortcuts

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