forked from leg100/otf
/
entitlements.go
35 lines (33 loc) · 992 Bytes
/
entitlements.go
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
package organization
// OTF is free and therefore the user is entitled to all currently supported
// services.
type Entitlements struct {
ID string
Agents bool
AuditLogging bool
CostEstimation bool
Operations bool
PrivateModuleRegistry bool
SSO bool
Sentinel bool
StateStorage bool
Teams bool
VCSIntegrations bool
}
// defaultEntitlements constructs an Entitlements struct with currently
// supported entitlements.
func defaultEntitlements(organizationID string) Entitlements {
return Entitlements{
ID: organizationID,
Agents: true,
AuditLogging: true,
CostEstimation: true,
Operations: true,
PrivateModuleRegistry: true,
SSO: true,
Sentinel: true,
StateStorage: true,
Teams: true,
VCSIntegrations: true,
}
}