inventory

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func New

func New() *DB

func (*DB) AddPodNetNs added in v0.7.0

func (db *DB) AddPodNetNs(pod string, netNsPath string)

func (*DB) GetDevice added in v0.7.0

func (db *DB) GetDevice(deviceName string) (resourceapi.Device, bool)

func (*DB) GetNetInterfaceName added in v0.7.0

func (db *DB) GetNetInterfaceName(deviceName string) (string, error)

func (*DB) GetPodNetNs added in v0.7.0

func (db *DB) GetPodNetNs(pod string) string

GetPodNamespace allows to get the Pod network namespace

func (*DB) GetResources

func (db *DB) GetResources(ctx context.Context) <-chan []resourceapi.Device

func (*DB) RemovePodNetNs added in v0.7.0

func (db *DB) RemovePodNetNs(pod string)

func (*DB) Run

func (db *DB) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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