Documentation
¶
Index ¶
- Variables
- type AuditLogger
- type Auditor
- func (a *Auditor) SendCmkAvailableAuditLog(ctx context.Context, cmkID string) error
- func (a *Auditor) SendCmkCreateAuditLog(ctx context.Context, cmkID string) error
- func (a *Auditor) SendCmkDeleteAuditLog(ctx context.Context, cmkID string) error
- func (a *Auditor) SendCmkDetachAuditLog(ctx context.Context, cmkID string) error
- func (a *Auditor) SendCmkDisableAuditLog(ctx context.Context, cmkID string) error
- func (a *Auditor) SendCmkEnableAuditLog(ctx context.Context, cmkID string) error
- func (a *Auditor) SendCmkOffboardingAuditLog(ctx context.Context, cmkID, systemID string) error
- func (a *Auditor) SendCmkOnboardingAuditLog(ctx context.Context, cmkID, systemID string) error
- func (a *Auditor) SendCmkRotateAuditLog(ctx context.Context, cmkID string) error
- func (a *Auditor) SendCmkSwitchAuditLog(ctx context.Context, systemID, cmkIDOld, cmkIDNew string) error
- func (a *Auditor) SendCmkTenantDeleteAuditLog(ctx context.Context, tenantID string) error
- func (a *Auditor) SendCmkTenantModificationAuditLog(ctx context.Context, cmkID, systemID string, action otlpaudit.CmkAction) error
- func (a *Auditor) SendCmkUnauthorizedRequestAuditLog(ctx context.Context, resource, action string) error
- func (a *Auditor) SendCmkUnavailableAuditLog(ctx context.Context, cmkID string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AuditLogger ¶
AuditLogger interface for easier testing and dependency injection
type Auditor ¶
type Auditor struct {
// contains filtered or unexported fields
}
Auditor handles audit logging for CMK operations
func (*Auditor) SendCmkAvailableAuditLog ¶
SendCmkAvailableAuditLog sends an audit log for CmkAvailable
func (*Auditor) SendCmkCreateAuditLog ¶
SendCmkCreateAuditLog sends an audit log for CMK creation
func (*Auditor) SendCmkDeleteAuditLog ¶
SendCmkDeleteAuditLog sends an audit log for CMK deletion
func (*Auditor) SendCmkDetachAuditLog ¶
SendCmkDetachAuditLog sends an audit log for CMK detachment
func (*Auditor) SendCmkDisableAuditLog ¶
SendCmkDisableAuditLog sends an audit log for CMK disabling
func (*Auditor) SendCmkEnableAuditLog ¶
SendCmkEnableAuditLog sends an audit log for CMK enabling
func (*Auditor) SendCmkOffboardingAuditLog ¶
SendCmkOffboardingAuditLog sends an audit log for CMK offboarding
func (*Auditor) SendCmkOnboardingAuditLog ¶
SendCmkOnboardingAuditLog sends an audit log for CMK onboarding
func (*Auditor) SendCmkRotateAuditLog ¶
SendCmkRotateAuditLog sends an audit log for CMK rotation
func (*Auditor) SendCmkSwitchAuditLog ¶
func (a *Auditor) SendCmkSwitchAuditLog(ctx context.Context, systemID, cmkIDOld, cmkIDNew string) error
SendCmkSwitchAuditLog sends an audit log for CMK switching
func (*Auditor) SendCmkTenantDeleteAuditLog ¶
SendCmkTenantDeleteAuditLog sends an audit log for CMK tenant deletion.
func (*Auditor) SendCmkTenantModificationAuditLog ¶
func (a *Auditor) SendCmkTenantModificationAuditLog( ctx context.Context, cmkID, systemID string, action otlpaudit.CmkAction, ) error
SendCmkTenantModificationAuditLog sends an audit log for CMK tenant modification