IsUnifiedInstanceLicense returns whether every registrable instance is effectively activated.
(ctx context.Context, workspaceID string)
| 370 | |
| 371 | // IsUnifiedInstanceLicense returns whether every registrable instance is effectively activated. |
| 372 | func (s *LicenseService) IsUnifiedInstanceLicense(ctx context.Context, workspaceID string) bool { |
| 373 | return isUnifiedInstanceLimit( |
| 374 | s.GetInstanceLimit(ctx, workspaceID), |
| 375 | s.GetActivatedInstanceLimit(ctx, workspaceID), |
| 376 | ) |
| 377 | } |
| 378 | |
| 379 | // IsInstanceEffectivelyActivated returns whether the instance can use instance-gated features. |
| 380 | func (s *LicenseService) IsInstanceEffectivelyActivated(ctx context.Context, workspaceID string, instance *store.InstanceMessage) bool { |
no test coverage detected