Documentation
¶
Index ¶
- Constants
- func NewConfigurationCreateEvent(metadata EventMetadata, objectID string, value any) (plog.Logs, error)
- func NewConfigurationDeleteEvent(metadata EventMetadata, objectID string, value any) (plog.Logs, error)
- func NewConfigurationReadEvent(metadata EventMetadata, objectID, channelType, channelID string, value any) (plog.Logs, error)
- func NewConfigurationUpdateEvent(metadata EventMetadata, objectID string, oldValue, newValue any) (plog.Logs, error)
- func NewCredentialCreateEvent(metadata EventMetadata, credentialID string, c CredentialType, value any) (plog.Logs, error)
- func NewCredentialDeleteEvent(metadata EventMetadata, credentialID string, c CredentialType, value any) (plog.Logs, error)
- func NewCredentialExpirationEvent(metadata EventMetadata, credentialID string, c CredentialType, value any) (plog.Logs, error)
- func NewCredentialRevokationEvent(metadata EventMetadata, credentialID string, c CredentialType, value any) (plog.Logs, error)
- func NewGroupCreateEvent(metadata EventMetadata, objectID string, value any, dpp bool) (plog.Logs, error)
- func NewGroupDeleteEvent(metadata EventMetadata, objectID string, value any, dpp bool) (plog.Logs, error)
- func NewGroupReadEvent(metadata EventMetadata, objectID, channelID, channelType string, value any, ...) (plog.Logs, error)
- func NewGroupUpdateEvent(metadata EventMetadata, objectID, propertyName string, oldValue, newValue any, ...) (plog.Logs, error)
- func NewKeyCreateEvent(metadata EventMetadata, objectID string, l KeyLevel, t KeyCreateActionType, ...) (plog.Logs, error)
- func NewKeyDeleteEvent(metadata EventMetadata, objectID string, l KeyLevel, value any, dpp bool) (plog.Logs, error)
- func NewKeyReadEvent(metadata EventMetadata, objectID, channelType, channelID string, l KeyLevel, ...) (plog.Logs, error)
- func NewKeyUpdateEvent(metadata EventMetadata, objectID, propertyName string, l KeyLevel, ...) (plog.Logs, error)
- func NewTenantOffboardingEvent(metadata EventMetadata, objectID string, value any) (plog.Logs, error)
- func NewTenantOnboardingEvent(metadata EventMetadata, objectID string, value any) (plog.Logs, error)
- func NewTenantUpdateEvent(metadata EventMetadata, objectID, propertyName string, ...) (plog.Logs, error)
- func NewUserLoginFailureEvent(metadata EventMetadata, objectID string, l LoginMethod, f FailReason, ...) (plog.Logs, error)
- func NewUserLoginSuccessEvent(metadata EventMetadata, objectID string, l LoginMethod, t MfaType, u UserType, ...) (plog.Logs, error)
- func NewWorkflowExecuteEvent(metadata EventMetadata, objectID, channelID, channelType string, value any, ...) (plog.Logs, error)
- func NewWorkflowStartEvent(metadata EventMetadata, objectID, channelID, channelType string, value any, ...) (plog.Logs, error)
- func NewWorkflowTerminateEvent(metadata EventMetadata, objectID, channelID, channelType string, value any, ...) (plog.Logs, error)
- func NewWorkflowUpdateEvent(metadata EventMetadata, objectID string, oldValue, newValue any, dpp bool) (plog.Logs, error)
- func SendEvent(ctx context.Context, auditCfg *commoncfg.Audit, logs plog.Logs) error
- type CredentialType
- type EventMetadata
- type FailReason
- type KeyCreateActionType
- type KeyLevel
- type KeyReadActionType
- type KeyUpdateActionType
- type LoginMethod
- type MfaType
- type OtlpClient
- type TenantUpdateActionType
- type UserLoginFailureActionType
- type UserType
Constants ¶
View Source
const ( ConfigCreateEvent = "configurationCreate" ConfigReadEvent = "configurationRead" ConfigUpdateEvent = "configurationUpdate" ConfigDeleteEvent = "configurationDelete" GroupCreateEvent = "groupCreate" GroupReadEvent = "groupRead" GroupUpdateEvent = "groupUpdate" GroupDeleteEvent = "groupDelete" KeyCreateEvent = "keyCreate" KeyDeleteEvent = "keyDelete" KeyReadEvent = "keyRead" KeyUpdateEvent = "keyUpdate" WorkflowStartEvent = "workflowStart" WorkflowUpdateEvent = "workflowUpdate" WorkflowExecuteEvent = "workflowExecute" WorkflowTerminateEvent = "workflowTerminate" UserLoginSuccessEvent = "userLoginSuccess" UserLoginFailureEvent = "userLoginFailure" TenantOnboardingEvent = "tenantOnboarding" TenantOffboardingEvent = "tenantOffboarding" TenantUpdateEvent = "tenantUpdate" CredentialExpirationEvent = "credentialExpiration" CredentialCreateEvent = "credentialCreate" CredentialRevokationEvent = "credentialRevokation" CredentialDeleteEvent = "credentialDelete" )
View Source
const ( EventTypeKey = "eventType" ObjectIDKey = "objectID" ObjectTypeKey = "objectType" ActionTypeKey = "actionType" ChannelTypeKey = "channelType" ChannelIDKey = "channelID" LoginMethodKey = "loginMethod" MfaTypeKey = "mfaType" UserTypeKey = "userType" FailureReasonKey = "failureReason" CredentialTypeKey = "credentialType" ValueKey = "value" PropertyNameKey = "propertyName" OldValueKey = "oldValue" NewValueKey = "newValue" DppKey = "dpp" UserInitiatorIDKey = "userInitiatorID" TenantIDKey = "tenantID" EventCorrelationIDKey = "eventCorrelationID" )
View Source
const UNSPECIFIED = "UNSPECIFIED"
Variables ¶
This section is empty.
Functions ¶
func NewCredentialCreateEvent ¶
func NewCredentialCreateEvent(metadata EventMetadata, credentialID string, c CredentialType, value any) (plog.Logs, error)
func NewCredentialDeleteEvent ¶
func NewCredentialDeleteEvent(metadata EventMetadata, credentialID string, c CredentialType, value any) (plog.Logs, error)
func NewCredentialExpirationEvent ¶
func NewCredentialExpirationEvent(metadata EventMetadata, credentialID string, c CredentialType, value any) (plog.Logs, error)
func NewCredentialRevokationEvent ¶
func NewCredentialRevokationEvent(metadata EventMetadata, credentialID string, c CredentialType, value any) (plog.Logs, error)
func NewGroupCreateEvent ¶
func NewGroupDeleteEvent ¶
func NewGroupReadEvent ¶
func NewGroupUpdateEvent ¶
func NewKeyCreateEvent ¶
func NewKeyCreateEvent(metadata EventMetadata, objectID string, l KeyLevel, t KeyCreateActionType, value any, dpp bool) (plog.Logs, error)
func NewKeyDeleteEvent ¶
func NewKeyReadEvent ¶
func NewKeyReadEvent(metadata EventMetadata, objectID, channelType, channelID string, l KeyLevel, t KeyReadActionType, value any, dpp bool) (plog.Logs, error)
func NewKeyUpdateEvent ¶
func NewKeyUpdateEvent(metadata EventMetadata, objectID, propertyName string, l KeyLevel, t KeyUpdateActionType, oldValue, newValue any, dpp bool) (plog.Logs, error)
func NewTenantUpdateEvent ¶
func NewTenantUpdateEvent(metadata EventMetadata, objectID, propertyName string, t TenantUpdateActionType, oldValue, newValue any) (plog.Logs, error)
func NewUserLoginFailureEvent ¶
func NewUserLoginFailureEvent(metadata EventMetadata, objectID string, l LoginMethod, f FailReason, value any) (plog.Logs, error)
func NewUserLoginSuccessEvent ¶
func NewUserLoginSuccessEvent(metadata EventMetadata, objectID string, l LoginMethod, t MfaType, u UserType, value any) (plog.Logs, error)
func NewWorkflowExecuteEvent ¶
func NewWorkflowStartEvent ¶
func NewWorkflowUpdateEvent ¶
Types ¶
type CredentialType ¶
type CredentialType string
const ( CREDTYPE_X509CERT CredentialType = "X509_CERTIFICATE" CREDTYPE_KEY CredentialType = "KEY" CREDTYPE_SECRET CredentialType = "SECRET" )
func (CredentialType) IsValid ¶
func (c CredentialType) IsValid() bool
type EventMetadata ¶
func NewEventMetadata ¶
func NewEventMetadata(userInitiatorID, tenantID, eventCorrelationID string) (EventMetadata, error)
type FailReason ¶
type FailReason string
const ( FAILREASON_PASSWORD FailReason = "PASSWORD" FAILREASON_MFAFAIL FailReason = "MFA_FAILED" FAILREASON_USERNOTFOUND FailReason = "USER_NOT_FOUND" FAILREASON_USERLOCKED FailReason = "USER_LOCKED" FAILREASON_USERBLOCKED FailReason = "USER_BLOCKED" FAILREASON_USERUNVERIFIED FailReason = "USER_UNVERIFIED" FAILREASON_USEREXPIRED FailReason = "USER_EXPIRED" FAILREASON_USERINVALID FailReason = "USER_INVALID" FAILREASON_INSECURECONNECT FailReason = "INSECURE_CONNECTION" FAILREASON_METHODDISABLED FailReason = "LOGIN_METHOD_DISABLED" FAILREASON_TOKENEXPIRED FailReason = "TOKEN_EXPIRED" FAILREASON_TOKENREVOKED FailReason = "TOKEN_REVOKED" FAILREASON_TOKENINVALID FailReason = "TOKEN_INVALID" FAILREASON_SESSIONEXPIRED FailReason = "SESSION_EXPIRED" FAILREASON_SESSIONREVOKED FailReason = "SESSION_REVOKED" FAILREASON_CERTEXPIRED FailReason = "CERTIFICATE_EXPIRED" FAILREASON_CERTREVOKED FailReason = "CERTIFICATE_REVOKED" FAILREASON_CERTINVALID FailReason = "CERTIFICATE_INVALID" )
func (FailReason) IsValid ¶
func (r FailReason) IsValid() bool
type KeyCreateActionType ¶
type KeyCreateActionType string
const ( KEYCREATE_CREATE KeyCreateActionType = "CREATE" KEYCREATE_IMPORT KeyCreateActionType = "IMPORT" KEYCREATE_RESTORE KeyCreateActionType = "RESTORE" )
func (KeyCreateActionType) IsValid ¶
func (t KeyCreateActionType) IsValid() bool
type KeyReadActionType ¶
type KeyReadActionType string
const ( KEYREAD_READMETADATA KeyReadActionType = "READ_METADATA" KEYREAD_CRYPTOACCESS KeyReadActionType = "CRYPTO_ACCESS" )
func (KeyReadActionType) IsValid ¶
func (t KeyReadActionType) IsValid() bool
type KeyUpdateActionType ¶
type KeyUpdateActionType string
const ( KEYUPDATE_ENABLE KeyUpdateActionType = "ENABLE" KEYUPDATE_DISABLE KeyUpdateActionType = "DISABLE" KEYUPDATE_ROTATE KeyUpdateActionType = "ROTATE" )
func (KeyUpdateActionType) IsValid ¶
func (t KeyUpdateActionType) IsValid() bool
type LoginMethod ¶
type LoginMethod string
const ( LOGINMETHOD_OPENIDCONNECT LoginMethod = "OPEN_ID_CONNECT" LOGINMETHOD_X509CERT LoginMethod = "X509_CERTIFICATE" )
func (LoginMethod) IsValid ¶
func (l LoginMethod) IsValid() bool
type OtlpClient ¶
type TenantUpdateActionType ¶
type TenantUpdateActionType string
const ( TENANTUPDATE_TESTMODE TenantUpdateActionType = "TEST_MODE" TENANTUPDATE_WORKFLOWENABLE TenantUpdateActionType = "WORKFLOW_ENABLE" TENANTUPDATE_WORKFLOWDISABLE TenantUpdateActionType = "WORKFLOW_DISABLE" )
func (TenantUpdateActionType) IsValid ¶
func (t TenantUpdateActionType) IsValid() bool
type UserLoginFailureActionType ¶
type UserLoginFailureActionType string
const ( USERLOGINFAIL_AUTHN UserLoginFailureActionType = "AUTHN" USERLOGINFAIL_AUTHZ UserLoginFailureActionType = "AUTHZ" USERLOGINFAIL_FLOW UserLoginFailureActionType = "FLOW" )
func (UserLoginFailureActionType) IsValid ¶
func (t UserLoginFailureActionType) IsValid() bool
Click to show internal directories.
Click to hide internal directories.