internal

package
v0.0.0-...-82c1071 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2017 License: Apache-2.0 Imports: 9 Imported by: 0 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

Index

Constants

View Source
const MAX_RESULT_SIZE = 1024 * 10
View Source
const TaskCompletionReasonFailedToFetchResult = "failed to fetch result"
View Source
const TaskCompletionReasonFailedToRunContainer = "failed to run container"
View Source
const TaskCompletionReasonInvalidTransition = "invalid state transition"
View Source
const TaskCompletionReasonMissingContainer = "task container does not exist"

Variables

View Source
var ErrResultFileTooLarge = errors.New(
	fmt.Sprintf("result file is too large (over %d bytes)", MAX_RESULT_SIZE),
)

Functions

This section is empty.

Types

type ContainerDelegate

type ContainerDelegate interface {
	GetContainer(logger lager.Logger, guid string) (executor.Container, bool)
	RunContainer(logger lager.Logger, req *executor.RunRequest) bool
	StopContainer(logger lager.Logger, guid string) bool
	DeleteContainer(logger lager.Logger, guid string) bool
	FetchContainerResultFile(logger lager.Logger, guid string, filename string) (string, error)
}

func NewContainerDelegate

func NewContainerDelegate(client executor.Client) ContainerDelegate

type LRPProcessor

type LRPProcessor interface {
	Process(lager.Logger, executor.Container)
}

func NewLRPProcessor

func NewLRPProcessor(
	bbsClient bbs.InternalClient,
	containerDelegate ContainerDelegate,
	cellID string,
	evacuationReporter evacuation_context.EvacuationReporter,
	evacuationTTLInSeconds uint64,
) LRPProcessor

type TaskProcessor

type TaskProcessor interface {
	Process(lager.Logger, executor.Container)
}

func NewTaskProcessor

func NewTaskProcessor(bbs bbs.InternalClient, containerDelegate ContainerDelegate, cellID string) TaskProcessor

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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