hostlink

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultNetlinkWrapper struct{}

func (*DefaultNetlinkWrapper) LinkByIndex

func (d *DefaultNetlinkWrapper) LinkByIndex(index int) (netlink.Link, error)

func (*DefaultNetlinkWrapper) LinkByName

func (d *DefaultNetlinkWrapper) LinkByName(name string) (netlink.Link, error)
type HostLink struct {
	// contains filtered or unexported fields
}

func (*HostLink) Index

func (h *HostLink) Index() int

func (*HostLink) Name

func (h *HostLink) Name() string
type Link interface {
	Index() int
	Name() string
}

type LinkFactory

type LinkFactory interface {
	NewLinkWithIndex(index int) (Link, error)
	NewLinkWithName(name string) (Link, error)
}

func NewHostLinkFactory

func NewHostLinkFactory() LinkFactory
type NetlinkWrapper interface {
	LinkByIndex(index int) (netlink.Link, error)
	LinkByName(name string) (netlink.Link, error)
}

Directories

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

Jump to

Keyboard shortcuts

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