cmd

package
v0.0.0-...-0923c39 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Device42Device

type Device42Device struct {
	LastUpdated time.Time `json:"last_updated"`
	Orientation int       `json:"orientation"`
	IPAddresses []struct {
		SubnetID int    `json:"subnet_id"`
		IP       string `json:"ip"`
		Label    string `json:"label"`
		Type     int    `json:"type"`
		Subnet   string `json:"subnet"`
	} `json:"ip_addresses"`
	SerialNo      string      `json:"serial_no"`
	HwDepth       interface{} `json:"hw_depth"`
	DeviceID      int         `json:"device_id"`
	ServiceLevel  string      `json:"service_level"`
	IsItBladeHost string      `json:"is_it_blade_host"`
	HwSize        interface{} `json:"hw_size"`
	ID            int         `json:"id"`
	CustomFields  []struct {
		Notes interface{} `json:"notes"`
		Key   string      `json:"key"`
		Value interface{} `json:"value"`
	} `json:"custom_fields"`
	Aliases                 []interface{} `json:"aliases"`
	Category                string        `json:"category"`
	HddDetails              interface{}   `json:"hdd_details"`
	UUID                    string        `json:"uuid"`
	VirtualSubtype          string        `json:"virtual_subtype"`
	Cpuspeed                interface{}   `json:"cpuspeed"`
	HwModel                 interface{}   `json:"hw_model"`
	HddraidType             interface{}   `json:"hddraid_type"`
	RackID                  int           `json:"rack_id"`
	Hddcount                interface{}   `json:"hddcount"`
	Building                string        `json:"building"`
	Xpos                    int           `json:"xpos"`
	DeviceExternalLinks     []interface{} `json:"device_external_links"`
	StartAt                 float64       `json:"start_at"`
	Tags                    []interface{} `json:"tags"`
	InService               bool          `json:"in_service"`
	Hddsize                 interface{}   `json:"hddsize"`
	MacAddresses            []interface{} `json:"mac_addresses"`
	Hddraid                 interface{}   `json:"hddraid"`
	Cpucount                interface{}   `json:"cpucount"`
	Os                      interface{}   `json:"os"`
	VirtualHostName         string        `json:"virtual_host_name"`
	IsItVirtualHost         string        `json:"is_it_virtual_host"`
	IsItSwitch              string        `json:"is_it_switch"`
	Customer                interface{}   `json:"customer"`
	UcsManager              interface{}   `json:"ucs_manager"`
	Name                    string        `json:"name"`
	Room                    string        `json:"room"`
	Row                     string        `json:"row"`
	Type                    string        `json:"type"`
	Notes                   string        `json:"notes"`
	RAM                     interface{}   `json:"ram"`
	AssetNo                 string        `json:"asset_no"`
	Manufacturer            interface{}   `json:"manufacturer"`
	DevicePurchaseLineItems []interface{} `json:"device_purchase_line_items"`
	Cpucore                 interface{}   `json:"cpucore"`
	Where                   int           `json:"where"`
	Rack                    string        `json:"rack"`
}

Device42Device Struct to contain device42 device JSON

Jump to

Keyboard shortcuts

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