netbox

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintDeviceRolesList

func PrintDeviceRolesList(netboxHost, token string, httpScheme string, jsonOpt bool, rawOpt bool, deviceRoleName string) error

func PrintDevicesList

func PrintDevicesList(netboxHost, token string, httpScheme string, jsonOpt bool, rawOpt bool, deviceName string, rackName string) error

PrintDevicesList prints the list of devices in the desired format

func PrintModulesList

func PrintModulesList(netboxHost, token string, httpScheme string, jsonOpt bool, rawOpt bool, moduleName string) error

PrintModulesList prints the list of modules in the desired format

func PrintPlatformsList

func PrintPlatformsList(netboxHost, token string, httpScheme string, jsonOpt bool, rawOpt bool, platformName string) error

PrintPlatformsList prints the list of platforms in the desired format

func PrintSitesList

func PrintSitesList(netboxHost, token string, httpScheme string, jsonOpt bool, rawOpt bool, siteName string) error

PrintSitesList prints the list of sites in the desired format

Types

type DeviceData

type DeviceData struct {
	Name     string
	Type     string
	Tenant   string
	Serial   string
	Location string
	Site     string
	Rack     string
	Status   string
}

DeviceData holds the details of a device to be displayed

type ModuleData

type ModuleData struct {
	Name   string
	Serial string
}

ModuleData holds the details of a module to be displayed

type PlatformData

type PlatformData struct {
	Name        string
	Description string
}

PlatformData holds the details of a platform to be displayed

type SiteData

type SiteData struct {
	Name            string
	PhysicalAddress string
	TimeZone        string
}

SiteData holds the details of a site to be displayed

Jump to

Keyboard shortcuts

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