|
@@ -41,6 +41,7 @@ type GormRepository struct {
|
|
|
ceToken repository.CredentialsExchangeTokenRepository
|
|
ceToken repository.CredentialsExchangeTokenRepository
|
|
|
buildConfig repository.BuildConfigRepository
|
|
buildConfig repository.BuildConfigRepository
|
|
|
allowlist repository.AllowlistRepository
|
|
allowlist repository.AllowlistRepository
|
|
|
|
|
+ tag repository.TagRepository
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (t *GormRepository) User() repository.UserRepository {
|
|
func (t *GormRepository) User() repository.UserRepository {
|
|
@@ -179,6 +180,10 @@ func (t *GormRepository) Allowlist() repository.AllowlistRepository {
|
|
|
return t.allowlist
|
|
return t.allowlist
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (t *GormRepository) Tag() repository.TagRepository {
|
|
|
|
|
+ return t.tag
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// NewRepository returns a Repository which persists users in memory
|
|
// NewRepository returns a Repository which persists users in memory
|
|
|
// and accepts a parameter that can trigger read/write errors
|
|
// and accepts a parameter that can trigger read/write errors
|
|
|
func NewRepository(db *gorm.DB, key *[32]byte, storageBackend credentials.CredentialStorage) repository.Repository {
|
|
func NewRepository(db *gorm.DB, key *[32]byte, storageBackend credentials.CredentialStorage) repository.Repository {
|
|
@@ -217,5 +222,6 @@ func NewRepository(db *gorm.DB, key *[32]byte, storageBackend credentials.Creden
|
|
|
ceToken: NewCredentialsExchangeTokenRepository(db),
|
|
ceToken: NewCredentialsExchangeTokenRepository(db),
|
|
|
buildConfig: NewBuildConfigRepository(db),
|
|
buildConfig: NewBuildConfigRepository(db),
|
|
|
allowlist: NewAllowlistRepository(db),
|
|
allowlist: NewAllowlistRepository(db),
|
|
|
|
|
+ tag: NewTagRepository(db),
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|