MCPcopy Create free account
hub / github.com/cloudbase/garm / Repository

Struct Repository

database/sql/models.go:226–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226type Repository struct {
227 Base
228
229 CredentialsID *uint `gorm:"index"`
230 Credentials GithubCredentials `gorm:"foreignKey:CredentialsID;constraint:OnDelete:SET NULL"`
231
232 GiteaCredentialsID *uint `gorm:"index"`
233 GiteaCredentials GiteaCredentials `gorm:"foreignKey:GiteaCredentialsID;constraint:OnDelete:SET NULL"`
234
235 PoolManagerRunning bool
236 PoolManagerFailureReason string
237
238 Owner string `gorm:"index:idx_owner_nocase,unique,collate:nocase"`
239 Name string `gorm:"index:idx_owner_nocase,unique,collate:nocase"`
240 WebhookSecret []byte
241 Pools []Pool `gorm:"foreignKey:RepoID"`
242 ScaleSets []ScaleSet `gorm:"foreignKey:RepoID"`
243 Jobs []WorkflowJob `gorm:"foreignKey:RepoID;constraint:OnDelete:SET NULL"`
244 PoolBalancerType params.PoolBalancerType `gorm:"type:varchar(64)"`
245 AgentMode bool `gorm:"index:repo_agent_idx"`
246
247 EndpointName *string `gorm:"index:idx_owner_nocase,unique,collate:nocase"`
248 Endpoint GithubEndpoint `gorm:"foreignKey:EndpointName;constraint:OnDelete:SET NULL"`
249
250 Events []RepositoryEvent `gorm:"foreignKey:RepoID;constraint:OnDelete:CASCADE,OnUpdate:CASCADE;"`
251}
252
253type OrganizationEvent struct {
254 gorm.Model

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected