constants

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIName  = "CMK"
	KMS      = "KMS"
	BasePath = "/cmk/v1/{tenant}"
)
View Source
const (
	KeyTypeSystemManaged = "SYSTEM_MANAGED"
	KeyTypeBYOK          = "BYOK"
	KeyTypeHYOK          = "HYOK"

	DefaultKeyStore = "DEFAULT_KEYSTORE"
	HYOKKeyStore    = "HYOK_KEYSTORE"
)
View Source
const (
	DefaultTop  = 20
	DefaultSkip = 0
)
View Source
const (
	QueryMaxLengthSystem = 50
	QueryMaxLengthName   = 255
)
View Source
const (
	//nolint:gosec
	AuthTypeSecret      = "AUTH_TYPE_SECRET"
	AuthTypeCertificate = "AUTH_TYPE_CERTIFICATE"

	TenantAdminGroup   string = "TenantAdministrator"
	TenantAuditorGroup string = "TenantAuditor"

	KeyAdminRole      Role = "KEY_ADMINISTRATOR"
	TenantAdminRole   Role = "TENANT_ADMINISTRATOR"
	TenantAuditorRole Role = "TENANT_AUDITOR"
)
View Source
const (
	DefaultConfigPath1 = "/etc/cmk"
	DefaultConfigPath2 = "$HOME/.cmk"
)
View Source
const (
	WorkflowConfigKey = "WORKFLOW_CONFIG"

	DefaultMinimumApprovalCount = 2
	DefaultRetentionPeriodDays  = 30

	DefaultExpiryPeriodDays = 7

	DefaultMaxExpiryPeriodDays = 30

	WorkflowArtifactTypeSystem = "SYSTEM"

	WorkflowActionTypeLink   = "LINK"
	WorkflowActionTypeUnlink = "UNLINK"
	WorkflowActionTypeSwitch = "SWITCH"
)
View Source
const (
	ClientData clientDataKey = "ClientData"
)
View Source
const KeyActionSetPrimary = "SET_PRIMARY_KEY"

Variables

View Source
var SystemUser uuid.UUID = uuid.Max

SystemUser Do not add further internal users without blocklisting in the clientdata

Functions

This section is empty.

Types

type ContextClientData

type ContextClientData struct {
	Identifier string
	Groups     []string
}

type LogLevel

type LogLevel string

LogLevel represents available logging levels

const (
	LogLevelDebug LogLevel = "debug"
	LogLevelInfo  LogLevel = "info"
	LogLevelWarn  LogLevel = "warn"
	LogLevelError LogLevel = "error"
)

func (LogLevel) String

func (l LogLevel) String() string

String implements the Stringer interface

type Role

type Role string

Jump to

Keyboard shortcuts

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