netbox

package
v0.0.0-...-9194b62 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(host, token string) (Client, error)

func (Client) FetchDevices

func (nb Client) FetchDevices(params dcim.DcimDevicesListParams) ([]*models.DeviceWithConfigContext, error)

func (Client) GetDeviceBaysByDeviceID

func (nb Client) GetDeviceBaysByDeviceID(deviceID int64) ([]*models.DeviceBay, error)

func (Client) GetDeviceByID

func (nb Client) GetDeviceByID(id int64) (*models.DeviceWithConfigContext, error)

func (Client) GetFilers

func (nb Client) GetFilers(region, query string) (filers Filers, err error)

type Filer

type Filer struct {
	Name             string `json:"name" yaml:"name"`
	Host             string `json:"host" yaml:"host"`
	AvailabilityZone string `json:"availability_zone" yaml:"availability_zone"`
	IP               string `json:"ip,omitempty" yaml:"ip,omitempty"`
}

type Filers

type Filers []Filer

Jump to

Keyboard shortcuts

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