Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRoleNames = []sqlc.RoleName{ sqlc.RoleNameTeamcreator, sqlc.RoleNameTeamviewer, sqlc.RoleNameUserviewer, sqlc.RoleNameServiceaccountcreator, }
Functions ¶
This section is empty.
Types ¶
type Run ¶
type Run struct {
// contains filtered or unexported fields
}
func (*Run) CorrelationID ¶
func (*Run) FinishWithError ¶
func (*Run) FinishedAt ¶
type RunsHandler ¶
type RunsHandler struct {
// contains filtered or unexported fields
}
func NewRunsHandler ¶
func NewRunsHandler(maxEntries int) *RunsHandler
func (*RunsHandler) GetRuns ¶
func (r *RunsHandler) GetRuns() []*Run
func (*RunsHandler) StartNewRun ¶
func (r *RunsHandler) StartNewRun(correlationID uuid.UUID) *Run
type UserSynchronizer ¶
type UserSynchronizer struct {
// contains filtered or unexported fields
}
func New ¶
func New(database db.Database, auditLogger auditlogger.AuditLogger, adminGroupPrefix, tenantDomain string, service *admin_directory_v1.Service, log logger.Logger, syncRuns *RunsHandler) *UserSynchronizer
func NewFromConfig ¶
func NewFromConfig(cfg *config.Config, database db.Database, log logger.Logger, syncRuns *RunsHandler) (*UserSynchronizer, error)
func (*UserSynchronizer) Sync ¶
Sync Fetch all users from the tenant and add them as local users in teams-backend. If a user already exists in teams-backend the local user will get the name potentially updated. After all users have been upserted, local users that matches the tenant domain that does not exist in the Google Directory will be removed.
Click to show internal directories.
Click to hide internal directories.