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

Commit40bf367

Browse files
committed
wip
1 parenta89f76b commit40bf367

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

‎enterprise/coderd/idp-sync/idpsync.go

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package idp_sync
2+
3+
import (
4+
"context"
5+
"regexp"
6+
7+
"github.com/coder/coder/v2/coderd/database"
8+
"github.com/coder/coder/v2/codersdk"
9+
)
10+
11+
typeIDPSyncstruct {
12+
*codersdk.Entitlement
13+
}
14+
15+
// SynchronizeGroupsParams
16+
typeSynchronizeGroupsParamsstruct {
17+
IDPGroups []string
18+
// TODO: These options will be moved outside of deployment into organization
19+
// scoped settings. So these parameters will be removed, and instead sourced
20+
// from some settings object that should have these values cached.
21+
// At present, these settings apply to the default organization.
22+
GroupFilter*regexp.Regexp
23+
CreateMissingGroupsbool
24+
}
25+
26+
// SynchronizeGroups takes a given user, and ensures their group memberships
27+
// within a given organization are correct.
28+
funcSynchronizeGroups(ctx context.Context,tx database.Store,params*SynchronizeGroupsParams)error {
29+
30+
returnnil
31+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp