python

package
v0.0.0-...-2f10389 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

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

Jump to

Keyboard shortcuts

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