// ListPodSandbox returns a list of Sandbox.
ListPodSandbox returns a list of Sandbox.
// ListPodSandbox returns a list of Sandbox .
func (u *UnikernelRuntime) ListPodSandbox(filter *kubeapi.PodSandboxFilter) ([]*kubeapi.PodSandbox, error) {
	glog.V(5).Infof("Unikernel: ListPodSandbox with filter %+v", filter)
	allSandboxes, err := u.sandboxStore.List()
	if err != nil {
		return nil, fmt.Errorf("list sandbox failed: %v", err)
	}
	var sandboxes []*kubeapi.PodSandbox
	for _, sbInStore := range allSandboxes {
		sandboxes = append(sandboxes, toCRISandbox(sbInStore))
	}
	sandboxes = u.filterCRISandboxes(sandboxes, filter)
	return sandboxes, nil
}
func ( u * UnikernelRuntime ) ListPodSandbox ( filter * kubeapi . PodSandboxFilter ) ( [ ] * kubeapi . PodSandbox , error ) { glog . V ( 5 ) . Infof ( " " , filter ) allSandboxes , err := u . sandboxStore . List ( ) if err != nil { return nil , fmt . Errorf ( " " , err ) } var sandboxes [ ] * kubeapi . PodSandbox for _ , sbInStore := range allSandboxes { sandboxes = append ( sandboxes , toCRISandbox ( sbInStore ) ) } sandboxes = u . filterCRISandboxes ( sandboxes , filter ) return sandboxes , nil }
ListPodSandbox returns a list of Sandbox.
ListPodSandbox returns a list of Sandbox .