report

package
v0.0.0-...-1b647db Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: GPL-3.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 HostInfo

type HostInfo struct {
	Kernel       string `json:"kernel"`
	Architecture string `json:"architecture"`
	OS           string `json:"os"`
	Hostname     string `json:"hostname"`
}

type Package

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

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"`
}

func (*Report) Scan

func (r *Report) Scan(value interface{}) error

Make the Attrs struct implement the sql.Scanner interface. This method simply decodes a JSON-encoded value into the struct fields.

func (Report) Value

func (r Report) Value() (driver.Value, error)

Make the Attrs struct implement the driver.Valuer interface. This method simply returns the JSON-encoded representation of the struct.

type Repository

type Repository struct {
	RepositoryAlias   string `json:"repository_alias"`
	RepositoryID      string `json:"repository_id"`
	RepositoryName    string `json:"repository_name"`
	RepositoryBaseURL string `json:"repository_baseurl"`
}

Jump to

Keyboard shortcuts

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