data

package
v0.0.0-...-20b731c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAliasedNetworks

func GetAliasedNetworks(conf *config.Configuration) ([]*net.IPNet, error)

func GetBlacklist

func GetBlacklist(blacklistDir string) (*blacklist.NetworkBlacklist, error)

func GetBloomFilter

func GetBloomFilter(conf *config.Configuration) (*bloom.BloomFilter, error)

func GetCandidatePingResults

func GetCandidatePingResults(pingResultsDir string) ([]*net.IP, error)

func GetCleanPingResults

func GetCleanPingResults(resultsDir string) ([]*net.IP, error)

func GetMostRecentFilePathFromDir

func GetMostRecentFilePathFromDir(candidateDir string) (string, error)

func GetMostRecentTargetNetworkString

func GetMostRecentTargetNetworkString(conf *config.Configuration) (string, error)

func GetProbabilisticAddressModel

func GetProbabilisticAddressModel(modelDir string) (*modeling.ProbabilisticAddressModel, error)

func GetScanResultsNetworkRanges

func GetScanResultsNetworkRanges(scanResultsDir string) ([]*net.IPNet, error)

func LoadBloomFilterFromOutput

func LoadBloomFilterFromOutput(conf *config.Configuration) (*bloom.BloomFilter, error)

func PushFileToS3

func PushFileToS3(
	localPath,
	remotePath,
	bucketName,
	awsRegion,
	awsAccessKey,
	awsSecretKey string,
) error

func PushFileToS3FromConfig

func PushFileToS3FromConfig(localPath string, remotePath string, conf *config.Configuration) error

func UpdateAliasedNetworks

func UpdateAliasedNetworks(nets []*net.IPNet, filePath string)

func UpdateBlacklist

func UpdateBlacklist(blacklist *blacklist.NetworkBlacklist, filePath string)

func UpdateBloomFilter

func UpdateBloomFilter(filter *bloom.BloomFilter, filePath string)

func UpdateCandidatePingResults

func UpdateCandidatePingResults(ips []*net.IP, filePath string)

func UpdateCleanPingResults

func UpdateCleanPingResults(addrs []*net.IP, filePath string)

func UpdateProbabilisticAddressModel

func UpdateProbabilisticAddressModel(model *modeling.ProbabilisticAddressModel, filePath string)

func UpdateScanResultsNetworkRanges

func UpdateScanResultsNetworkRanges(networks []*net.IPNet, filePath string)

func WriteMostRecentTargetNetwork

func WriteMostRecentTargetNetwork(toWrite *net.IPNet, conf *config.Configuration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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