remotetest

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package remotetest supplies remote plugin transport fixtures for tests.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnauthorized = errors.New("test credential rejected")

Functions

This section is empty.

Types

type Credentials

type Credentials map[string]string

Credentials resolves credentials from a fixed map of credential to plugin id. It exists for tests, fixtures and the conformance kit; production wiring uses identity_grants through WS7. Lookups hash the presented credential and compare in constant time so map iteration order does not leak through timing.

func (Credentials) ResolvePluginCredential

func (s Credentials) ResolvePluginCredential(_ context.Context, credential string) (string, error)

ResolvePluginCredential implements CredentialResolver.

Jump to

Keyboard shortcuts

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