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

Method Scan

coderd/database/models.go:3782–3792  ·  view source on GitHub ↗
(src interface{})

Source from the content-addressed store, hash-verified

3780)
3781
3782func (e *WorkspaceAgentLifecycleState) Scan(src interface{}) error {
3783 switch s := src.(type) {
3784 case []byte:
3785 *e = WorkspaceAgentLifecycleState(s)
3786 case string:
3787 *e = WorkspaceAgentLifecycleState(s)
3788 default:
3789 return fmt.Errorf("unsupported scan type for WorkspaceAgentLifecycleState: %T", src)
3790 }
3791 return nil
3792}
3793
3794type NullWorkspaceAgentLifecycleState struct {
3795 WorkspaceAgentLifecycleState WorkspaceAgentLifecycleState `json:"workspace_agent_lifecycle_state"`

Callers

nothing calls this directly

Calls 2

ErrorfMethod · 0.45

Tested by

no test coverage detected