Help us shape the future of Go! Take the 2026 Go Developer Survey

catest

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package catest supplies controllable evaluators for CA boundary tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPPolicy

type HTTPPolicy struct {
	URL string
	Key sshcert.RawPrivateKey
	TLS tlsconfig.Config
}

HTTPPolicy lets existing httptest policy fixtures exercise CA validation of evaluator results. Production CA evaluation is in-process.

func (HTTPPolicy) Evaluate

func (p HTTPPolicy) Evaluate(ctx context.Context, conn wire.Connection, policyFacts *wire.PolicyFacts) (*wire.PolicyResponse, error)

type Request

type Request struct {
	Facts      *wire.PolicyFacts `json:"facts"`
	Connection wire.Connection   `json:"connection"`
}

Request is the test-only envelope used by controllable evaluator fixtures.

Jump to

Keyboard shortcuts

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