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

Commitdde933c

Browse files
committed
gen
1 parentbdb5f57 commitdde933c

File tree

9 files changed

+247
-16
lines changed

9 files changed

+247
-16
lines changed

‎coderd/apidoc/docs.go

Lines changed: 51 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/apidoc/swagger.json

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
INSERT INTO provisioner_keys (id, created_at, organization_id, name, hashed_secret, tags)VALUES ('11111111-1111-1111-1111-111111111111'::uuid, NOW(), (SELECT idFROM organizationsWHERE is_default= true),'built-in',''::bytea,'{}');
2-
INSERT INTO provisioner_keys (id, created_at, organization_id, name, hashed_secret, tags)VALUES ('22222222-2222-2222-2222-222222222222'::uuid, NOW(), (SELECT idFROM organizationsWHERE is_default= true),'user-auth',''::bytea,'{}');
3-
INSERT INTO provisioner_keys (id, created_at, organization_id, name, hashed_secret, tags)VALUES ('33333333-3333-3333-3333-333333333333'::uuid, NOW(), (SELECT idFROM organizationsWHERE is_default= true),'psk',''::bytea,'{}');
1+
INSERT INTO provisioner_keys (id, created_at, organization_id, name, hashed_secret, tags)VALUES ('00000000-0000-0000-0000-000000000001'::uuid, NOW(), (SELECT idFROM organizationsWHERE is_default= true),'built-in',''::bytea,'{}');
2+
INSERT INTO provisioner_keys (id, created_at, organization_id, name, hashed_secret, tags)VALUES ('00000000-0000-0000-0000-000000000002'::uuid, NOW(), (SELECT idFROM organizationsWHERE is_default= true),'user-auth',''::bytea,'{}');
3+
INSERT INTO provisioner_keys (id, created_at, organization_id, name, hashed_secret, tags)VALUES ('00000000-0000-0000-0000-000000000003'::uuid, NOW(), (SELECT idFROM organizationsWHERE is_default= true),'psk',''::bytea,'{}');
44

5-
ALTERTABLE provisioner_daemons ADD COLUMN key_id UUIDREFERENCES provisioner_keys(id)ON DELETE CASCADE DEFAULT'11111111-1111-1111-1111-111111111111'::uuidNOT NULL;
5+
ALTERTABLE provisioner_daemons ADD COLUMN key_id UUIDREFERENCES provisioner_keys(id)ON DELETE CASCADE DEFAULT'00000000-0000-0000-0000-000000000001'::uuidNOT NULL;
66
ALTERTABLE provisioner_daemons ALTER COLUMN key_id DROP DEFAULT;

‎coderd/database/queries.sql.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/database/queries/provisionerkeys.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ WHERE
4646
organization_id= $1
4747
AND
4848
-- exclude reserved built-in key
49-
id!='11111111-1111-1111-1111-111111111111'::uuid
49+
id!='00000000-0000-0000-0000-000000000001'::uuid
5050
AND
5151
-- exclude reserved user-auth key
52-
id!='22222222-2222-2222-2222-222222222222'::uuid
52+
id!='00000000-0000-0000-0000-000000000002'::uuid
5353
AND
5454
-- exclude reserved psk key
55-
id!='33333333-3333-3333-3333-333333333333'::uuid;
55+
id!='00000000-0000-0000-0000-000000000003'::uuid;
5656

5757
-- name: DeleteProvisionerKey :exec
5858
DELETEFROM

‎codersdk/provisionerdaemons.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ type ProvisionerKeyDaemons struct {
289289
}
290290

291291
const (
292-
ProvisionerKeyIDBuiltIn="11111111-1111-1111-1111-111111111111"
293-
ProvisionerKeyIDUserAuth="22222222-2222-2222-2222-222222222222"
294-
ProvisionerKeyIDPSK="33333333-3333-3333-3333-333333333333"
292+
ProvisionerKeyIDBuiltIn="00000000-0000-0000-0000-000000000001"
293+
ProvisionerKeyIDUserAuth="00000000-0000-0000-0000-000000000002"
294+
ProvisionerKeyIDPSK="00000000-0000-0000-0000-000000000003"
295295
)
296296

297297
const (

‎docs/reference/api/enterprise.md

Lines changed: 92 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎docs/reference/api/schemas.md

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎enterprise/coderd/provisionerkeys.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ func (api *API) provisionerKeys(rw http.ResponseWriter, r *http.Request) {
115115
httpapi.Write(ctx,rw,http.StatusOK,convertProvisionerKeys(pks))
116116
}
117117

118-
// @Summary List provisioner key
119-
// @ID list-provisioner-key
118+
// @Summary List provisioner key daemons
119+
// @ID list-provisioner-key-daemons
120120
// @Security CoderSessionToken
121121
// @Produce json
122122
// @Tags Enterprise
123123
// @Param organization path string true "Organization ID"
124-
// @Success 200 {object} []codersdk.ProvisionerKey
124+
// @Success 200 {object} []codersdk.ProvisionerKeyDaemons
125125
// @Router /organizations/{organization}/provisionerkeys/daemons [get]
126126
func (api*API)provisionerKeyDaemons(rw http.ResponseWriter,r*http.Request) {
127127
ctx:=r.Context()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp