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

Struct Organization

database/sql/models.go:263–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261 Org Organization `gorm:"foreignKey:OrgID"`
262}
263type Organization struct {
264 Base
265
266 CredentialsID *uint `gorm:"index"`
267 Credentials GithubCredentials `gorm:"foreignKey:CredentialsID;constraint:OnDelete:SET NULL"`
268
269 GiteaCredentialsID *uint `gorm:"index"`
270 GiteaCredentials GiteaCredentials `gorm:"foreignKey:GiteaCredentialsID;constraint:OnDelete:SET NULL"`
271
272 PoolManagerRunning bool
273 PoolManagerFailureReason string
274
275 Name string `gorm:"index:idx_org_name_nocase,collate:nocase"`
276 WebhookSecret []byte
277 Pools []Pool `gorm:"foreignKey:OrgID"`
278 ScaleSet []ScaleSet `gorm:"foreignKey:OrgID"`
279 Jobs []WorkflowJob `gorm:"foreignKey:OrgID;constraint:OnDelete:SET NULL"`
280 PoolBalancerType params.PoolBalancerType `gorm:"type:varchar(64)"`
281 AgentMode bool `gorm:"index:org_agent_idx"`
282
283 EndpointName *string `gorm:"index:idx_org_name_nocase,collate:nocase"`
284 Endpoint GithubEndpoint `gorm:"foreignKey:EndpointName;constraint:OnDelete:SET NULL"`
285
286 Events []OrganizationEvent `gorm:"foreignKey:OrgID;constraint:OnDelete:CASCADE,OnUpdate:CASCADE;"`
287}
288
289type EnterpriseEvent struct {
290 gorm.Model

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected