types

package
v0.0.0-...-cdf4838 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Hash         string
	List         []string
	ResourceName v1.ResourceName
}

func NewDevice

func NewDevice(deviceList []string, resourceName v1.ResourceName) *Device

func (*Device) Equals

func (d *Device) Equals(o *Device) bool

type PodContainer

type PodContainer struct {
	Namespace string
	Name      string
	Container string
}

func (*PodContainer) Pod

func (pc *PodContainer) Pod() string

func (*PodContainer) String

func (pc *PodContainer) String() string

type PodInfo

type PodInfo struct {
	Namespace string
	Name      string

	ContainerDeviceMap map[string]*Device
}

func NewPI

func NewPI(namespace, name string) *PodInfo

func NewPIFromRaw

func NewPIFromRaw(key, val []byte) (*PodInfo, error)

func (*PodInfo) Key

func (i *PodInfo) Key() []byte

func (*PodInfo) SetVal

func (i *PodInfo) SetVal(val []byte) error

func (*PodInfo) Val

func (i *PodInfo) Val() []byte

Jump to

Keyboard shortcuts

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