# Functions
GetDefaultPhantomSubnets implements the.
GetPhantomSubnetSelector gets the location of the configuration file from an environment variable and returns the parsed configuration.
GetUnweightedSubnetList returns the list of subnets provided by the protobuf.
No description provided by the author
NewPhantomIPSelector - create object currently populated with a static map of generation number to SubnetConfig, but this may be loaded dynamically in the future.
SelectAddrFromSubnet - given a seed and a CIDR block choose an address.
SelectPhantom - select one phantom IP address based on shared secret.
SelectPhantomUnweighted - select one phantom IP address based on shared secret.
SelectPhantomWeighted - select one phantom IP address based on shared secret.
SubnetsFromTomlFile takes a path and parses the toml config file.
V4Only - a functor for transforming the subnet list to only include IPv4 subnets.
V6Only - a functor for transforming the subnet list to only include IPv6 subnets.
# Variables
ErrLegacyAddrSelectBug indicates that we have hit a corner case in a legacy address selection algorithm that causes phantom address selection to fail.
No description provided by the author
No description provided by the author
ErrMissingAddrs indicates that no subnets were provided with addresses to select from.
# Structs
No description provided by the author
PhantomIPSelector - Object for tracking current generation to SubnetConfig Mapping.
SubnetConfig - Configuration of subnets for Conjure to choose a Phantom out of.
# Type aliases
SubnetFilter - Filter IP subnets based on whatever to prevent specific subnets from
inclusion in choice.