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

Method UpdateOrganizationSyncSettings

coderd/idpsync/organization.go:36–44  ·  view source on GitHub ↗
(ctx context.Context, db database.Store, settings OrganizationSyncSettings)

Source from the content-addressed store, hash-verified

34}
35
36func (s AGPLIDPSync) UpdateOrganizationSyncSettings(ctx context.Context, db database.Store, settings OrganizationSyncSettings) error {
37 rlv := s.Manager.Resolver(db)
38 err := s.SyncSettings.Organization.SetRuntimeValue(ctx, rlv, &settings)
39 if err != nil {
40 return xerrors.Errorf("update organization sync settings: %w", err)
41 }
42
43 return nil
44}
45
46func (s AGPLIDPSync) OrganizationSyncSettings(ctx context.Context, db database.Store) (*OrganizationSyncSettings, error) {
47 // If this logic is ever updated, make sure to update the corresponding

Callers

nothing calls this directly

Calls 3

ResolverMethod · 0.80
SetRuntimeValueMethod · 0.80
ErrorfMethod · 0.45

Tested by

no test coverage detected