driver

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package driver defines common interfaces and type aliases used by token driver implementations. These abstractions decouple drivers from concrete service implementations, facilitating modularity, testing, and dependency injection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigService

type ConfigService interface {
	// ConfigurationFor returns the configuration for the given network, channel, and namespace.
	ConfigurationFor(network, channel, namespace string) (driver.Configuration, error)
}

ConfigService defines the interface for accessing TMS configurations.

type IdentityProvider

type IdentityProvider interface {
	// DefaultIdentity returns the default identity.
	DefaultIdentity() driver.Identity
}

IdentityProvider defines the interface for accessing identities.

type MetricsProvider

type MetricsProvider = metrics.Provider

MetricsProvider is an alias for the metrics.Provider interface.

type NetworkBinderService

type NetworkBinderService = identity.NetworkBinderService

NetworkBinderService is an alias for the identity.NetworkBinderService interface.

type NetworkProvider

type NetworkProvider interface {
	// GetNetwork returns the network instance for the given network and channel.
	GetNetwork(network, channel string) (*network.Network, error)
}

NetworkProvider defines the interface for accessing network instances.

type StorageProvider

type StorageProvider = identity.StorageProvider

StorageProvider is an alias for the identity.StorageProvider interface.

type TracerProvider

type TracerProvider = trace.TracerProvider

TracerProvider is an alias for the trace.TracerProvider interface from OpenTelemetry.

type VaultProvider

type VaultProvider interface {
	// Vault returns the vault instance for the given network, channel, and namespace.
	Vault(network, channel, namespace string) (driver.Vault, error)
}

VaultProvider defines the interface for accessing vault instances.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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