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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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