commons

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrganizationScope = "organization"
	NamespaceScope    = "namespace"
	TemplateScope     = "template"
	BlueprintScope    = "blueprint"
	StackScope        = "stack"

	TfTVar = "tfVar"
	EnvVar = "envVar"

	RequireApproval     = "requireApproval"
	AutoApprove         = "autoApprove"
	RequireTwoApprovals = "requireTwoApprovals"

	GcpServiceAccount     = "gcpServiceAccount"
	AzureServicePrincipal = "azureServicePrincipal"
	AwsAssumeRole         = "awsAssumeRole"

	Terraform  = "terraform"
	Terragrunt = "terragrunt"
	Opentofu   = "opentofu"

	Allow    = "allow"
	Deny     = "deny"
	Extended = "extended"

	Managed    = "managed"
	SelfHosted = "selfHosted"

	Hours = "hours"
	Days  = "days"

	Ne         = "ne"
	Gt         = "gt"
	Gte        = "gte"
	Lt         = "lt"
	Lte        = "lte"
	In         = "in"
	StartsWith = "startsWith"
	Contains   = "contains"

	StackTargetType     = "stack"
	NamespaceTargetType = "namespace"

	Warning       = "warning"
	SoftMandatory = "softMandatory"
	HardMandatory = "hardMandatory"
	BySeverity    = "bySeverity"

	NamespaceRoleViewer = "viewer"
	NamespaceRoleAdmin  = "admin"

	SlackProtocol    = "slack"
	SlackAppProtocol = "slackApp"
	TeamsProtocol    = "teams"
	EmailProtocol    = "email"

	WeeklyReportType = "weeklyReport"

	SeverityLow      = "low"
	SeverityMedium   = "medium"
	SeverityHigh     = "high"
	SeverityCritical = "critical"

	RoleViewer = "viewer"
	RoleAdmin  = "admin"

	Default = "default"
	Manual  = "manual"

	BlueprintVariableManagedByStack  = "stack"
	BlueprintVariableManagedByInCode = "inCode"
)
View Source
const (
	ErrorCodeNotFound        = "not_found"
	ErrorCodeAlreadyExist    = "already_exist"
	ErrorCodeValidationError = "validation_error"
)

Error codes

Variables

View Source
var (
	VariableScopeTypes                = []string{OrganizationScope, NamespaceScope, TemplateScope, BlueprintScope, StackScope}
	VariableTypes                     = []string{TfTVar, EnvVar}
	DeploymentApprovalPolicyRuleTypes = []string{RequireApproval, AutoApprove, RequireTwoApprovals}
	ExternalCredentialTypes           = []string{AwsAssumeRole, GcpServiceAccount, AzureServicePrincipal}
	IacTypes                          = []string{Terraform, Terragrunt, Opentofu}
	OverrideBehaviorTypes             = []string{Allow, Deny, Extended}
	RunnerConfigModeTypes             = []string{Managed, SelfHosted}
	TtlTypes                          = []string{Hours, Days}
	VariableConditionOperatorTypes    = []string{Ne, Gt, Gte, Lt, Lte, In, StartsWith, Contains}
	PolicyMappingTargetTypes          = []string{StackTargetType, NamespaceTargetType}
	EnforcementLevelTypes             = []string{Warning, SoftMandatory, HardMandatory}
	GroupEnforcementLevelTypes        = []string{Warning, SoftMandatory, HardMandatory, BySeverity}
	NamespaceRoleTypes                = []string{NamespaceRoleViewer, NamespaceRoleAdmin}
	EventSubscriptionScopeTypes       = []string{OrganizationScope, NamespaceScope}
	EventSubscriptionProtocolTypes    = []string{SlackProtocol, SlackAppProtocol, TeamsProtocol, EmailProtocol}
	ReportTypes                       = []string{WeeklyReportType}
	SeverityTypes                     = []string{SeverityLow, SeverityMedium, SeverityHigh, SeverityCritical}
	DisasterRecoveryBackupModeTypes   = []string{Default, Manual}
	BlueprintVariableManagedByTypes   = []string{BlueprintVariableManagedByStack, BlueprintVariableManagedByInCode}
)

Functions

This section is empty.

Types

type EmptyResponse

type EmptyResponse struct{}

Jump to

Keyboard shortcuts

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