Versions in this module Expand all Collapse all v1 v1.1.0 Sep 12, 2024 v1.0.1 Sep 11, 2024 Changes in this version + const GroupTypeDeviceTag + const GroupTypeInterfaceTag + const GroupTypeService + const InetFamilyAny + const InetFamilyInet + const InetFamilyInet6 + var ErrorBadFilterLabel = errors.New("bad label for filter provided (must start with 'netbox_')") + var ErrorBadFilterMatch = errors.New("bad filter match provided") + var ErrorBadGroupType = errors.New("bad group type value") + var ErrorBadInetFamily = errors.New("bad inet_family value provided") + var ErrorBadPort = errors.New("bad port value") + var ErrorBadScanInterval = errors.New("failed to parse scan_interval") + var ErrorBaseURLMissingTLS = errors.New("netbox_base_url must start with https and support tls") + var ErrorDuplicateFile = errors.New("duplicate file name in configuration") + var ErrorMissingFile = errors.New("missing config file path") + var ErrorMissingRequired = errors.New("missing one or more required config values") + var ErrorParsingFile = errors.New("failed to parse config file") + var ErrorReadingFile = errors.New("failed to read config file") + type Config struct + AllowInsecure bool + BaseURL string + Groups []*Group + ScanInterval time.Duration + ScanIntervalString string + Token string + func ReadConfigFile(file string) (*Config, error) + type Filter struct + Label string + Match string + Negate bool + type Flags struct + AllAddresses *bool + IncludeVMs *bool + InetFamily *string + type Group struct + File string + Filters []*Filter + Flags Flags + Labels model.LabelSet + Match string + Port *int + ScanInterval time.Duration + ScanIntervalString string + Type string + func (group *Group) FiltersMatch(target *targetgroup.Group) bool