package
Version:
v0.0.0-...-1b647db
Opens a new window with list of versions in this module.
Published: Mar 5, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type HostInfo struct {
Kernel string `json:"kernel"`
Architecture string `json:"architecture"`
OS string `json:"os"`
Hostname string `json:"hostname"`
}
type Package struct {
Name string `json:"name"`
Version string `json:"version"`
Architecture string `json:"architecture"`
Repository string `json:"repository"`
Upgrade string `json:"upgrade,omitempty"`
}
type Report struct {
HostInfo HostInfo `json:"host_info"`
RebootRequired string `json:"reboot_required"`
RepositoryType string `json:"repo_type"`
Protocol string `json:"protocol"`
PackageManager string `json:"package_manager"`
Tags []string `json:"tags"`
Repositories []Repository `json:"repositories,omitempty"`
Packages []Package `json:"packages"`
}
Make the Attrs struct implement the sql.Scanner interface. This method
simply decodes a JSON-encoded value into the struct fields.
Make the Attrs struct implement the driver.Valuer interface. This method
simply returns the JSON-encoded representation of the struct.
type Repository struct {
RepositoryAlias string `json:"repository_alias"`
RepositoryID string `json:"repository_id"`
RepositoryName string `json:"repository_name"`
RepositoryBaseURL string `json:"repository_baseurl"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.