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 ¶
IsSecretKey reports whether key matches any known secret fragment.
func RedactValue ¶
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) Client ¶
Client returns the HTTP client used for workflow steps (including its cookie jar).
func (*Executor) Execute ¶
func (e *Executor) Execute(ctx context.Context, req *libarazzo.ExecutionRequest) (*libarazzo.ExecutionResponse, error)
func (*Executor) SetBaseURL ¶
SetBaseURL updates the API root used to join relative operation paths.