func actions()

in ecs-init/ecs-init.go [89:118]


func actions(engine *engine.Engine) map[string]action {
	return map[string]action{
		PRESTART: action{
			function:    engine.PreStart,
			description: "Prepare the ECS Agent for starting",
		},
		START: action{
			function:    engine.StartSupervised,
			description: "Start the ECS Agent and wait for it to stop",
		},
		// This is a deprecated command for stopping the agent
		// when using upstart jobs
		PRESTOP: action{
			function:    engine.PreStop,
			description: "Stop the ECS Agent",
		},
		STOP: action{
			function:    engine.PreStop,
			description: "Stop the ECS Agent",
		},
		RECACHE: action{
			function:    engine.ReloadCache,
			description: "Reload the cached image of the ECS Agent into Docker",
		},
		POSTSTOP: action{
			function:    engine.PostStop,
			description: "Cleanup procedure for the ECS Agent",
		},
	}
}