limits

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL