Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(t *testing.T, name string, config Config) nodeattestor.NodeAttestor
Types ¶
type Config ¶
type Config struct { // TrustDomain is the trust domain for SPIFFE IDs created by the attestor. // Defaults to "example.org" if empty. TrustDomain string // Payloads is a map from attestation payload (as a string) to the // associated id produced by the attestor. For example, a mapping from // "DATA" ==> "FOO means that an attestation request with the data "DATA" // would result in an attestation response with the SPIFFE ID: // // spiffe://<trustdomain>/spire/agent/<name>/<ID> // // For example, "spiffe://example.org/spire/agent/foo/bar" // In case ReturnLiteral is true value will be returned as base id Payloads map[string]string // Challenges is a map from ID to a list of echo challenges. The response // to each challenge is expected to match the challenge value. Challenges map[string][]string // Selectors is a map from ID to a list of selector values to return with that id. Selectors map[string][]string // Return literal from Payloads map ReturnLiteral bool }
Click to show internal directories.
Click to hide internal directories.