Documentation
¶
Index ¶
- type DB
- func (db *DB) AddPodNetns(pod string, netnsPath string)
- func (db *DB) GetPodName(netnsid int) string
- func (db *DB) GetPodNamespace(pod string) string
- func (db *DB) GetResources(ctx context.Context) <-chan []resourceapi.Device
- func (db *DB) RemovePodNetns(pod string)
- func (db *DB) Run(ctx context.Context) error
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 (*DB) AddPodNetns ¶ added in v0.1.1
func (*DB) GetPodName ¶ added in v0.1.1
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
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
Click to show internal directories.
Click to hide internal directories.