Documentation ¶
Overview ¶
Package storage contains types and functions for managing data storage in identity-api.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrorInvalidContextTx = fmt.Errorf("invalid type for transaction context")
ErrorInvalidContextTx represents an error where the given context transaction is of the wrong type.
var ErrorMissingContextTx = fmt.Errorf("no transaction provided in context")
ErrorMissingContextTx represents an error where no context transaction was provided.
var ErrorMissingEngineType = fmt.Errorf("missing engine type")
ErrorMissingEngineType represents an error where no engine type was provided.
Functions ¶
func WithHTTPClient ¶
WithHTTPClient allows configuring the HTTP client used by memoryUserInfoService to call out to userinfo endpoints.
Types ¶
type Config ¶
type Config struct { Type EngineType SeedData SeedData // contains filtered or unexported fields }
Config represents the storage configuration for identity-api.
type Engine ¶
type Engine interface { types.IssuerService types.UserInfoService TransactionManager Shutdown() }
Engine represents a storage engine.
type EngineType ¶
type EngineType string
EngineType represents the type of identity-api storage engine.
const ( // EngineTypeMemory represents an in-memory storage engine. EngineTypeMemory EngineType = "memory" )
type ErrorUnknownEngineType ¶
type ErrorUnknownEngineType struct {
// contains filtered or unexported fields
}
ErrorUnknownEngineType represents an error where an invalid engine type was provided.
func (*ErrorUnknownEngineType) Error ¶
func (e *ErrorUnknownEngineType) Error() string
type SeedData ¶
type SeedData struct {
Issuers []SeedIssuer
}
SeedData represents the seed data for an identity-api instance on startup.