Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrUnsupportedProvider = errors.New("unsupported provider") ErrProviderExists = errors.New("provider already registered") ErrInvalidConfiguration = errors.New("invalid configuration") ErrNotFound = errors.New("not found") ErrUnsupportedOperation = errors.New("operation not supported by this provider") )
Sentinel errors returned by adapters and the registry.
Functions ¶
func IsNotFound ¶
IsNotFound reports whether err (or an error it wraps) is ErrNotFound.
func IsUnsupportedOperation ¶
IsUnsupportedOperation reports whether err (or an error it wraps) is ErrUnsupportedOperation — the caller asked for something this provider's Capabilities() doesn't advertise.
func NewProvider ¶
NewProvider constructs a provider.Provider for name using its registered Factory and config.
func RegisterProvider ¶
RegisterProvider registers a Factory under name. Adapters call this from an init() func. Registering the same name twice is an error — unlike omnillm-core's priority-based override (needed there for thin-vs-thick duplicate implementations of the same provider), omniroadmap has exactly one adapter per provider, so a duplicate registration is a bug, not a legitimate override.
func RegisteredProviders ¶
func RegisteredProviders() []string
RegisteredProviders returns the names of all currently registered providers, sorted for deterministic output.
Types ¶
type APIError ¶
APIError represents an error response from a provider's underlying API.
func NewAPIError ¶
NewAPIError creates a new APIError.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package provider defines the core interface and canonical types that external roadmap/product-management data sources must implement or produce to plug into omniroadmap.
|
Package provider defines the core interface and canonical types that external roadmap/product-management data sources must implement or produce to plug into omniroadmap. |
|
providertest
Package providertest provides a conformance test suite for provider.Provider implementations.
|
Package providertest provides a conformance test suite for provider.Provider implementations. |