checkpoint

package
v1.21.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Data     checkpointData
	Checksum checksum.Checksum
}

Data holds checkpoint data and its checksum

func (*Data) GetData

func (cp *Data) GetData() ([]PodDevicesEntry, map[string][]string)

GetData returns device entries and registered devices

func (*Data) MarshalCheckpoint

func (cp *Data) MarshalCheckpoint() ([]byte, error)

MarshalCheckpoint returns marshalled data

func (*Data) UnmarshalCheckpoint

func (cp *Data) UnmarshalCheckpoint(blob []byte) error

UnmarshalCheckpoint returns unmarshalled data

func (*Data) VerifyChecksum

func (cp *Data) VerifyChecksum() error

VerifyChecksum verifies that passed checksum is same as calculated checksum

type DeviceManagerCheckpoint

type DeviceManagerCheckpoint interface {
	checkpointmanager.Checkpoint
	GetData() ([]PodDevicesEntry, map[string][]string)
}

DeviceManagerCheckpoint defines the operations to retrieve pod devices

func New

func New(devEntries []PodDevicesEntry,
	devices map[string][]string) DeviceManagerCheckpoint

New returns an instance of Checkpoint

type DevicesPerNUMA added in v1.20.0

type DevicesPerNUMA map[int64][]string

DevicesPerNUMA represents device ids obtained from device plugin per NUMA node id

func NewDevicesPerNUMA added in v1.20.0

func NewDevicesPerNUMA() DevicesPerNUMA

NewDevicesPerNUMA is a function that creates DevicesPerNUMA map

func (DevicesPerNUMA) Devices added in v1.20.0

func (dev DevicesPerNUMA) Devices() sets.String

Devices is a function that returns all device ids for all NUMA nodes and represent it as sets.String

type PodDevicesEntry

type PodDevicesEntry struct {
	PodUID        string
	ContainerName string
	ResourceName  string
	DeviceIDs     DevicesPerNUMA
	AllocResp     []byte
}

PodDevicesEntry connects pod information to devices

Jump to

Keyboard shortcuts

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