coordinator

package
v0.0.0-...-d500d3c Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coordinator

type Coordinator struct {
	backend.Store
	// contains filtered or unexported fields
}

func New

func New(logger *zap.Logger, scheduler backend.Scheduler, st backend.Store, opts ...Option) *Coordinator

func (*Coordinator) CancelRun

func (c *Coordinator) CancelRun(ctx context.Context, taskID, runID platform.ID) error

func (*Coordinator) CreateTask

func (c *Coordinator) CreateTask(ctx context.Context, req backend.CreateTaskRequest) (platform.ID, error)

func (*Coordinator) DeleteOrg

func (c *Coordinator) DeleteOrg(ctx context.Context, orgID platform.ID) error

func (*Coordinator) DeleteTask

func (c *Coordinator) DeleteTask(ctx context.Context, id platform.ID) (deleted bool, err error)

func (*Coordinator) DeleteUser

func (c *Coordinator) DeleteUser(ctx context.Context, userID platform.ID) error

func (*Coordinator) UpdateTask

type Option

type Option func(*Coordinator)

func WithLimit

func WithLimit(i int) Option

Jump to

Keyboard shortcuts

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