Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddToBridgeError ¶
AddToBridgeError is returned if an error occurs while adding an interface to a bridge
func (AddToBridgeError) Error ¶
func (err AddToBridgeError) Error() string
type BridgeDetectionError ¶
BridgeDetectionError is returned if an error occurs while creating a bridge
func (BridgeDetectionError) Error ¶
func (err BridgeDetectionError) Error() string
type ConfigureDefaultGWError ¶
ConfigureDefaultGWError is returned if the default gateway cannot be updated
func (ConfigureDefaultGWError) Error ¶
func (err ConfigureDefaultGWError) Error() string
type ConfigureLinkError ¶
type ConfigureLinkError struct { Cause error Role string Interface *net.Interface IntendedIP net.IP IntendedSubnet *net.IPNet }
ConfigureLinkError is returned if configuring a link fails
func (ConfigureLinkError) Error ¶
func (err ConfigureLinkError) Error() string
type DeleteLinkError ¶
DeleteLinkError is returned if an interface cannot be succesfully destroyed
func (DeleteLinkError) Error ¶
func (err DeleteLinkError) Error() string
type FindLinkError ¶
type FindLinkError struct { Cause error // may be nil if no error occurred other than the link not existing Role string Name string }
FindLinkError is returned if an expected interface cannot be found inside the container
func (FindLinkError) Error ¶
func (err FindLinkError) Error() string
type Host ¶
type Host struct { Veth interface { Create(hostIfcName, containerIfcName string) (*net.Interface, *net.Interface, error) } Link interface { SetUp(intf *net.Interface) error SetMTU(intf *net.Interface, mtu int) error SetNs(intf *net.Interface, fd int) error InterfaceByName(name string) (*net.Interface, bool, error) } Bridge interface { Create(bridgeName string, ip net.IP, subnet *net.IPNet) (*net.Interface, error) Add(bridge, slave *net.Interface) error Destroy(bridgeName string) error } FileOpener interface { Open(path string) (*os.File, error) } }
type LinkUpError ¶
LinkUpError is returned if brinding an interface up fails
func (LinkUpError) Error ¶
func (err LinkUpError) Error() string
type SetNsFailedError ¶
func (SetNsFailedError) Error ¶
func (err SetNsFailedError) Error() string
type VethPairCreationError ¶
VethPairCreationError is returned if creating a virtual ethernet pair fails
func (VethPairCreationError) Error ¶
func (err VethPairCreationError) Error() string
Click to show internal directories.
Click to hide internal directories.