executor

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArazzoParameterLocations

func ArazzoParameterLocations(doc *higharazzo.Arazzo) map[string]string

ArazzoParameterLocations maps parameter names to their Arazzo `in` values.

func IsSecretKey

func IsSecretKey(key string) bool

IsSecretKey reports whether key matches any known secret fragment.

func RedactValue

func RedactValue(v any) any

RedactValue recursively walks maps and slices, masking values whose keys match secret patterns.

Types

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

Executor runs Arazzo HTTP steps with a cookie jar and operationId resolution.

func New

func New(client *http.Client, baseURL string, sources []*libarazzo.ResolvedSource, logger *slog.Logger, arazzoParamIn map[string]string) *Executor

New returns an HTTP executor. A cookie jar is attached if the client lacks one. arazzoParamIn maps parameter names to Arazzo `in` locations (header, query, path, cookie).

func (*Executor) BaseURL

func (e *Executor) BaseURL() string

BaseURL returns the current API root.

func (*Executor) Client

func (e *Executor) Client() *http.Client

Client returns the HTTP client used for workflow steps (including its cookie jar).

func (*Executor) Execute

func (*Executor) SetBaseURL

func (e *Executor) SetBaseURL(baseURL string)

SetBaseURL updates the API root used to join relative operation paths.

Jump to

Keyboard shortcuts

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