const (
InspectContainersEndpoint = "/containers"
)
CrioClient can get information from docker
type CrioClient struct {
// contains filtered or unexported fields
}
func New(socketPath string) (*CrioClient, error)
func (c CrioClient) ContainerKillByContainerID(ctx context.Context, containerID string) error
ContainerKillByContainerID kills container according to container id
func (c CrioClient) FormatContainerID(ctx context.Context, containerID string) (string, error)
FormatContainerID strips protocol prefix from the container ID
func (c CrioClient) GetLabelsFromContainerID(ctx context.Context, containerID string) (map[string]string, error)
GetLabelsFromContainerID returns the labels according to container ID
func (c CrioClient) GetPidFromContainerID(ctx context.Context, containerID string) (uint32, error)
GetPidFromContainerID fetches PID according to container id
func (c CrioClient) ListContainerIDs(ctx context.Context) ([]string, error)
ListContainerIDs lists all container IDs