cri

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsKeyValExistInLabels added in v1.0.0

func IsKeyValExistInLabels(labels map[string]string, key, val string) bool

Types

type ContainerResourceExecutor

type ContainerResourceExecutor struct {
	store.ContainerInfo
}

func NewContainerResourceExecutor

func NewContainerResourceExecutor() *ContainerResourceExecutor

func (*ContainerResourceExecutor) DeleteCheckpointIfNeed

func (c *ContainerResourceExecutor) DeleteCheckpointIfNeed(req interface{}) error

func (*ContainerResourceExecutor) GenerateHookRequest

func (c *ContainerResourceExecutor) GenerateHookRequest() interface{}

func (*ContainerResourceExecutor) GetMetaInfo

func (c *ContainerResourceExecutor) GetMetaInfo() string

func (*ContainerResourceExecutor) ParseContainer

func (c *ContainerResourceExecutor) ParseContainer(container *runtimeapi.Container) error

func (*ContainerResourceExecutor) ParseRequest

func (c *ContainerResourceExecutor) ParseRequest(req interface{}) (utils.CallHookPluginOperation, error)

func (*ContainerResourceExecutor) ResourceCheckPoint

func (c *ContainerResourceExecutor) ResourceCheckPoint(rsp interface{}) error

func (*ContainerResourceExecutor) String

func (c *ContainerResourceExecutor) String() string

func (*ContainerResourceExecutor) UpdateRequest added in v0.5.0

func (c *ContainerResourceExecutor) UpdateRequest(rsp interface{}, req interface{}) error

UpdateRequest will update ContainerResourceExecutor from hook response and then update CRI request.

type PodResourceExecutor

type PodResourceExecutor struct {
	store.PodSandboxInfo
}

func NewPodResourceExecutor

func NewPodResourceExecutor() *PodResourceExecutor

func (*PodResourceExecutor) DeleteCheckpointIfNeed

func (p *PodResourceExecutor) DeleteCheckpointIfNeed(req interface{}) error

func (*PodResourceExecutor) GenerateHookRequest

func (p *PodResourceExecutor) GenerateHookRequest() interface{}

func (*PodResourceExecutor) GetMetaInfo

func (p *PodResourceExecutor) GetMetaInfo() string

func (*PodResourceExecutor) ParsePod

func (p *PodResourceExecutor) ParsePod(podsandbox *runtimeapi.PodSandbox) error

func (*PodResourceExecutor) ParseRequest

func (p *PodResourceExecutor) ParseRequest(req interface{}) (utils.CallHookPluginOperation, error)

ParseRequest would

func (*PodResourceExecutor) ResourceCheckPoint

func (p *PodResourceExecutor) ResourceCheckPoint(response interface{}) error

func (*PodResourceExecutor) String

func (p *PodResourceExecutor) String() string

func (*PodResourceExecutor) UpdateRequest added in v0.5.0

func (p *PodResourceExecutor) UpdateRequest(rsp interface{}, req interface{}) error

UpdateRequest will update PodResourceExecutor from hook response and then update CRI request.

Jump to

Keyboard shortcuts

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