inventory

package
v0.0.0-...-e2d6844 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSV

type CSV struct {
	// contains filtered or unexported fields
}

CSV handles a csv format inventory

func NewCSV

func NewCSV(writer io.Writer) (c CSV, err error)

NewCSV returns a new csv object ready to have rows written to it

func (CSV) Flush

func (c CSV) Flush()

Flush flushes the buffer to the writer

func (CSV) WriteRow

func (c CSV) WriteRow(r Row) error

WriteRow writes the row to the csv writer

type Row

type Row struct {
	UniqueAssetIdentifier          string
	IPv4orIPv6Address              string
	Virtual                        bool
	Public                         bool
	DNSNameOrURL                   string
	NetBIOSName                    string
	MACAddress                     string
	AuthenticatedScan              bool
	BaselineConfigurationName      string
	OSNameAndVersion               string
	Location                       string
	AssetType                      string
	HardwareMakeModel              string
	InLatestScan                   bool
	SoftwareDatabaseVendor         string
	SoftwareDatabaseNameAndVersion string
	PatchLevel                     string
	Function                       string
	Comments                       string
	SerialAssetTagNumber           string
	VLANNetworkID                  string
	SystemAdministratorOwner       string
	ApplicationAdministratorOwner  string
}

Row represents a row in the report

func (Row) StringSlice

func (r Row) StringSlice() []string

StringSlice returns a slice of strings representing the fields on the Row

Jump to

Keyboard shortcuts

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