Documentation
¶
Overview ¶
Package validatorpeer is an in-process mock OCM peer for validator tests.
Index ¶
Constants ¶
View Source
const (
// HostName is the advertised peer hostname in Peer.URL and Peer.Host.
HostName = "validator-peer.test"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// FailDiscovery makes /.well-known/ocm return HTTP 500.
FailDiscovery bool
}
Options configures a mock peer.
type Peer ¶
type Peer struct {
URL string
Host string
Signer *crypto.RFC9421Signer
Hits atomic.Int32
// contains filtered or unexported fields
}
Peer is a TLS mock OCM peer with discovery and JWKS.
func (*Peer) HTTPClient ¶
HTTPClient returns a client that trusts this peer's TLS certificate.
Click to show internal directories.
Click to hide internal directories.