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

Method Scan

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

Source from the content-addressed store, hash-verified

1800)
1801
1802func (e *CredentialKind) Scan(src interface{}) error {
1803 switch s := src.(type) {
1804 case []byte:
1805 *e = CredentialKind(s)
1806 case string:
1807 *e = CredentialKind(s)
1808 default:
1809 return fmt.Errorf("unsupported scan type for CredentialKind: %T", src)
1810 }
1811 return nil
1812}
1813
1814type NullCredentialKind struct {
1815 CredentialKind CredentialKind `json:"credential_kind"`

Callers

nothing calls this directly

Calls 2

CredentialKindTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected