Documentation ¶
Index ¶
- Variables
- type Backend
- func (b *Backend) CreateApplication(app netbox.Application) (*netbox.Application, error)
- func (b *Backend) CreateApplicationGroup(group netbox.ApplicationGroup) (*netbox.ApplicationGroup, error)
- func (b *Backend) CreateApplicationPort(port netbox.ApplicationPort) (*netbox.ApplicationPort, error)
- func (b *Backend) CreateDevice(device *netbox.DeviceWithConfigContext) (*netbox.DeviceWithConfigContext, error)
- func (b *Backend) CreateDeviceType(platform netbox.DeviceType) (*netbox.DeviceType, error)
- func (b *Backend) CreateIPAddress(value netbox.IPAddress) (*netbox.IPAddress, error)
- func (b *Backend) CreateInterface(deviceId int32, value netbox.Interface) (*netbox.Interface, error)
- func (b *Backend) CreateInventoryItem(inventoryItem netbox.InventoryItem) (*netbox.InventoryItem, error)
- func (b *Backend) CreateInventoryRole(role netbox.InventoryItemRole) (*netbox.InventoryItemRole, error)
- func (b *Backend) CreateManufacturer(platform netbox.Manufacturer) (*netbox.Manufacturer, error)
- func (b *Backend) CreatePlatform(platform netbox.Platform) (*netbox.Platform, error)
- func (b *Backend) DeleteApplicationPort(portId int32) error
- func (b *Backend) DeleteIP(ipId int32) error
- func (b *Backend) DeleteInterface(interfaceId int32) error
- func (b *Backend) DeleteInventoryItem(inventoryItemId int32) error
- func (b *Backend) GetApplicationGroups() ([]netbox.ApplicationGroup, error)
- func (b *Backend) GetApplicationPorts() ([]netbox.ApplicationPort, error)
- func (b *Backend) GetApplications() ([]netbox.Application, error)
- func (b *Backend) GetDeviceByUuid(uuid string) (*netbox.DeviceWithConfigContext, error)
- func (b *Backend) GetDeviceTypes() ([]netbox.DeviceType, error)
- func (b *Backend) GetDevices() ([]netbox.DeviceWithConfigContext, error)
- func (b *Backend) GetIPAddressByDevice(deviceId int32) ([]netbox.IPAddress, error)
- func (b *Backend) GetIPAddressByInterface(interfaceId int32) ([]netbox.IPAddress, error)
- func (b *Backend) GetInterfaces(deviceId int32) ([]netbox.Interface, error)
- func (b *Backend) GetInventoryItemRoles() ([]netbox.InventoryItemRole, error)
- func (b *Backend) GetInventoryItemsByRoles(role int32) ([]netbox.InventoryItem, error)
- func (b *Backend) GetManufacturers() ([]netbox.Manufacturer, error)
- func (b *Backend) GetPlatforms() ([]netbox.Platform, error)
- func (b *Backend) InitBackend() error
- func (b *Backend) UpdateApplication(app netbox.Application) (*netbox.Application, error)
- func (b *Backend) UpdateDevice(id int32, device *netbox.DeviceWithConfigContext) (*netbox.DeviceWithConfigContext, error)
- func (b *Backend) UpdateIPAddress(value netbox.IPAddress) (*netbox.IPAddress, error)
- func (b *Backend) UpdateInterface(value netbox.Interface) (*netbox.Interface, error)
- func (b *Backend) UpdateInventoryItem(inventoryItem netbox.InventoryItem) (*netbox.InventoryItem, error)
- type BackendConfig
- type CustomField
- type NetboxHost
- type NetboxOther
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ContextCustomFieldQueries = contextType("netbox-customfield-query") ErrValueNotFound = fmt.Errorf("netbox error: value not found") )
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewBackend ¶
func NewBackend(config BackendConfig) *Backend
func (*Backend) CreateApplication ¶
func (b *Backend) CreateApplication(app netbox.Application) (*netbox.Application, error)
func (*Backend) CreateApplicationGroup ¶
func (b *Backend) CreateApplicationGroup(group netbox.ApplicationGroup) (*netbox.ApplicationGroup, error)
func (*Backend) CreateApplicationPort ¶
func (b *Backend) CreateApplicationPort(port netbox.ApplicationPort) (*netbox.ApplicationPort, error)
func (*Backend) CreateDevice ¶
func (b *Backend) CreateDevice(device *netbox.DeviceWithConfigContext) (*netbox.DeviceWithConfigContext, error)
func (*Backend) CreateDeviceType ¶
func (b *Backend) CreateDeviceType(platform netbox.DeviceType) (*netbox.DeviceType, error)
func (*Backend) CreateIPAddress ¶
func (*Backend) CreateInterface ¶
func (*Backend) CreateInventoryItem ¶
func (b *Backend) CreateInventoryItem(inventoryItem netbox.InventoryItem) (*netbox.InventoryItem, error)
func (*Backend) CreateInventoryRole ¶
func (b *Backend) CreateInventoryRole(role netbox.InventoryItemRole) (*netbox.InventoryItemRole, error)
func (*Backend) CreateManufacturer ¶
func (b *Backend) CreateManufacturer(platform netbox.Manufacturer) (*netbox.Manufacturer, error)
func (*Backend) CreatePlatform ¶
func (*Backend) DeleteApplicationPort ¶
func (*Backend) DeleteInterface ¶
func (*Backend) DeleteInventoryItem ¶
func (*Backend) GetApplicationGroups ¶
func (b *Backend) GetApplicationGroups() ([]netbox.ApplicationGroup, error)
func (*Backend) GetApplicationPorts ¶
func (b *Backend) GetApplicationPorts() ([]netbox.ApplicationPort, error)
func (*Backend) GetApplications ¶
func (b *Backend) GetApplications() ([]netbox.Application, error)
func (*Backend) GetDeviceByUuid ¶
func (b *Backend) GetDeviceByUuid(uuid string) (*netbox.DeviceWithConfigContext, error)
func (*Backend) GetDeviceTypes ¶
func (b *Backend) GetDeviceTypes() ([]netbox.DeviceType, error)
func (*Backend) GetDevices ¶
func (b *Backend) GetDevices() ([]netbox.DeviceWithConfigContext, error)
func (*Backend) GetIPAddressByDevice ¶
func (*Backend) GetIPAddressByInterface ¶
func (*Backend) GetInterfaces ¶
func (*Backend) GetInventoryItemRoles ¶
func (b *Backend) GetInventoryItemRoles() ([]netbox.InventoryItemRole, error)
func (*Backend) GetInventoryItemsByRoles ¶
func (b *Backend) GetInventoryItemsByRoles(role int32) ([]netbox.InventoryItem, error)
func (*Backend) GetManufacturers ¶
func (b *Backend) GetManufacturers() ([]netbox.Manufacturer, error)
func (*Backend) InitBackend ¶
func (*Backend) UpdateApplication ¶
func (b *Backend) UpdateApplication(app netbox.Application) (*netbox.Application, error)
func (*Backend) UpdateDevice ¶
func (b *Backend) UpdateDevice(id int32, device *netbox.DeviceWithConfigContext) (*netbox.DeviceWithConfigContext, error)
func (*Backend) UpdateIPAddress ¶
func (*Backend) UpdateInterface ¶
func (*Backend) UpdateInventoryItem ¶
func (b *Backend) UpdateInventoryItem(inventoryItem netbox.InventoryItem) (*netbox.InventoryItem, error)
type BackendConfig ¶
type CustomField ¶
type CustomField interface { GetKey() string CreateCustomFieldRequest() netbox.WritableCustomFieldRequest }
var ( CustomFieldAgent CustomField = customFieldAgent{} CustomFieldUuid CustomField = customFieldUuid{} )
type NetboxHost ¶
type NetboxHost struct { Device *netbox.DeviceWithConfigContext Platform *netbox.Platform Manufacturer *netbox.Manufacturer InventoryItems []*netbox.InventoryItem Interfaces []*netbox.Interface DeviceRole *netbox.DeviceRole IPAddresses []*netbox.IPAddress Applications []*netbox.ApplicationGroup }
type NetboxOther ¶
type NetboxOther struct { Wlan []*netbox.WirelessLAN IPRanges []*netbox.IPRange }
Click to show internal directories.
Click to hide internal directories.