rpcsrv

package
v0.0.0-...-c0b4068 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RPCSrv

func RPCSrv(sock string)

RPCSrv listens for container UIDs and returns info about that container.

Types

type InfoSrv

type InfoSrv struct {
}

InfoSrv is the base type that needs to be exported for RPC to work.

func (InfoSrv) GetContainerInfo

func (g InfoSrv) GetContainerInfo(containerID *string, reply *[]byte) error

GetContainerInfo is the RPC-exported method that returns docker or crictl info about a container.

func (InfoSrv) GetContainers

func (g InfoSrv) GetContainers(minContainerAge string, reply *[]byte) error

GetContainers is the RPC-exported method that returns a list of running containers from crictl.

func (InfoSrv) GetRuncInfo

func (g InfoSrv) GetRuncInfo(containerID *string, reply *[]byte) error

GetRuncInfo is the RPC-exported method that returns runc info about a container.

Jump to

Keyboard shortcuts

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