interfaces

package
v2.0.33 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 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient interface {
	// VerificationKeyByIssuer returns the JWT verification key by the specified issuer
	VerificationKeyByIssuer(ctx context.Context, issuer string) (res models.KeyDataResponse, err error)
}

AuthClient defines the interface for interactions with the auth API endpoint on the security-proxy-auth service.

type AuthenticationInjector

type AuthenticationInjector interface {
	// AddAuthenticationData mutates an HTTP request to add authentication data
	// (suth as an Authorization: header) to an outbound HTTP request
	AddAuthenticationData(_ *http.Request) error
}

AuthenticationInjector defines an interface to obtain a JWT for remote service calls

type SecretStoreTokenClient

type SecretStoreTokenClient interface {
	// RegenToken regenerates the secret store client token based on the specified entity id
	RegenToken(ctx context.Context, entityId string) (models.BaseResponse, error)
}

SecretStoreTokenClient defines the interface for interactions with the API endpoint on the security-secretstore-setup service.

type SecureTransportProvider added in v2.0.23

type SecureTransportProvider interface {
	// RoundTripper returns the configured http.RoundTripper to use when making the request.
	// A nil return falls back to http.DefaultTransport.
	RoundTripper() http.RoundTripper
}

SecureTransportProvider defines an interface to obtain a secure http.RoundTripper to use when making http requests. An AuthenticationInjector may optionally also implement SecureTransportProvider; callers type-assert for it so that existing injectors that only decorate the request keep working without change.

Jump to

Keyboard shortcuts

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