We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa7193e commit 31f8cbfCopy full SHA for 31f8cbf
coderd/runtimeconfig/spec.go
@@ -19,3 +19,26 @@ type Mutator interface {
19
// DeleteRuntimeSetting deletes a runtime setting by name.
20
DeleteRuntimeSetting(ctx context.Context, name string) error
21
}
22
+
23
+type Manager interface {
24
+ Resolver
25
+ Mutator
26
+}
27
28
+type NoopManager struct {}
29
30
+func NewNoopManager() *NoopManager {
31
+ return &NoopManager{}
32
33
34
+func (n NoopManager) GetRuntimeSetting(context.Context, string) (string, error) {
35
+ return "", EntryNotFound
36
37
38
+func (n NoopManager) UpsertRuntimeSetting(context.Context, string, string) error {
39
+ return EntryNotFound
40
41
42
+func (n NoopManager) DeleteRuntimeSetting(context.Context, string) error {
43
44
0 commit comments