functional

package
v0.0.0-...-4d07d55 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerBootstrap

func ContainerBootstrap(imageName string) error

func ContainerExec

func ContainerExec(funcID string, data []string) (*schema.RuntimeOutput, time.Duration, error)

Exec create a container to run function

func JSExec

func JSExec(funcScript string, data string) (*shared.RuntimeOutput, time.Duration, error)

Types

type FunctionInstance

type FunctionInstance struct {
	Type int
	Name string
	ID   string
	API  struct {
		DBcache      shared.DatabaseCacheInterface
		DBpersistent shared.DatabasePersistentInterface
		Controller   shared.ControllerInterface
		Network      shared.NetworkInterface
	}
}

func (*FunctionInstance) Exec

func (fn *FunctionInstance) Exec(data string) (*schema.RuntimeOutput, error)

func (*FunctionInstance) Init

func (fn *FunctionInstance) Init() error

Directories

Path Synopsis
containerRTs

Jump to

Keyboard shortcuts

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