logging

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Client   *api.Client
	Projects []string
}

Driver wraps Cloud Logging `entries:list` for the validation flow. The payload filter targets cloudaudit.googleapis.com data-access / activity logs so the dump surfaces management-plane events relevant to CSPM detection.

func (*Driver) DumpEvents

func (d *Driver) DumpEvents(ctx context.Context, args string) ([]schema.Event, error)

DumpEvents returns recent Cloud Audit log entries. `args` may be a `<startUnix>:<endUnix>` time window, "all", or empty (default 7-day lookback).

func (*Driver) GetLogs

func (d *Driver) GetLogs(ctx context.Context) ([]schema.Log, error)

GetLogs lists Cloud Logging log names per project. Each unique log name (e.g. `projects/<p>/logs/cloudaudit.googleapis.com%2Factivity`) is surfaced as one cloudlist `log` asset row.

func (*Driver) HandleEvents

func (d *Driver) HandleEvents(ctx context.Context, _ string) (schema.EventActionResult, error)

HandleEvents is unsupported — Cloud Audit Logs are read-only.

Jump to

Keyboard shortcuts

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