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

Method UpsertRuntimeConfig

coderd/runtimeconfig/resolver.go:61–67  ·  view source on GitHub ↗
(ctx context.Context, key, val string)

Source from the content-addressed store, hash-verified

59}
60
61func (m StoreResolver) UpsertRuntimeConfig(ctx context.Context, key, val string) error {
62 err := m.db.UpsertRuntimeConfig(ctx, database.UpsertRuntimeConfigParams{Key: key, Value: val})
63 if err != nil {
64 return xerrors.Errorf("update %q: %w", key, err)
65 }
66 return nil
67}
68
69func (m StoreResolver) DeleteRuntimeConfig(ctx context.Context, key string) error {
70 return m.db.DeleteRuntimeConfig(ctx, key)

Callers

nothing calls this directly

Calls 2

UpsertRuntimeConfigMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected