linuxcalls

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package linuxcalls contains wrappers over Netlink APIs related to Linux VETH interfaces or to Linux interfaces in general.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInterfaceIP

func AddInterfaceIP(ifName string, addr *net.IPNet) error

AddInterfaceIP is a mock implementation of the real AddInterfaceIp from ip_linuxcalls.go, doing absolutely nothing.

func AddVethInterface

func AddVethInterface(ifName, peerIfName string) error

AddVethInterface is a mock implementation of the real AddVethInterface from veth_linuxcalls.go, doing absolutely nothing.

func CompareNamespaces

CompareNamespaces is a mock implementation of the real CompareNamespaces from ns_linuxcalls.go, doing absolutely nothing.

func DelInterfaceIP

func DelInterfaceIP(ifName string, addr *net.IPNet) error

DelInterfaceIP is a mock implementation of the real DelInterfaceIp from ip_linuxcalls.go, doing absolutely nothing.

func DelVethInterface

func DelVethInterface(ifName, peerIfName string) error

DelVethInterface is a mock implementation of the real DelVethInterface from veth_linuxcalls.go, doing absolutely nothing.

func GetDefaultNamespace

func GetDefaultNamespace() *intf.LinuxInterfaces_Interface_Namespace

GetDefaultNamespace is a mock implementation of the real GetDefaultNamespace from ns_linuxcalls.go, doing absolutely nothing.

func GetInterfaceType

func GetInterfaceType(ifName string) (string, error)

GetInterfaceType is a mock implementation of the real GetInterfaceType from link_linuxcalls.go, doing absolutely nothing.

func GetVethPeerName

func GetVethPeerName(ifName string) (string, error)

GetVethPeerName is a mock implementation of the real GetVethPeerName from veth_linuxcalls.go, doing absolutely nothing.

func InterfaceAdminDown

func InterfaceAdminDown(ifName string) error

InterfaceAdminDown is a mock implementation of the real InterfaceAdminDown from admin_linuxcalls.go, doing absolutely nothing.

func InterfaceAdminUp

func InterfaceAdminUp(ifName string) error

InterfaceAdminUp is a mock implementation of the real InterfaceAdminUp from admin_linuxcalls.go, doing absolutely nothing.

func InterfaceExists

func InterfaceExists(ifName string) (bool, error)

InterfaceExists is a mock implementation of the real InterfaceExists from link_linuxcalls.go, doing absolutely nothing.

func NamespaceToStr

func NamespaceToStr(namespace *intf.LinuxInterfaces_Interface_Namespace) string

NamespaceToStr is a mock implementation of the real NamespaceToStr from ns_linuxcalls.go, doing absolutely nothing.

func SetInterfaceMTU

func SetInterfaceMTU(ifName string, mtu int) error

SetInterfaceMTU is a mock implementation of the real SetInterfaceMTU from ip_linuxcalls.go, doing absolutely nothing.

func SetInterfaceMac

func SetInterfaceMac(ifName string, macAddress string) error

SetInterfaceMac is a mock implementation of the real SetInterfaceMac from mac_linuxcalls.go, doing absolutely nothing.

func SetInterfaceNamespace

func SetInterfaceNamespace(ctx *NamespaceMgmtCtx, ifName string, namespace *intf.LinuxInterfaces_Interface_Namespace) error

SetInterfaceNamespace is a mock implementation of the real SetInterfaceNamespace from ns_linuxcalls.go, doing absolutely nothing.

func SwitchNamespace

func SwitchNamespace(ctx *NamespaceMgmtCtx, namespace *intf.LinuxInterfaces_Interface_Namespace) (revert func(), err error)

SwitchNamespace is a mock implementation of the real SwitchNamespace from ns_linuxcalls.go, doing absolutely nothing.

Types

type NamespaceMgmtCtx

type NamespaceMgmtCtx struct {
}

NamespaceMgmtCtx is a mock type definition of the real NamespaceMgmtCtx from ns_linuxcalls.go.

func NewNamespaceMgmtCtx

func NewNamespaceMgmtCtx() *NamespaceMgmtCtx

NewNamespaceMgmtCtx is a mock implementation of the real NewNamespaceMgmtCtx from ns_linuxcalls.go, doing absolutely nothing.

Jump to

Keyboard shortcuts

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