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

Method Scan

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

Source from the content-addressed store, hash-verified

3007)
3008
3009func (e *ProvisionerJobStatus) Scan(src interface{}) error {
3010 switch s := src.(type) {
3011 case []byte:
3012 *e = ProvisionerJobStatus(s)
3013 case string:
3014 *e = ProvisionerJobStatus(s)
3015 default:
3016 return fmt.Errorf("unsupported scan type for ProvisionerJobStatus: %T", src)
3017 }
3018 return nil
3019}
3020
3021type NullProvisionerJobStatus struct {
3022 ProvisionerJobStatus ProvisionerJobStatus `json:"provisioner_job_status"`

Callers

nothing calls this directly

Calls 2

ProvisionerJobStatusTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected