Documentation
¶
Index ¶
- type Attributes
- type Device
- type Filter
- type IPAddress
- type PollerProfile
- type Site
- type SiteGroup
- type Store
- func (store *Store) Devices(filter *Filter) ([]*Device, error)
- func (store *Store) IPAddresses(filter *Filter) ([]*IPAddress, error)
- func (store *Store) LookupIPAddress(tenant string, address string) (*Attributes, error)
- func (store *Store) LookupPollerProfile(name string) (*PollerProfile, error)
- func (store *Store) Refresh() error
- func (store *Store) SiteGroups(filter *Filter) ([]*SiteGroup, error)
- func (store *Store) Sites(filter *Filter) ([]*Site, error)
- func (store *Store) Tenants(filter *Filter) ([]*Tenant, error)
- func (store *Store) VirtualMachines(filter *Filter) ([]*VirtualMachine, error)
- type Tenant
- type VirtualMachine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶ added in v0.3.0
type Attributes struct { ID int64 Model string Name string Slug string IP string Role string Site string SiteGroup string Status string Type string Tenant string CF map[string]any }
Attributes is a generalized view on data of different Netbox models used for filtering and indexing
type Device ¶ added in v0.3.0
type Device struct { *models.DeviceWithConfigContext SiteGroup *SiteGroup }
func (*Device) Attributes ¶ added in v0.3.0
func (dev *Device) Attributes() (*Attributes, error)
type IPAddress ¶ added in v0.3.0
func (*IPAddress) Attributes ¶ added in v0.3.0
func (ipaddr *IPAddress) Attributes() (*Attributes, error)
type PollerProfile ¶ added in v0.3.0
type PollerProfile struct { Realm string Site string SiteGroup string Tenant string DiscoverySites []string DiscoveryTenants []string }
func (*PollerProfile) FilterExpressions ¶ added in v0.3.0
func (profile *PollerProfile) FilterExpressions() []string
type Site ¶ added in v0.3.0
func (*Site) Attributes ¶ added in v0.3.0
func (site *Site) Attributes() (*Attributes, error)
type SiteGroup ¶ added in v0.3.0
func (*SiteGroup) Attributes ¶ added in v0.3.0
func (sg *SiteGroup) Attributes() (*Attributes, error)
type Store ¶ added in v0.3.0
type Store struct {
// contains filtered or unexported fields
}
func NewStore ¶ added in v0.3.0
func NewStore(nc *client.NetboxClient) *Store
func (*Store) IPAddresses ¶ added in v0.3.0
func (*Store) LookupIPAddress ¶ added in v0.4.0
func (store *Store) LookupIPAddress(tenant string, address string) (*Attributes, error)
func (*Store) LookupPollerProfile ¶ added in v0.4.0
func (store *Store) LookupPollerProfile(name string) (*PollerProfile, error)
func (*Store) SiteGroups ¶ added in v0.3.0
func (*Store) VirtualMachines ¶ added in v0.3.0
func (store *Store) VirtualMachines(filter *Filter) ([]*VirtualMachine, error)
type Tenant ¶ added in v0.3.0
func (*Tenant) Attributes ¶ added in v0.3.0
func (t *Tenant) Attributes() (*Attributes, error)
type VirtualMachine ¶ added in v0.3.0
type VirtualMachine struct { *models.VirtualMachineWithConfigContext SiteGroup *SiteGroup }
func (*VirtualMachine) Attributes ¶ added in v0.3.0
func (vm *VirtualMachine) Attributes() (*Attributes, error)
func (*VirtualMachine) PollerProfile ¶ added in v0.3.0
func (vm *VirtualMachine) PollerProfile() (*PollerProfile, error)
Click to show internal directories.
Click to hide internal directories.