// PodSandboxStatus returns the status of the PodSandbox.
PodSandboxStatus returns the status of the PodSandbox.
// PodSandboxStatus returns the status of the PodSandbox .
func (p *PrivilegedRuntime) PodSandboxStatus(podSandboxID string) (*kubeapi.PodSandboxStatus, error) {
	if podSandboxID == "" {
		return nil, fmt.Errorf("podSandboxID cannot be empty")
	}
	request := &kubeapi.PodSandboxStatusRequest{
		PodSandboxId: podSandboxID,
	}
	logrus.Debugf("PodSandboxStatusRequest: %v", request)
	r, err := runtimeClient.PodSandboxStatus(context.Background(), request)
	logrus.Debugf("PodSandboxStatusResponse: %v", r)
	if err != nil {
		return nil, err
	}
	return r.Status, nil
}
func ( p * PrivilegedRuntime ) PodSandboxStatus ( podSandboxID string ) ( * kubeapi . PodSandboxStatus , error ) { if podSandboxID == " " { return nil , fmt . Errorf ( " " ) } request := & kubeapi . PodSandboxStatusRequest { PodSandboxId : podSandboxID , } logrus . Debugf ( " " , request ) r , err := runtimeClient . PodSandboxStatus ( context . Background ( ) , request ) logrus . Debugf ( " " , r ) if err != nil { return nil , err } return r . Status , nil }
PodSandboxStatus returns the status of the PodSandbox.
PodSandboxStatus returns the status of the PodSandbox .