vethwrapper

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package vethwrapper is a wrapper method for the ip.SetupVeth method

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Veth

type Veth interface {
	Setup(contVethName string, mtu int, contVethMac string, hostNS ns.NetNS) (net.Interface, net.Interface, error)
}

Veth is an interface created to make code unit testable. Both the veth version and mocked version implement the same interface

func NewSetupVeth

func NewSetupVeth() Veth

NewSetupVeth return a new veth object

Directories

Path Synopsis
Package mock_vethwrapper is a generated GoMock package.
Package mock_vethwrapper is a generated GoMock package.

Jump to

Keyboard shortcuts

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