blob: a29a6a1ff465f2fa9986f4d19e6c7d99409ab6b8 [file] [log] [blame]
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package container
// A StateType represents the specific type of resting state that a state value
// is.
type StateType int
const (
UndefinedState StateType = iota
// A special resting state, that generally requires special consideration
// Interactive states like PENDING_PARTNER in interconnects are an example
RestingState
// An error state is a state that indicates that a resource is not working
// correctly. If this is Create, it should be tainted by returning an error
ErrorState
// A ready resource is fully provisioned, and ready to accept traffic/work
ReadyState
)
type RestingStates map[string]StateType