configurator

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 14 Imported by: 8

Documentation

Index

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 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

Jump to

Keyboard shortcuts

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