Documentation
¶
Overview ¶
Package hclapi provides a declarative, embeddable API runtime engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultProblemHandler = problem.DefaultHandler
DefaultProblemHandler formats and serializes errors as application/problem+json.
Functions ¶
This section is empty.
Types ¶
type ExecutionContext ¶ added in v0.1.2
type ExecutionContext = runtime.ExecutionContext
ExecutionContext encapsulates the state for a single HTTP pipeline run.
type InvalidParam ¶
type InvalidParam = problem.InvalidParam
InvalidParam captures a single field validation constraint failure.
type Problem ¶ added in v0.1.2
Problem represents an RFC 9457 compliant error object.
func NewProblem ¶ added in v0.1.2
NewProblem constructs a Problem with canonical title and type derived from the status code.
type ProblemHandler ¶ added in v0.1.2
ProblemHandler defines the contract for serializing Problem Details to an HTTP client.
type RequestState ¶
type RequestState = runtime.RequestState
RequestState holds normalized, read-only HTTP request metadata.
type Step ¶ added in v0.1.2
Step provides invocation arguments and request context to a Go step callback.
type StepHandler ¶
type StepHandler = runtime.StepHandler
StepHandler defines the signature for custom native Go step callbacks.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
hclapi
command
|
|
|
examples
|
|
|
05_go_embedded
command
|
|
|
internal
|
|
|
eval
Package eval translates runtime core.Context data into HCL EvalContext structures and dynamically evaluates HCL AST expressions back into Go primitives.
|
Package eval translates runtime core.Context data into HCL EvalContext structures and dynamically evaluates HCL AST expressions back into Go primitives. |
|
runtime
Package runtime manages request-scoped execution state, step outputs, and context lifecycles for pipeline runs.
|
Package runtime manages request-scoped execution state, step outputs, and context lifecycles for pipeline runs. |
|
validator
Package validator enforces schema types, format constraints, and default value normalization.
|
Package validator enforces schema types, format constraints, and default value normalization. |