cri

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerStatus

func ContainerStatus(client internalapi.RuntimeService, id, output string, tmplStr string, quiet bool) error

ContainerStatus sends a ContainerStatusRequest to the server, and parses the returned ContainerStatusResponse.

func ListContainers

func ListContainers(runtimeClient internalapi.RuntimeService, opts listOptions) error

Types

type CRITool

type CRITool struct {
	// contains filtered or unexported fields
}

func NewCRITool

func NewCRITool(ctx context.Context) (*CRITool, error)

func (*CRITool) ContainerStatus

func (ct *CRITool) ContainerStatus(id string) (*ContainerPodInfo, error)

func (*CRITool) FilterNamespace

func (ct *CRITool) FilterNamespace(ns string) bool

func (*CRITool) FilterNamespaceWithContainerId

func (ct *CRITool) FilterNamespaceWithContainerId(id string) bool

func (*CRITool) GetAllContainers

func (ct *CRITool) GetAllContainers() ([]*pb.Container, error)

func (*CRITool) GetLogPath

func (ct *CRITool) GetLogPath(id string) (string, error)

get log path of container id string : containerID

func (*CRITool) GetPidsRunningOnContainers

func (ct *CRITool) GetPidsRunningOnContainers() (map[uint32]struct{}, error)

type ContainerPodInfo

type ContainerPodInfo struct {
	PodUid  string
	PodName string
	PodNs   string
}

Jump to

Keyboard shortcuts

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