Documentation ¶
Index ¶
- func FindMatchingSubnet(subnets []*hyper_proto.Subnet, ipAddr net.IP) *hyper_proto.Subnet
- func GetNetworkEntries(info fm_proto.GetMachineInfoResponse) []fm_proto.NetworkEntry
- func PrintResolvConf(writer io.Writer, subnet *hyper_proto.Subnet) error
- func UpdateResolvConf(rootDir string, subnet *hyper_proto.Subnet) (bool, error)
- func WriteResolvConf(rootDir string, subnet *hyper_proto.Subnet) error
- type NetworkConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMatchingSubnet ¶
func FindMatchingSubnet(subnets []*hyper_proto.Subnet, ipAddr net.IP) *hyper_proto.Subnet
func GetNetworkEntries ¶
func GetNetworkEntries( info fm_proto.GetMachineInfoResponse) []fm_proto.NetworkEntry
func PrintResolvConf ¶
func PrintResolvConf(writer io.Writer, subnet *hyper_proto.Subnet) error
func UpdateResolvConf ¶
func UpdateResolvConf(rootDir string, subnet *hyper_proto.Subnet) (bool, error)
func WriteResolvConf ¶
func WriteResolvConf(rootDir string, subnet *hyper_proto.Subnet) error
Types ¶
type NetworkConfig ¶
type NetworkConfig struct { DefaultSubnet *hyper_proto.Subnet // contains filtered or unexported fields }
func Compute ¶
func Compute(machineInfo fm_proto.GetMachineInfoResponse, interfaces map[string]net.Interface, logger log.DebugLogger) (*NetworkConfig, error)
func (*NetworkConfig) PrintDebian ¶
func (netconf *NetworkConfig) PrintDebian(writer io.Writer) error
func (*NetworkConfig) Update ¶
func (netconf *NetworkConfig) Update(rootDir string, logger log.DebugLogger) (bool, error)
func (*NetworkConfig) UpdateDebian ¶
func (netconf *NetworkConfig) UpdateDebian(rootDir string) (bool, error)
func (*NetworkConfig) WriteDebian ¶
func (netconf *NetworkConfig) WriteDebian(rootDir string) error
Click to show internal directories.
Click to hide internal directories.