Skip to content

Commit

Permalink
refactor(states): add types for provider state testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Jun 12, 2016
1 parent ea2c807 commit 33f5394
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions types/provider_state.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package types

// ProviderState Models a provider state coming over the Wire.
// This is generally provided as a request to an HTTP endpoint (e.g. PUT /state)
// to configure a state on a Provider.
type ProviderState struct {
Consumer string `json:"consumer"`
State string `json:"state"`
}

// ProviderStates is mapping of consumers to all known states. This is usually
// a response from an HTTP endpoint (e.g. GET /states) to find all states a
// provider has.
type ProviderStates map[string][]string

0 comments on commit 33f5394

Please sign in to comment.