fission

package
v0.0.0-...-98ba599 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "fission"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionEnv

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

FunctionEnv adapts the Fission platform to the function execution runtime. This allows the workflow engine to invoke Fission functions.

func New

func New(executorURL, serverURL, routerURL string) *FunctionEnv

func (*FunctionEnv) Invoke

Invoke executes the task in a blocking way.

spec contains the complete configuration needed for the execution. It returns the TaskInvocationStatus with a completed (FINISHED, FAILED, ABORTED) status. An error is returned only when error occurs outside of the runtime's control.

func (*FunctionEnv) Prepare

func (fe *FunctionEnv) Prepare(fn types.FnRef, expectedAt time.Time) error

Prepare signals the Fission runtime that a function request is expected at a specific time. For now this function will tap immediately regardless of the expected execution time.

func (*FunctionEnv) Resolve

func (fe *FunctionEnv) Resolve(ref types.FnRef) (string, error)

Jump to

Keyboard shortcuts

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