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 ¶
func (fe *FunctionEnv) Invoke(spec *types.TaskInvocationSpec, opts ...fnenv.InvokeOption) (*types.TaskInvocationStatus, error)
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.
Click to show internal directories.
Click to hide internal directories.