forked from theopenlane/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcatalog.go
More file actions
43 lines (41 loc) · 2.01 KB
/
Copy pathcatalog.go
File metadata and controls
43 lines (41 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package catalog
import (
"github.com/theopenlane/core/internal/integrations/definitions/authentik"
"github.com/theopenlane/core/internal/integrations/definitions/awssecurityhub"
"github.com/theopenlane/core/internal/integrations/definitions/azureentraid"
"github.com/theopenlane/core/internal/integrations/definitions/azuresecuritycenter"
"github.com/theopenlane/core/internal/integrations/definitions/cloudflare"
"github.com/theopenlane/core/internal/integrations/definitions/email"
"github.com/theopenlane/core/internal/integrations/definitions/gcpscc"
"github.com/theopenlane/core/internal/integrations/definitions/githubapp"
"github.com/theopenlane/core/internal/integrations/definitions/googleworkspace"
"github.com/theopenlane/core/internal/integrations/definitions/keycloak"
"github.com/theopenlane/core/internal/integrations/definitions/microsoftteams"
"github.com/theopenlane/core/internal/integrations/definitions/oidclocal"
"github.com/theopenlane/core/internal/integrations/definitions/okta"
"github.com/theopenlane/core/internal/integrations/definitions/scim"
"github.com/theopenlane/core/internal/integrations/definitions/slack"
"github.com/theopenlane/core/internal/integrations/registry"
)
// Builders returns the built-in reference definition builders. devMode is the
// server-level development flag; when true, integrations that support it (e.g.
// email) use local file-based senders instead of calling provider APIs
func Builders(cfg Config, devMode bool) []registry.Builder {
return []registry.Builder{
authentik.Builder(),
awssecurityhub.Builder(cfg.AWSSecurityHub),
azureentraid.Builder(cfg.AzureEntraID),
azuresecuritycenter.Builder(),
cloudflare.Builder(),
email.Builder(&cfg.Email, devMode),
gcpscc.Builder(),
githubapp.Builder(cfg.GitHubApp),
googleworkspace.Builder(cfg.GoogleWorkspace),
keycloak.Builder(),
microsoftteams.Builder(cfg.MicrosoftTeams),
oidclocal.Builder(cfg.OIDCLocal),
okta.Builder(),
scim.Builder(),
slack.Builder(cfg.Slack, &cfg.SlackRuntime, devMode),
}
}