Versions in this module Expand all Collapse all v2 v2.0.0 Feb 28, 2024 Changes in this version + var ClusterCreated = &StateTransition + var ClusterDeleted = &StateTransition + var ClusterUpdated = &StateTransition + var ClusterUpgraded = &StateTransition + type AtlasClusterStateDescriber struct + func NewAtlasClusterStateDescriber(s store.AtlasClusterDescriber, projectID, clusterName string) *AtlasClusterStateDescriber + func (describer *AtlasClusterStateDescriber) GetState() (string, error) + type InvalidStateError struct + ErrorCode *string + ExpectedErrorCode *string + ExpectedState *string + State *string + func (err *InvalidStateError) Error() string + type StateDescriber interface + GetState func() (string, error) + type StateTransition struct + EndErrorCode *string + EndState *string + RetryableErrorCodes []string + RetryableStates []string + StartState *string + func (st *StateTransition) HasEndError() bool + func (st *StateTransition) HasEndState() bool + func (st *StateTransition) HasRetryableError() bool + func (st *StateTransition) HasStartState() bool + func (st *StateTransition) InInvalidError(err error) bool + func (st *StateTransition) IsEndError(err error) bool + func (st *StateTransition) IsEndState(state string) bool + func (st *StateTransition) IsInvalidState(state string) bool + func (st *StateTransition) IsRetryableError(err error) bool + func (st *StateTransition) IsRetryableState(state string) bool + func (st *StateTransition) IsStartState(state string) bool + type Watcher struct + NonConstantBackoff bool + Timeout time.Duration + func NewWatcher(stateTransition StateTransition, describer StateDescriber) *Watcher + func NewWatcherWithDefaultWait(stateTransition StateTransition, describer StateDescriber, ...) *Watcher + func (watcher *Watcher) IsDone() (bool, error) + func (watcher *Watcher) Watch() error Other modules containing this package github.com/fmenezes/mongodb-atlas-cli