Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostGroup ¶
type HostGroup struct { ID uuid.UUID `json:"id,omitempty" gorm:"type:uuid;primary_key;"` Name string `json:"name" gorm:"not null; unique"` // Hide is responsible for hiding the Host Group on scoring table Hide *bool `json:"pause,omitempty" gorm:"not null;default:false"` // Pause is responsible for pausing the Host Group on scoring table Pause *bool `json:"hide,omitempty" gorm:"not null;default:false"` Hosts []*host.Host `json:"hosts,omitempty" gorm:"foreignkey:HostGroupID; constraint:OnUpdate:RESTRICT,OnDelete:RESTRICT"` }
HostGroup model represents a set of hosts that have a common purpose, but are in different teams. For instance team 1 web, and team 2 web would bellong to a host group Web
Click to show internal directories.
Click to hide internal directories.