Documentation
¶
Overview ¶
Package barometer exposes the stable module-root Go API for Barometer.
Index ¶
- Constants
- Variables
- func WriteOpenAPIReport(w io.Writer, results []OpenAPIContractResult, format Format, ...) error
- func WriteReport(w io.Writer, result *Result, format Format, duration time.Duration) error
- type ArazzoConfig
- type ArazzoReport
- type ArazzoResult
- type Client
- type ClientConfig
- type Config
- type ContractInput
- type Format
- type JSONReport
- type Job
- type OpenAPIConfig
- type OpenAPIContractResult
- type OpenAPIReport
- type OpenAPIResult
- type Result
- type RunOpts
- type WorkflowResult
Constants ¶
View Source
const ( FormatHuman = pkgbarometer.FormatHuman FormatJUnit = pkgbarometer.FormatJUnit FormatJSON = pkgbarometer.FormatJSON JSONReportVersion = pkgbarometer.JSONReportVersion )
Variables ¶
View Source
var ( ErrConfigRequired = pkgbarometer.ErrConfigRequired ErrTargetRequired = pkgbarometer.ErrTargetRequired )
View Source
var ReportSchemaJSON = pkgbarometer.ReportSchemaJSON
Functions ¶
func WriteOpenAPIReport ¶
Types ¶
type ArazzoConfig ¶
type ArazzoConfig = pkgbarometer.ArazzoConfig
type ArazzoReport ¶
type ArazzoReport = pkgbarometer.ArazzoReport
type ArazzoResult ¶
type ArazzoResult = pkgbarometer.ArazzoResult
type Client ¶
type Client = pkgbarometer.Client
func NewClient ¶
func NewClient(cfg *ClientConfig) (*Client, error)
type ClientConfig ¶
type ClientConfig = pkgbarometer.ClientConfig
type ContractInput ¶
type ContractInput = pkgbarometer.ContractInput
type Format ¶
type Format = pkgbarometer.Format
type JSONReport ¶
type JSONReport = pkgbarometer.JSONReport
func BuildReport ¶
func BuildReport(result *Result, duration time.Duration) JSONReport
type OpenAPIConfig ¶
type OpenAPIConfig = pkgbarometer.OpenAPIConfig
type OpenAPIContractResult ¶
type OpenAPIContractResult = pkgbarometer.OpenAPIContractResult
type OpenAPIReport ¶
type OpenAPIReport = pkgbarometer.OpenAPIReport
type OpenAPIResult ¶
type OpenAPIResult = pkgbarometer.OpenAPIResult
type RunOpts ¶
type RunOpts = pkgbarometer.RunOpts
type WorkflowResult ¶
type WorkflowResult = pkgbarometer.WorkflowResult
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
barometer
command
Command barometer is the CLI for OpenAPI and Arazzo contract testing.
|
Command barometer is the CLI for OpenAPI and Arazzo contract testing. |
|
internal
|
|
|
arazzo
Package arazzo parses and executes Arazzo workflow documents (OpenAPI Initiative).
|
Package arazzo parses and executes Arazzo workflow documents (OpenAPI Initiative). |
|
openapi
Package openapi provides loading, validation, and contract testing for OpenAPI 3.0.x, 3.1.x, and 3.2 documents using Navigator's shared index model.
|
Package openapi provides loading, validation, and contract testing for OpenAPI 3.0.x, 3.1.x, and 3.2 documents using Navigator's shared index model. |
|
runner
Package runner provides HTTP client and execution for contract tests and Arazzo workflows.
|
Package runner provides HTTP client and execution for contract tests and Arazzo workflows. |
|
testserver
Package testserver provides a comprehensive Huma-based HTTP server that serves an auto-generated OpenAPI spec and implements operations for E2E contract testing.
|
Package testserver provides a comprehensive Huma-based HTTP server that serves an auto-generated OpenAPI spec and implements operations for E2E contract testing. |
|
pkg
|
|
|
barometer
Package barometer provides the public API for OpenAPI and Arazzo contract testing.
|
Package barometer provides the public API for OpenAPI and Arazzo contract testing. |
Click to show internal directories.
Click to hide internal directories.