// ContainerStatus returns status of the container.
ContainerStatus returns status of the container.
// ContainerStatus returns status of the container .
func (p *PrivilegedRuntime) ContainerStatus(containerID string) (*kubeapi.ContainerStatus, error) {
	if containerID == "" {
		return nil, fmt.Errorf("containerID cannot be empty")
	}
	request := &kubeapi.ContainerStatusRequest{
		ContainerId: containerID,
	}
	logrus.Debugf("ContainerStatusRequest: %v", request)
	r, err := runtimeClient.ContainerStatus(context.Background(), request)
	if err != nil {
		return nil, err
	}
	logrus.Debugf("ContainerStatusResponse: %v", r)
	return r.Status, nil
}
func ( p * PrivilegedRuntime ) ContainerStatus ( containerID string ) ( * kubeapi . ContainerStatus , error ) { if containerID == " " { return nil , fmt . Errorf ( " " ) } request := & kubeapi . ContainerStatusRequest { ContainerId : containerID , } logrus . Debugf ( " " , request ) r , err := runtimeClient . ContainerStatus ( context . Background ( ) , request ) if err != nil { return nil , err } logrus . Debugf ( " " , r ) return r . Status , nil }
ContainerStatus returns status of the container.
ContainerStatus returns status of the container .