audit

package
v2.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FilterDefault = "{}"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditConfig

type AuditConfig struct {
	*akov2.Auditing
}

AuditConfig represents the Atlas Project audit log config

func NewAuditConfig added in v2.4.0

func NewAuditConfig(auditConfig *akov2.Auditing) *AuditConfig

type AuditLog

type AuditLog struct {
	// contains filtered or unexported fields
}

AuditLog is the default implementation of the AuditLogService using the Atlas SDK

func NewAuditLog

func NewAuditLog(api admin.AuditingApi) *AuditLog

NewAuditLog wraps the SDK AuditingApi as an AuditLog

func (*AuditLog) Get

func (s *AuditLog) Get(ctx context.Context, projectID string) (*AuditConfig, error)

Get an Atlas Project audit log configuration

func (*AuditLog) Update added in v2.4.0

func (s *AuditLog) Update(ctx context.Context, projectID string, auditing *AuditConfig) error

Update an Atlas Project audit log configuration

type AuditLogService

type AuditLogService interface {
	Get(ctx context.Context, projectID string) (*AuditConfig, error)
	Update(ctx context.Context, projectID string, auditing *AuditConfig) error
}

AuditLogService is the interface exposed by this translation layer over the Atlas AuditLog

type AuditingConfigType

type AuditingConfigType string

Jump to

Keyboard shortcuts

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