// StopPodSandbox stops any running process
StopPodSandbox stops any running process
// StopPodSandbox stops any running process
func (p *PrivilegedRuntime) StopPodSandbox(podSandboxID string) error {
	if podSandboxID == "" {
		return fmt.Errorf("podSandboxID cannot be empty")
	}
	request := &kubeapi.StopPodSandboxRequest{PodSandboxId: podSandboxID}
	logrus.Debugf("StopPodSandboxRequest: %v", request)
	r, err := runtimeClient.StopPodSandbox(context.Background(), request)
	logrus.Debugf("StopPodSandboxResponse: %v", r)
	if err != nil {
		return err
	}
	fmt.Printf("Stopped sandbox %s\n", podSandboxID)
	return nil
}
func ( p * PrivilegedRuntime ) StopPodSandbox ( podSandboxID string ) error { if podSandboxID == " " { return fmt . Errorf ( " " ) } request := & kubeapi . StopPodSandboxRequest { PodSandboxId : podSandboxID } logrus . Debugf ( " " , request ) r , err := runtimeClient . StopPodSandbox ( context . Background ( ) , request ) logrus . Debugf ( " " , r ) if err != nil { return err } fmt . Printf ( " \n " , podSandboxID ) return nil }
StopPodSandbox stops any running process
StopPodSandbox stops any running process