Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditConfig ¶
type AuditConfig struct { Enabled bool AuditAuthorizationSuccess bool ConfigurationType AuditingConfigType AuditFilter string }
AuditConfig represents the Atlas Project audit log config
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 NewAuditLogService ¶
func NewAuditLogService(ctx context.Context, provider atlas.Provider, secretRef *types.NamespacedName, log *zap.SugaredLogger) (*AuditLog, error)
NewAuditLogService creates an AuditLog from credentials and the atlas provider
type AuditLogService ¶
type AuditLogService interface { Get(ctx context.Context, projectID string) (*AuditConfig, error) Set(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
const ( None AuditingConfigType = "NONE" FilterBuilder AuditingConfigType = "FILTER_BUILDER" FilterJSON AuditingConfigType = "FILTER_JSON" )
Click to show internal directories.
Click to hide internal directories.