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

Struct Enterprise

database/sql/models.go:300–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300type Enterprise struct {
301 Base
302
303 CredentialsID *uint `gorm:"index"`
304 Credentials GithubCredentials `gorm:"foreignKey:CredentialsID;constraint:OnDelete:SET NULL"`
305
306 PoolManagerRunning bool
307 PoolManagerFailureReason string
308
309 Name string `gorm:"index:idx_ent_name_nocase,collate:nocase"`
310 WebhookSecret []byte
311 Pools []Pool `gorm:"foreignKey:EnterpriseID"`
312 ScaleSet []ScaleSet `gorm:"foreignKey:EnterpriseID"`
313 Jobs []WorkflowJob `gorm:"foreignKey:EnterpriseID;constraint:OnDelete:SET NULL"`
314 PoolBalancerType params.PoolBalancerType `gorm:"type:varchar(64)"`
315 AgentMode bool `gorm:"index:enterprise_agent_idx"`
316
317 EndpointName *string `gorm:"index:idx_ent_name_nocase,collate:nocase"`
318 Endpoint GithubEndpoint `gorm:"foreignKey:EndpointName;constraint:OnDelete:SET NULL"`
319
320 Events []EnterpriseEvent `gorm:"foreignKey:EnterpriseID;constraint:OnDelete:CASCADE,OnUpdate:CASCADE;"`
321}
322
323type Address struct {
324 Base

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected