Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type ImageInfra ¶
type JSONField ¶
type JSONField[T any] struct { Data T }
JSONField wraps an arbitrary struct so that it can be included in a GORM model, for use in a JSON/JSONB field
func MakeJSONField ¶
Return a copy of 'data', wrapped in a JSONField object
func (JSONField[T]) MarshalJSON ¶
func (*JSONField[T]) UnmarshalJSON ¶
type Source ¶
type Source struct { gorm.Model ID uuid.UUID `gorm:"primaryKey; not null"` Name string `gorm:"uniqueIndex:name_org_id;not null"` VCenterID string Username string OrgID string `gorm:"uniqueIndex:name_org_id;not null"` Inventory *JSONField[api.Inventory] `gorm:"type:jsonb"` OnPremises bool Agents []Agent `gorm:"constraint:OnDelete:CASCADE;"` ImageInfra ImageInfra `gorm:"constraint:OnDelete:CASCADE;"` }
type SourceList ¶
type SourceList []Source
Click to show internal directories.
Click to hide internal directories.