Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( JobTypeReport JobType = "report" FileTypePDF FileType = "pdf" FileTypeCSV FileType = "csv" ReportTypeAssetPackage ReportType = "asset_packages" ReportTypeAsset ReportType = "asset" ReportTypePackage ReportType = "package" )
Functions ¶
This section is empty.
Types ¶
type AlternativePackage ¶
type Asset ¶
type Asset struct { Base Hostname string `json:"hostname"` Address string `json:"address"` SerialNumber string `json:"serial_number"` BiosVersion string `json:"bios_version"` Vendor string `json:"vendor"` Model string `json:"model"` DiscoveryID *uuid.UUID `json:"discovery_id"` Discovery *Discovery `json:"discovery"` Packages []*Package `json:"packages" gorm:"many2many:asset_packages"` }
type Base ¶
type Discovery ¶
type Discovery struct { Base IPRange string `json:"ip_range" validate:"required"` ProfileID *uuid.UUID `json:"profile_id" validate:"required"` Profile *Profile `json:"profile"` Status Status `json:"discovery_status" gorm:"default:pending"` Message string `json:"message"` }
func (*Discovery) UpdateStatus ¶
type DiscoveryLogs ¶
type Job ¶
type Job struct { Base Status Status `json:"status"` JobType JobType `json:"job_type"` FileType FileType `json:"file_type"` ReportType ReportType `json:"report_type"` Message string `json:"message"` Path string `json:"path"` }
func (*Job) UpdateAsDone ¶
type Package ¶
type Package struct { Base Name string `json:"name"` Version string `json:"version"` Vendor string `json:"vendor"` Assets []*Asset `json:"assets" gorm:"many2many:asset_packages"` AlternativePackageID *uuid.UUID `json:"alternative_package_id"` AlternativePackage *AlternativePackage `json:"alternative_package"` }
type ReportType ¶
type ReportType string
Click to show internal directories.
Click to hide internal directories.