// ListContainers lists all containers by filters.
ListContainers lists all containers by filters.
// ListContainers lists all containers by filters .
func (p *PrivilegedRuntime) ListContainers(filter *kubeapi.ContainerFilter) ([]*kubeapi.Container, error) {
	request := &kubeapi.ListContainersRequest{
		Filter: filter,
	}
	logrus.Debugf("ListContainerRequest: %v", request)
	r, err := runtimeClient.ListContainers(context.Background(), request)
	if err != nil {
		return nil, err
	}
	logrus.Debugf("ListContainerResponse: %v", r)
	return r.Containers, nil
}
func ( p * PrivilegedRuntime ) ListContainers ( filter * kubeapi . ContainerFilter ) ( [ ] * kubeapi . Container , error ) { request := & kubeapi . ListContainersRequest { Filter : filter , } logrus . Debugf ( " " , request ) r , err := runtimeClient . ListContainers ( context . Background ( ) , request ) if err != nil { return nil , err } logrus . Debugf ( " " , r ) return r . Containers , nil }
ListContainers lists all containers by filters.
ListContainers lists all containers by filters .