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

Method name

coderd/runtimeconfig/entry.go:90–96  ·  view source on GitHub ↗

name returns the configured name, or fails with ErrNameNotSet.

()

Source from the content-addressed store, hash-verified

88
89// name returns the configured name, or fails with ErrNameNotSet.
90func (e RuntimeEntry[T]) name() (string, error) {
91 if e.n == "" {
92 return "", ErrNameNotSet
93 }
94
95 return e.n, nil
96}
97
98func JSONString(v any) string {
99 s, err := json.Marshal(v)

Callers 3

SetRuntimeValueMethod · 0.95
UnsetRuntimeValueMethod · 0.95
ResolveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected