From 5266f563099166edf1842f8216f3754d1e2987c3 Mon Sep 17 00:00:00 2001 From: Ryan Walls Date: Sun, 17 Apr 2016 10:47:57 -0600 Subject: [PATCH] Add interface for state operations --- state.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 state.go diff --git a/state.go b/state.go new file mode 100644 index 0000000..06c35be --- /dev/null +++ b/state.go @@ -0,0 +1,12 @@ +package scheduler + +// StateOps is the interface for refreshing and interacting with the local +// ECS state. +type StateOps interface { + Initialize(clusterName string, ecs *ecs.ECS, logger Logger) *State + FindLocationsForTaskDefinition(td string) *[]ContainerInstance + FindTaskDefinition(td string) TaskDefinition + RefreshClusterState() + RefreshContainerInstanceState() + RefreshTaskState() +}