Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateCable(cable models.WriteableCable) (*models.Cable, error)
- func (c *Client) CreateDevice(dev models.WritableDeviceWithConfigContext) (*models.Device, error)
- func (c *Client) CreateInterface(interf models.WritableInterface) (*models.Interface, error)
- func (c *Client) DeleteCable(id int) error
- func (c *Client) DeleteDevice(id int) error
- func (c *Client) DeleteInterface(id int) error
- func (c *Client) GetCable(id int) (*models.Cable, error)
- func (c *Client) GetDevice(id int) (*models.Device, error)
- func (c *Client) GetDeviceWithContext(id int) (*models.Device, error)
- func (c *Client) GetRegion(id int) (*models.Region, error)
- func (c *Client) GetSite(id int) (*models.Site, error)
- func (c *Client) GetSiteGroup(id int) (*models.SiteGroup, error)
- func (c *Client) ListDeviceRoles(opts models.ListDeviceRolesRequest) (*models.ListDeviceRolesResponse, error)
- func (c *Client) ListDeviceTypes(opts models.ListDeviceTypesRequest) (*models.ListDeviceTypesResponse, error)
- func (c *Client) ListDevices(opts models.ListDevicesRequest) (*models.ListDevicesResponse, error)
- func (c *Client) ListInterfaces(opts models.ListInterfacesRequest) (*models.ListInterfacesResponse, error)
- func (c *Client) ListPlatforms(opts models.ListPlatformsRequest) (*models.ListPlatformsResponse, error)
- func (c *Client) ListRacks(opts models.ListRacksRequest) (*models.ListRacksResponse, error)
- func (c *Client) ListRegions(opts models.ListRegionsRequest) (*models.ListRegionsResponse, error)
- func (c *Client) ListSiteGroups(opts models.ListSiteGroupsRequest) (*models.ListSiteGroupsResponse, error)
- func (c *Client) ListSites(opts models.ListSitesRequest) (*models.ListSitesResponse, error)
- func (c *Client) UpdateCable(cable models.WriteableCable) (*models.Cable, error)
- func (c *Client) UpdateDevice(dev models.WritableDeviceWithConfigContext) (*models.Device, error)
- func (c *Client) UpdateInterface(interf models.WritableInterface, id int) (*models.Interface, error)
- type NetboxAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateCable ¶
func (*Client) CreateDevice ¶
func (*Client) CreateInterface ¶
func (*Client) DeleteCable ¶
func (*Client) DeleteDevice ¶
func (*Client) DeleteInterface ¶
func (*Client) GetDeviceWithContext ¶
func (*Client) ListDeviceRoles ¶
func (c *Client) ListDeviceRoles(opts models.ListDeviceRolesRequest) (*models.ListDeviceRolesResponse, error)
func (*Client) ListDeviceTypes ¶
func (c *Client) ListDeviceTypes(opts models.ListDeviceTypesRequest) (*models.ListDeviceTypesResponse, error)
func (*Client) ListDevices ¶
func (c *Client) ListDevices(opts models.ListDevicesRequest) (*models.ListDevicesResponse, error)
func (*Client) ListInterfaces ¶
func (c *Client) ListInterfaces(opts models.ListInterfacesRequest) (*models.ListInterfacesResponse, error)
func (*Client) ListPlatforms ¶
func (c *Client) ListPlatforms(opts models.ListPlatformsRequest) (*models.ListPlatformsResponse, error)
func (*Client) ListRacks ¶
func (c *Client) ListRacks(opts models.ListRacksRequest) (*models.ListRacksResponse, error)
func (*Client) ListRegions ¶
func (c *Client) ListRegions(opts models.ListRegionsRequest) (*models.ListRegionsResponse, error)
func (*Client) ListSiteGroups ¶
func (c *Client) ListSiteGroups(opts models.ListSiteGroupsRequest) (*models.ListSiteGroupsResponse, error)
func (*Client) ListSites ¶
func (c *Client) ListSites(opts models.ListSitesRequest) (*models.ListSitesResponse, error)
func (*Client) UpdateCable ¶
func (*Client) UpdateDevice ¶
func (*Client) UpdateInterface ¶
type NetboxAPI ¶
type NetboxAPI interface {
common.HTTPConnectable
// cables
GetCable(id int) (*models.Cable, error)
CreateCable(cable models.WriteableCable) (*models.Cable, error)
DeleteCable(id int) error
UpdateCable(cable models.WriteableCable) (*models.Cable, error)
// device-roles
ListDeviceRoles(opts models.ListDeviceRolesRequest) (*models.ListDeviceRolesResponse, error)
// device-types
ListDeviceTypes(opts models.ListDeviceTypesRequest) (*models.ListDeviceTypesResponse, error)
// devices
ListDevices(opts models.ListDevicesRequest) (*models.ListDevicesResponse, error)
GetDevice(id int) (*models.Device, error)
GetDeviceWithContext(id int) (*models.Device, error)
CreateDevice(dev models.WritableDeviceWithConfigContext) (*models.Device, error)
DeleteDevice(id int) error
UpdateDevice(dev models.WritableDeviceWithConfigContext) (*models.Device, error)
// interfaces
ListInterfaces(opts models.ListInterfacesRequest) (*models.ListInterfacesResponse, error)
UpdateInterface(interf models.WritableInterface, id int) (*models.Interface, error)
CreateInterface(interf models.WritableInterface) (*models.Interface, error)
DeleteInterface(id int) error
// platforms
ListPlatforms(opts models.ListPlatformsRequest) (*models.ListPlatformsResponse, error)
// racks
ListRacks(opts models.ListRacksRequest) (*models.ListRacksResponse, error)
// regions
ListRegions(opts models.ListRegionsRequest) (*models.ListRegionsResponse, error)
GetRegion(id int) (*models.Region, error)
// site groups
ListSiteGroups(opts models.ListSiteGroupsRequest) (*models.ListSiteGroupsResponse, error)
GetSiteGroup(id int) (*models.SiteGroup, error)
// sites
ListSites(opts models.ListSitesRequest) (*models.ListSitesResponse, error)
GetSite(id int) (*models.Site, error)
}
Click to show internal directories.
Click to hide internal directories.