Documentation ¶
Overview ¶
Package criadb provides a wrapper around the CrIA authorization database. The database is replicated from a GCP Cloud Storage bucket, and is updated every 30 + rand.Intn(10) seconds. This database is used to check whether a user is a member of a specified mdb (or other) group.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthDatabase ¶
type AuthDatabase struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func NewDatabase(serviceName string) (*AuthDatabase, error)
func NewDevDatabase ¶
func NewDevDatabase() *AuthDatabase
func NewTestDatabase ¶
func NewTestDatabase(memberships [][2]string) *AuthDatabase
func (*AuthDatabase) IsMemberOfAny ¶
Click to show internal directories.
Click to hide internal directories.