func filterVolumes(candidates []*api.Volume, filters ...func(*api.Volume) bool) []*api.Volume {
    result := []*api.Volume{}
    for _, c := range candidates {
        match := true
        for _, f := range filters {