Documentation ¶
Index ¶
- func BuildAndRun(name, zipperAddr, credential string, wrapper SFNWrapper, env []string) error
- func ReadTagData(r io.Reader) (uint32, []byte, error)
- func Run(name, zipperAddr, credential string, wrapper SFNWrapper, env []string) error
- func WriteTagData(w io.Writer, tag uint32, data []byte) error
- type SFNWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAndRun ¶
func BuildAndRun(name, zipperAddr, credential string, wrapper SFNWrapper, env []string) error
BuildAndRun builds and runs the serverless function.
func ReadTagData ¶
ReadTagData reads tag and data from the socket stream.
Types ¶
type SFNWrapper ¶
type SFNWrapper interface { // WorkDir returns the working directory of the serverless function to build and run. WorkDir() string // Build defines how to build the serverless function. Build(env []string) error // Run defines how to run the serverless function. Run(env []string) error }
SFNWrapper defines serverless function wrapper, you can implement this interface to wrap any runtime as a serverless function to run on Yomo.
Click to show internal directories.
Click to hide internal directories.