Versions in this module Expand all Collapse all v0 v0.1.0 Sep 3, 2015 Changes in this version + var ErrorCannotDecryptKeys = errors.New("Cannot Decrypt Keys") + func DropMigrationsTable(dbMap *gorp.DbMap) error + func GetPlannedMigrations(dbMap *gorp.DbMap) ([]*migrate.PlannedMigration, error) + func MigrateMaxMigrations(dbMap *gorp.DbMap, max int) (int, error) + func MigrateToLatest(dbMap *gorp.DbMap) (int, error) + func NewClientIdentityRepo(dbm *gorp.DbMap) client.ClientIdentityRepo + func NewClientIdentityRepoFromClients(dbm *gorp.DbMap, clients []oidc.ClientIdentity) (client.ClientIdentityRepo, error) + func NewConnection(cfg Config) (*gorp.DbMap, error) + func NewHealthChecker(dbm *gorp.DbMap) *healthChecker + func NewPasswordInfoRepo(dbm *gorp.DbMap) user.PasswordInfoRepo + func NewRefreshTokenRepo(dbm *gorp.DbMap) refresh.RefreshTokenRepo + func NewUserRepo(dbm *gorp.DbMap) user.UserRepo + func NewUserRepoFromUsers(dbm *gorp.DbMap, us []user.UserWithRemoteIdentities) (user.UserRepo, error) + func TransactionFactory(conn *gorp.DbMap) repo.TransactionFactory + type Config struct + DSN string + MaxIdleConnections int + MaxOpenConnections int + type ConnectorConfigRepo struct + func NewConnectorConfigRepo(dbm *gorp.DbMap) *ConnectorConfigRepo + func (r *ConnectorConfigRepo) All() ([]connector.ConnectorConfig, error) + func (r *ConnectorConfigRepo) Set(cfgs []connector.ConnectorConfig) error + type GarbageCollector struct + func NewGarbageCollector(dbm *gorp.DbMap, ival time.Duration) *GarbageCollector + func (gc *GarbageCollector) Run() chan struct{} + type PrivateKeySetRepo struct + func NewPrivateKeySetRepo(dbm *gorp.DbMap, secrets ...[]byte) (*PrivateKeySetRepo, error) + func (r *PrivateKeySetRepo) Get() (key.KeySet, error) + func (r *PrivateKeySetRepo) Set(ks key.KeySet) error + type SessionKeyRepo struct + func NewSessionKeyRepo(dbm *gorp.DbMap) *SessionKeyRepo + func NewSessionKeyRepoWithClock(dbm *gorp.DbMap, clock clockwork.Clock) *SessionKeyRepo + func (r *SessionKeyRepo) Pop(key string) (string, error) + func (r *SessionKeyRepo) Push(sk session.SessionKey, exp time.Duration) error + type SessionRepo struct + func NewSessionRepo(dbm *gorp.DbMap) *SessionRepo + func NewSessionRepoWithClock(dbm *gorp.DbMap, clock clockwork.Clock) *SessionRepo + func (r *SessionRepo) Create(s session.Session) error + func (r *SessionRepo) Get(sessionID string) (*session.Session, error) + func (r *SessionRepo) Update(s session.Session) error