runnertask

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 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 Option

type Option func(*RunnerTask)

Option RunnerTask config items.

func WithBundle

func WithBundle(bundle *bundle.Bundle) Option

WithBundle set bundle.

func WithDBClient

func WithDBClient(db *dbclient.DBClient) Option

WithDBClient set db client.

type RunnerTask

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

func New

func New(options ...Option) *RunnerTask

New RunnerTask service

func (*RunnerTask) CreateRunnerTask

func (f *RunnerTask) CreateRunnerTask(request apistructs.CreateRunnerTaskRequest) (uint64, error)

func (*RunnerTask) FetchRunnerTask

func (f *RunnerTask) FetchRunnerTask() ([]*apistructs.RunnerTask, error)

func (*RunnerTask) GetRunnerTask

func (f *RunnerTask) GetRunnerTask(id int64) (*apistructs.RunnerTask, error)

func (*RunnerTask) UpdateRunnerTask

func (f *RunnerTask) UpdateRunnerTask(request *apistructs.UpdateRunnerTaskRequest) error

Jump to

Keyboard shortcuts

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