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 = "ResourceLimitSubgroupsPerParent" ResourceLimitGroupTreeDepth ResourceLimitName = "ResourceLimitGroupTreeDepth" ResourceLimitWorkspacesPerGroup ResourceLimitName = "ResourceLimitWorkspacesPerGroup" ResourceLimitServiceAccountsPerGroup ResourceLimitName = "ResourceLimitServiceAccountsPerGroup" ResourceLimitRunnerAgentsPerGroup ResourceLimitName = "ResourceLimitRunnerAgentsPerGroup" ResourceLimitVariablesPerNamespace ResourceLimitName = "ResourceLimitVariablesPerNamespace" ResourceLimitGPGKeysPerGroup ResourceLimitName = "ResourceLimitGPGKeysPerGroup" ResourceLimitManagedIdentitiesPerGroup ResourceLimitName = "ResourceLimitManagedIdentitiesPerGroup" ResourceLimitManagedIdentityAliasesPerManagedIdentity ResourceLimitName = "ResourceLimitManagedIdentityAliasesPerManagedIdentity" ResourceLimitAssignedManagedIdentitiesPerWorkspace ResourceLimitName = "ResourceLimitAssignedManagedIdentitiesPerWorkspace" ResourceLimitManagedIdentityAccessRulesPerManagedIdentity ResourceLimitName = "ResourceLimitManagedIdentityAccessRulesPerManagedIdentity" ResourceLimitTerraformModulesPerGroup ResourceLimitName = "ResourceLimitTerraformModulesPerGroup" ResourceLimitVersionsPerTerraformModule ResourceLimitName = "ResourceLimitVersionsPerTerraformModule" ResourceLimitAttestationsPerTerraformModule ResourceLimitName = "ResourceLimitAttestationsPerTerraformModule" ResourceLimitTerraformProvidersPerGroup ResourceLimitName = "ResourceLimitTerraformProvidersPerGroup" ResourceLimitVersionsPerTerraformProvider ResourceLimitName = "ResourceLimitVersionsPerTerraformProvider" ResourceLimitPlatformsPerTerraformProviderVersion ResourceLimitName = "ResourceLimitPlatformsPerTerraformProviderVersion" ResourceLimitVCSProvidersPerGroup ResourceLimitName = "ResourceLimitVCSProvidersPerGroup" ResourceLimitTerraformProviderVersionMirrorsPerGroup ResourceLimitName = "ResourceLimitTerraformProviderVersionMirrorsPerGroup" )
ResourceLimitName constants
Click to show internal directories.
Click to hide internal directories.