type FilterFunc … // PrefixFilter discards all entries whose mount points do not start with, or // are equal to the path specified in prefix. The prefix path must be absolute, // have all symlinks resolved, and cleaned (i.e. no extra slashes or dots). // // PrefixFilter treats prefix as a path, not a partial prefix, which means that // given "/foo", "/foo/bar" and "/foobar" entries, PrefixFilter("/foo") returns // "/foo" and "/foo/bar", and discards "/foobar". func PrefixFilter(prefix string) FilterFunc { … } // SingleEntryFilter looks for a specific entry. func SingleEntryFilter(mp string) FilterFunc { … } // ParentsFilter returns all entries whose mount points // can be parents of a path specified, discarding others. // // For example, given /var/lib/docker/something, entries // like /var/lib/docker, /var and / are returned. func ParentsFilter(path string) FilterFunc { … } // FSTypeFilter returns all entries that match provided fstype(s). func FSTypeFilter(fstype ...string) FilterFunc { … }