Documentation ¶
Overview ¶
Package python implmenets Python runtime
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRuntime ¶
func NewRuntime(parentLogger nuclio.Logger, configuration *Configuration) (runtime.Runtime, error)
NewRuntime returns a new Python runtime
Types ¶
type Configuration ¶
type Configuration struct { runtime.Configuration // What to run (e.g. "module:function") Handler string // Python version PythonVersion string // a map of environment variables that need to be injected into the // process. a nil value indicates to take it from the running process' // environment map Env map[string]*string }
Configuration is python configuration
type EventJSONEncoder ¶
type EventJSONEncoder struct {
// contains filtered or unexported fields
}
EventJSONEncoder encodes nuclio events as JSON
func NewEventJSONEncoder ¶
func NewEventJSONEncoder(logger nuclio.Logger, writer io.Writer) *EventJSONEncoder
NewEventJSONEncoder returns a new JSONEncoder
func (*EventJSONEncoder) Encode ¶
func (je *EventJSONEncoder) Encode(event nuclio.Event) error
Encode writes the JSON encoding of event to the stream, followed by a newline character
Click to show internal directories.
Click to hide internal directories.