inventory

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package inventory contains all the code used to collect inventory items from the target

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopulateInventory

func PopulateInventory(instanceEntity *integration.Entity, connection *connection.SQLConnection)

PopulateInventory gathers inventory data for the SQL Server instance and populates it into entity

Types

type ConfigQueryRow

type ConfigQueryRow struct {
	Name  string `db:"name"`
	Value int    `db:"value"`
}

ConfigQueryRow represents a row in the table returned by sysConfigQuery

type SPConfigRow

type SPConfigRow struct {
	Name        string `db:"name"`
	Minimum     int    `db:"minimum"`      // not used but needed in order to unmarshal from query results
	Maximum     int    `db:"maximum"`      // not used but needed in order to unmarshal from query results
	ConfigValue int    `db:"config_value"` // not used but needed in order to unmarshal from query results
	RunValue    int    `db:"run_value"`
}

SPConfigRow represents a row in the table returned by spConfigQuery

Jump to

Keyboard shortcuts

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