interfaces

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter interface {
	Emit(ctx context.Context, ev *event.Event) error
}

Emitter abstracts event notification for honeypot interactions. Implementations include log output, webhook, and future extensions (Pub/Sub, SQS, etc.).

type Generator

type Generator interface {
	Generate(ctx context.Context) (*scenario.Scenario, error)
}

Generator abstracts LLM-based scenario generation.

type Printer

type Printer interface {
	ToolStart(toolName string, args map[string]any)
	ToolEnd(toolName string, result map[string]any, err error)
	Message(text string)
}

Printer displays scenario generation progress on the CLI.

type Repository

type Repository interface {
	Load(ctx context.Context, path string) (*scenario.Scenario, error)
	Save(ctx context.Context, path string, s *scenario.Scenario) error
}

Repository abstracts scenario read/write operations.

Jump to

Keyboard shortcuts

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