processor

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerRunner

type ContainerRunner interface {
	Run(context.Context, *types.ImageRunnerInput) ([]byte, error)
}

ContainerRunner ...

type ImageFinder

type ImageFinder interface {
	GetImages(context.Context, string) ([]string, error)
}

ImageFinder get the list of images to run based on topic

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

Processor ...

func New

func New(imageFinder ImageFinder, containerCLI ContainerRunner,
	outputChan chan *faas.Output,
	functionTimeout time.Duration) *Processor

New ...

func (*Processor) Handle

func (p *Processor) Handle(topic string, message []byte)

Handle ...

Jump to

Keyboard shortcuts

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