veth

package
v0.0.0-...-68d2f45 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	HostRootPath string
	Runtime      ctypes.RuntimeInterface
	// contains filtered or unexported fields
}

Provider provides a mapping between containers and host network interfaces.

func (*Provider) ContainerID

func (p *Provider) ContainerID(interfaceName string) (string, error)

ContainerID returns the ID of the container that owns the given interface. Returns en empty string if the interface doesn't belong to a container.

func (*Provider) DiagnosticArchive

func (p *Provider) DiagnosticArchive(_ context.Context, archive types.ArchiveWriter) error

Jump to

Keyboard shortcuts

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