local

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalRunner

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

func NewLocalRunner

func NewLocalRunner() *LocalRunner

func (*LocalRunner) DeleteLoop

func (r *LocalRunner) DeleteLoop(namespacedName types.NamespacedName) error

func (*LocalRunner) Has

func (r *LocalRunner) Has(namespacedName types.NamespacedName) (bool, error)

func (*LocalRunner) LoopsCount

func (r *LocalRunner) LoopsCount() int

func (*LocalRunner) NamespaceCount

func (r *LocalRunner) NamespaceCount() int

func (*LocalRunner) UpsertLoop

func (r *LocalRunner) UpsertLoop(loop *v1.Loop) error

type Script

type Script struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewScript

func NewScript() *Script

func (*Script) Exec

func (script *Script) Exec(ctx context.Context) (*warp10.Response, error)

Exec execute the given script

func (*Script) SetEvery

func (script *Script) SetEvery(d time.Duration)

func (*Script) SetObject

func (script *Script) SetObject(o *loops.Loop)

func (*Script) Start

func (script *Script) Start()

func (*Script) Stop

func (script *Script) Stop()

Jump to

Keyboard shortcuts

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