service

package
v0.0.0-...-5a2029e Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation interface {
	GetTask(ctx context.Context) error
	ListTask(ctx context.Context) error
	DeleteTask(ctx context.Context) error
	CreateTask(ctx context.Context, namespace string, resource string) (*types.Task, error)
	UpdateTask(ctx context.Context) error
}

func New

func New(opt *Options) Operation

type Options

type Options struct {
	DB dao.Storage
}

type Task

type Task struct {
	Resource string `json:"resource"`
}

Jump to

Keyboard shortcuts

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