runner

package
v0.0.0-...-1e0e3aa Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPInvoke

func HTTPInvoke(ctx context.Context, cfg *config.Config, prompt string) (text string, status int, err error)

HTTPInvoke posts to the configured target and returns model text and status.

func Run

func Run(ctx context.Context, cfg *config.Config, attacks []models.AttackCase, invoke Invoker) []models.RunResult

Run executes attacks with bounded concurrency and returns per-attack results.

Types

type Invoker

type Invoker func(ctx context.Context, cfg *config.Config, prompt string) (text string, status int, err error)

Invoker calls the application under test. HTTPInvoke implements this for real targets.

Jump to

Keyboard shortcuts

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