Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthEnforcer *casbin.SyncedEnforcer
AuthEnforcer is the global casbin enforcer
View Source
var ( // DB is the global database connection DB *gorm.DB )
Functions ¶
func Initialize ¶
func Initialize(config configs.Configuration) error
Initialize initializes the database connection
func UrlMatchFunc ¶
UrlMatchFunc ... DS${repository}$tags DS$catalog DS${repository}$(blobs)|(manifest)|(blob_uploads)${reference} DS${repository}$blob_uploads API${repository}${url}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.