MCPcopy Index your code
hub / github.com/coder/coder / Valid

Method Valid

coderd/database/models.go:3817–3831  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3815}
3816
3817func (e WorkspaceAgentLifecycleState) Valid() bool {
3818 switch e {
3819 case WorkspaceAgentLifecycleStateCreated,
3820 WorkspaceAgentLifecycleStateStarting,
3821 WorkspaceAgentLifecycleStateStartTimeout,
3822 WorkspaceAgentLifecycleStateStartError,
3823 WorkspaceAgentLifecycleStateReady,
3824 WorkspaceAgentLifecycleStateShuttingDown,
3825 WorkspaceAgentLifecycleStateShutdownTimeout,
3826 WorkspaceAgentLifecycleStateShutdownError,
3827 WorkspaceAgentLifecycleStateOff:
3828 return true
3829 }
3830 return false
3831}
3832
3833func AllWorkspaceAgentLifecycleStateValues() []WorkspaceAgentLifecycleState {
3834 return []WorkspaceAgentLifecycleState{

Callers 1

UpdateLifecycleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected