Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: implement runtime configuration package with multi-org support#14470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
dannykopping wants to merge19 commits intomainfromdk/runtime-configs
Closed
Changes from1 commit
Commits
Show all changes
19 commits
Select commitHold shift + click to select a range
5c92688
Implementation
dannykoppingAug 28, 2024
03ecbac
Support zero values
dannykoppingSep 3, 2024
f97ca89
Add database queries against site_configs
dannykoppingSep 3, 2024
b2b43c8
Document usage in test
dannykoppingSep 3, 2024
e67da12
Touchups
dannykoppingSep 3, 2024
127f1cc
make gen to generate dbmock functions
EmyrkSep 3, 2024
43e9e85
make lint/fmt
dannykoppingSep 4, 2024
fa7193e
Initializer interface, rename "key" to "name"
dannykoppingSep 4, 2024
31f8cbf
Manager interface
dannykoppingSep 4, 2024
048506d
Manager, with scoping
dannykoppingSep 4, 2024
1940ca0
linting errors
EmyrkSep 4, 2024
d8ad4d4
chore: add runtimeconfig manager to options for plumbing (#14562)
EmyrkSep 4, 2024
f44f1c7
linting, remove unused ctx
EmyrkSep 5, 2024
7452a23
chore: refactor entry into deployment and runtime (#14575)
EmyrkSep 5, 2024
13ea99a
chore: comments, cleanup, error fixes
EmyrkSep 6, 2024
7d08255
increase test coverage:
EmyrkSep 6, 2024
4ec16cd
linting complained about an unhandled Println error
EmyrkSep 6, 2024
9f546d0
drop manager interface, wrap errors
EmyrkSep 6, 2024
56f4df2
rename NewStoreManager -> NewManager
EmyrkSep 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Manager interface
Signed-off-by: Danny Kopping <danny@coder.com>
  • Loading branch information
@dannykopping@Emyrk
dannykopping authored andEmyrk committedSep 6, 2024
commit31f8cbfe6a73425bedd7d1d95f5e2444ccba77c7
23 changes: 23 additions & 0 deletionscoderd/runtimeconfig/spec.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -19,3 +19,26 @@ type Mutator interface {
// DeleteRuntimeSetting deletes a runtime setting by name.
DeleteRuntimeSetting(ctx context.Context, name string) error
}

type Manager interface {
Resolver
Mutator
}

type NoopManager struct {}

func NewNoopManager() *NoopManager {
return &NoopManager{}
}

func (n NoopManager) GetRuntimeSetting(context.Context, string) (string, error) {
return "", EntryNotFound
}

func (n NoopManager) UpsertRuntimeSetting(context.Context, string, string) error {
return EntryNotFound
}

func (n NoopManager) DeleteRuntimeSetting(context.Context, string) error {
return EntryNotFound
}

[8]ページ先頭

©2009-2025 Movatter.jp