eventhandler

package
v0.0.0-...-0dcd02c Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2017 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 10 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

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

func NewTaskHandler(stateManager statemanager.Saver) *TaskHandler

NewTaskHandler returns a pointer to TaskHandler

func (*TaskHandler) AddStateChangeEvent

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

AddStateChangeEvent queues up a state change for sending using the given client.

func (*TaskHandler) SubmitTaskEvents

func (handler *TaskHandler) SubmitTaskEvents(taskEvents *eventList, client api.ECSClient)

Continuously retries sending an event until it succeeds, sleeping between each attempt

Jump to

Keyboard shortcuts

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