Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressType ¶
type AddressType int
AddressType represents the type of an IP address, as recorded in the ip_address_type lookup table.
const ( AddressTypeIPv4 AddressType = iota AddressTypeIPv6 )
func MarshallAddressType ¶
func MarshallAddressType(addressType corenetwork.AddressType) AddressType
MarshallAddressType converts an address type to a db address type id.
type ConfigType ¶
type ConfigType int
ConfigType represents the means via which an IP address is configured, as recorded in the ip_address_config_type lookup table.
const ( ConfigTypeUnknown ConfigType = iota ConfigTypeDHCP ConfigTypeDHCPv6 ConfigTypeSLAAC ConfigTypeStatic ConfigTypeManual ConfigTypeLoopback )
func MarshallConfigType ¶
func MarshallConfigType(configType corenetwork.AddressConfigType) ConfigType
MarshallConfigType converts an IP address config type to a db config type id.
type Origin ¶
type Origin int
Origin represents the origin of an IP address, as recorded in the ip_address_origin lookup table.
func MarshallOrigin ¶
func MarshallOrigin(origin corenetwork.Origin) Origin
MarshallOrigin converts an address origin to a db origin id.
type Scope ¶
type Scope int
Scope represents the scope of an IP address, as recorded in the ip_address_scope lookup table.
func MarshallScope ¶
func MarshallScope(scope corenetwork.Scope) Scope
MarshallScope converts an address scope to a db scope id.