cts

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: 11 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 {
	Cred     auth.Credential
	Regions  []string
	DomainID string
	Client   *api.Client
	// contains filtered or unexported fields
}

Driver wraps Huawei CTS `ListTraces` so event-check can review recent management-plane operations from an authorized environment. CTS is read-only: `whitelist` returns a clear unsupported error instead of silently no-oping.

func (*Driver) DumpEvents

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

DumpEvents queries CTS management traces and optionally filters the result by source IP when `sourceFilter` is not empty and not "all".

func (*Driver) HandleEvents

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

HandleEvents is intentionally not supported — Huawei CTS is an audit log, not a configurable detection/whitelist surface.

Jump to

Keyboard shortcuts

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