store

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteContainerInfo

func DeleteContainerInfo(containerUID string)

DeleteContainerInfo delete container checkpoint indexed by containerUID

func DeletePodSandboxInfo

func DeletePodSandboxInfo(podUID string)

DeletePodSandboxInfo delete pod checkpoint indexed by podUID

func WriteContainerInfo

func WriteContainerInfo(containerUID string, container *ContainerInfo) error

WriteContainerInfo returns

func WritePodSandboxInfo

func WritePodSandboxInfo(podUID string, pod *PodSandboxInfo) error

WritePodSandboxInfo checkpoints the pod level info

Types

type ContainerInfo

type ContainerInfo struct {
	*v1alpha1.ContainerResourceHookRequest
}

ContainerInfo is almost the same with v1alpha.ContainerResourceHookRequest

func GetContainerInfo

func GetContainerInfo(containerUID string) *ContainerInfo

func (*ContainerInfo) GetContainerResourceHookRequest

func (c *ContainerInfo) GetContainerResourceHookRequest() *v1alpha1.ContainerResourceHookRequest

type PodSandboxInfo

type PodSandboxInfo struct {
	*v1alpha1.PodSandboxHookRequest
}

PodSandboxInfo is almost the same with v1alpha.RunPodSandboxHookRequest

func GetPodSandboxInfo

func GetPodSandboxInfo(podUID string) *PodSandboxInfo

GetPodSandboxInfo returns sandbox info

func (*PodSandboxInfo) GetPodSandboxHookRequest added in v0.5.0

func (p *PodSandboxInfo) GetPodSandboxHookRequest() *v1alpha1.PodSandboxHookRequest

Jump to

Keyboard shortcuts

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