asset

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2018 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAssetNetworks

func GetAssetNetworks(ip string) []string

GetAssetNetworks return the CIDR network that the IP is in

func GetName

func GetName(ip string) string

GetName returns the asset name

func GetValue

func GetValue(ip string) int

GetValue returns asset value

func Init

func Init(confDir string) error

Init read assets from all asset_* files in confDir

func IsInHomeNet

func IsInHomeNet(ip string) (bool, error)

IsInHomeNet checks if IP is in HOME_NET

func IsWhiteListed added in v0.1.9

func IsWhiteListed(ip string) (bool, error)

IsWhiteListed checks if IP is whitelisted

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL