eventhandler

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleEngineEvents

func HandleEngineEvents(taskEngine engine.TaskEngine, client api.ECSClient, eventhandler *TaskHandler)

Types

type TaskHandler added in v1.14.2

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

TaskHandler encapsulates the the map of a task arn to task and container events associated with said task

func NewTaskHandler added in v1.14.2

func NewTaskHandler(ctx context.Context,
	stateManager statemanager.Saver,
	state dockerstate.TaskEngineState,
	client api.ECSClient) *TaskHandler

NewTaskHandler returns a pointer to TaskHandler

func (*TaskHandler) AddStateChangeEvent added in v1.14.2

func (handler *TaskHandler) AddStateChangeEvent(change statechange.Event, client api.ECSClient) error

AddStateChangeEvent queues up the state change event to be sent to ECS. If the event is for a container state change, it just gets added to the handler.tasksToContainerStates map. If the event is for task state change, it triggers the non-blocking handler.submitTaskEvents method to submit the batched container state changes and the task state change to ECS

Jump to

Keyboard shortcuts

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