hostgroup

package
v0.3.7-alpha2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (*HostGroup) BeforeCreate

func (h *HostGroup) BeforeCreate(_ *gorm.DB) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL