macvlan

package
v0.1.0-beta.9 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(o *Options) (*types100.Interface, error)

func ModeFromString

func ModeFromString(s string) (netlink.MacvlanMode, error)

func ModeToString

func ModeToString(mode netlink.MacvlanMode) (string, error)

Types

type Options

type Options struct {
	Mode   string
	Master string
	MTU    int
	IfName string
	NetNS  ns.NetNS
	MAC    string
}

Jump to

Keyboard shortcuts

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