Documentation
¶
Overview ¶
Package postgres contains Key repository implementations using PostgreSQL as the underlying database.
Index ¶
- func Connect(cfg Config) (*sqlx.DB, error)
- func New(db dbutil.Database) auth.KeyRepository
- func NewOrgInvitesRepo(db dbutil.Database) auth.OrgInvitesRepository
- func NewOrgMembershipsRepo(db dbutil.Database) auth.OrgMembershipsRepository
- func NewOrgRepo(db dbutil.Database) auth.OrgRepository
- func NewRolesRepo(db dbutil.Database) auth.RolesRepository
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect creates a connection to the PostgreSQL instance and applies any unapplied database migrations. A non-nil error is returned to indicate failure.
func New ¶
func New(db dbutil.Database) auth.KeyRepository
New instantiates a PostgreSQL implementation of key repository.
func NewOrgInvitesRepo ¶ added in v0.30.0
func NewOrgInvitesRepo(db dbutil.Database) auth.OrgInvitesRepository
func NewOrgMembershipsRepo ¶ added in v0.29.0
func NewOrgMembershipsRepo(db dbutil.Database) auth.OrgMembershipsRepository
NewOrgMembershipsRepo instantiates a PostgreSQL implementation of membership repository.
func NewOrgRepo ¶
func NewOrgRepo(db dbutil.Database) auth.OrgRepository
NewOrgRepo instantiates a PostgreSQL implementation of org repository.
func NewRolesRepo ¶
func NewRolesRepo(db dbutil.Database) auth.RolesRepository
NewRolesRepo instantiates a PostgreSQL implementation of roles repository.
Types ¶
Click to show internal directories.
Click to hide internal directories.