nautobot

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 3 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(token, apiServer, dcTag string) (*Client, error)

func (*Client) GetActiveDevice

func (c *Client) GetActiveDevice() (string, error)

func (*Client) GetDeviceByMachineUID

func (c *Client) GetDeviceByMachineUID(machineUID string) (*nautobot.DeviceInfo, error)

func (*Client) GetMachineCIDR

func (c *Client) GetMachineCIDR(deviceID string) (*nautobot.IPInfo, error)

func (*Client) GetMachineGatewayIP

func (c *Client) GetMachineGatewayIP(ip *nautobot.IPInfo, tag string) (string, error)

func (*Client) GetMachineMacAddress

func (c *Client) GetMachineMacAddress(deviceID string) (string, error)

func (*Client) GetMachineStatus

func (c *Client) GetMachineStatus() (string, error)

func (*Client) PatchDeviceStatus

func (c *Client) PatchDeviceStatus(deviceID string, params *nautobot.PatchedDeviceParams) error

type Config

type Config struct {
	Token     string `json:"token"`
	APIServer string `json:"apiServer"`
	Tag       string `json:"tag"`
}

type MetadataClientConfig

type MetadataClientConfig struct {
	Name   string  `json:"name"`
	Config *Config `json:"config"`
}

Jump to

Keyboard shortcuts

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