Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAssetNetworks ¶
GetAssetNetworks return the CIDR network that the IP is in
func IsInHomeNet ¶
IsInHomeNet checks if IP is in HOME_NET
func IsWhiteListed ¶ added in v0.1.9
IsWhiteListed checks if IP is whitelisted
Types ¶
type NetworkAsset ¶ added in v0.4.1
type NetworkAsset struct { Name string `json:"name"` Cidr string `json:"cidr"` Value int `json:"value"` Whitelisted bool `json:"whitelisted"` }
NetworkAsset represents a single entry in assets_*.json config file
type NetworkAssets ¶ added in v0.4.1
type NetworkAssets struct {
NetworkAssets []NetworkAsset `json:"assets"`
}
NetworkAssets represents collection of NetworkAsset
Click to show internal directories.
Click to hide internal directories.