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

Method UnsetRuntimeValue

coderd/runtimeconfig/entry.go:59–66  ·  view source on GitHub ↗

UnsetRuntimeValue removes the runtime value from the store.

(ctx context.Context, m Resolver)

Source from the content-addressed store, hash-verified

57
58// UnsetRuntimeValue removes the runtime value from the store.
59func (e RuntimeEntry[T]) UnsetRuntimeValue(ctx context.Context, m Resolver) error {
60 name, err := e.name()
61 if err != nil {
62 return xerrors.Errorf("unset runtime: %w", err)
63 }
64
65 return m.DeleteRuntimeConfig(ctx, name)
66}
67
68// Resolve attempts to resolve the runtime value of this field from the store via the given Resolver.
69func (e RuntimeEntry[T]) Resolve(ctx context.Context, r Resolver) (T, error) {

Callers

nothing calls this directly

Calls 3

nameMethod · 0.95
DeleteRuntimeConfigMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected