inventory

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: Apache-2.0 Imports: 23 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.1.1

func (db *DB) AddPodNetns(pod string, netnsPath string)

func (*DB) GetPodName added in v0.1.1

func (db *DB) GetPodName(netnsid int) string

GetPodName allows to get the Pod name from the namespace Id that comes in the link id from the veth pair interface

func (*DB) GetPodNamespace added in v0.4.0

func (db *DB) GetPodNamespace(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.1.1

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