Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime interface {
// Start request the runtime to start the execution of the function.
// Cancelling the context will stop the runtime bookkeeping and all
// of its children processes.
Start(ctx context.Context, id string, esZipPath string) error
// Stop request the runtime to stop the execution of the function.
// The process may take some time to stop, so this method will return
// immediately after sending the stop signal.
// No-op if the runtime is already stopped.
Stop(ctx context.Context, id string) error
// Status returns the current status of the runtime.
Status(ctx context.Context, id string) (Status, error)
// List returns a list of all functions running in the runtime.
List(ctx context.Context) ([]Status, error)
}
Click to show internal directories.
Click to hide internal directories.