kubernetes: k8s.io/kubernetes/pkg/kubelet/cm/devicemanager/checkpoint Index | Files

package checkpoint

import "k8s.io/kubernetes/pkg/kubelet/cm/devicemanager/checkpoint"

Index

Package Files

checkpoint.go

type Data Uses

type Data struct {
    Data     checkpointData
    Checksum checksum.Checksum
}

Data holds checkpoint data and its checksum

func (*Data) GetData Uses

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

GetData returns device entries and registered devices

func (*Data) MarshalCheckpoint Uses

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

MarshalCheckpoint returns marshalled data

func (*Data) UnmarshalCheckpoint Uses

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

UnmarshalCheckpoint returns unmarshalled data

func (*Data) VerifyChecksum Uses

func (cp *Data) VerifyChecksum() error

VerifyChecksum verifies that passed checksum is same as calculated checksum

type DeviceManagerCheckpoint Uses

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

DeviceManagerCheckpoint defines the operations to retrieve pod devices

func New Uses

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

New returns an instance of Checkpoint

type PodDevicesEntry Uses

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

PodDevicesEntry connects pod information to devices

Package checkpoint imports 3 packages (graph) and is imported by 19 packages. Updated 2019-04-04. Refresh now. Tools for package owners.