Documentation ¶
Overview ¶
Package limits package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LimitChecker ¶
type LimitChecker interface {
CheckLimit(ctx context.Context, name ResourceLimitName, toCheck int32) error
}
LimitChecker implements functionality related to resource limits.
func NewLimitChecker ¶
func NewLimitChecker( dbClient *db.Client, ) LimitChecker
NewLimitChecker creates an instance of LimitChecker
type ResourceLimitName ¶
type ResourceLimitName string
ResourceLimitName is an enum for the names that will be used as keys when doing the checks.
const ( ResourceLimitSubgroupsPerParent ResourceLimitName = "SubgroupsPerParent" ResourceLimitGroupTreeDepth ResourceLimitName = "GroupTreeDepth" ResourceLimitWorkspacesPerGroup ResourceLimitName = "WorkspacesPerGroup" ResourceLimitServiceAccountsPerGroup ResourceLimitName = "ServiceAccountsPerGroup" ResourceLimitRunnerAgentsPerGroup ResourceLimitName = "RunnerAgentsPerGroup" ResourceLimitVariablesPerNamespace ResourceLimitName = "VariablesPerNamespace" ResourceLimitGPGKeysPerGroup ResourceLimitName = "GPGKeysPerGroup" ResourceLimitManagedIdentitiesPerGroup ResourceLimitName = "ManagedIdentitiesPerGroup" ResourceLimitManagedIdentityAliasesPerManagedIdentity ResourceLimitName = "ManagedIdentityAliasesPerManagedIdentity" ResourceLimitAssignedManagedIdentitiesPerWorkspace ResourceLimitName = "AssignedManagedIdentitiesPerWorkspace" ResourceLimitManagedIdentityAccessRulesPerManagedIdentity ResourceLimitName = "ManagedIdentityAccessRulesPerManagedIdentity" ResourceLimitTerraformModulesPerGroup ResourceLimitName = "TerraformModulesPerGroup" ResourceLimitVersionsPerTerraformModule ResourceLimitName = "VersionsPerTerraformModule" ResourceLimitAttestationsPerTerraformModule ResourceLimitName = "AttestationsPerTerraformModule" ResourceLimitTerraformProvidersPerGroup ResourceLimitName = "TerraformProvidersPerGroup" ResourceLimitVersionsPerTerraformProvider ResourceLimitName = "VersionsPerTerraformProvider" ResourceLimitPlatformsPerTerraformProviderVersion ResourceLimitName = "PlatformsPerTerraformProviderVersion" ResourceLimitVCSProvidersPerGroup ResourceLimitName = "VCSProvidersPerGroup" )
ResourceLimitName constants
Click to show internal directories.
Click to hide internal directories.