cloudaudit

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: 8 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 {
	Credential auth.Credential
	// contains filtered or unexported fields
}

Driver wraps the tencent CloudAudit `LookUpEvents` action so the validation flow can dump recent operation log entries the same way it does for alibaba's SAS suspicious events.

func (*Driver) DumpEvents

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

DumpEvents returns recent CloudAudit events. `args` is interpreted as an optional `<startUnix>:<endUnix>` time window; pass "" to use the CloudAudit default lookback (last 7 days).

func (*Driver) HandleEvents

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

HandleEvents is intentionally not implemented — Tencent CloudAudit is a read-only audit log and has no equivalent of alibaba SAS's "advance mark mis-info" whitelisting flow. We surface a clear error so the REPL doesn't silently no-op.

func (*Driver) SetClientOptions

func (d *Driver) SetClientOptions(opts ...api.Option)

Jump to

Keyboard shortcuts

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