Skip to content

Commit

Permalink
Add interface for state operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Walls committed Apr 17, 2016
1 parent 7a1b434 commit 5266f56
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions state.go
Original file line number Diff line number Diff line change
@@ -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()
}

0 comments on commit 5266f56

Please sign in to comment.