Class Locate
java.lang.Object
com.suse.salt.netapi.calls.modules.Locate
salt.modules.locate
Module for using the mlocate utilities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAll possible options for "locate" method.static classLocate module result object -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlocate(String pattern, Optional<String> database, Optional<Integer> limit, Optional<Locate.LocateOpts> options) Performs a file lookup.static LocalCall<Locate.Stats> stats()Returns statistics about the locate database.updatedb()Updates the locate database.version()Returns the version of locate.
-
Field Details
-
VERSION
-
UPDATEDB
-
STATS
-
-
Constructor Details
-
Locate
public Locate()
-
-
Method Details
-
version
-
updatedb
-
stats
Returns statistics about the locate database.- Returns:
- The
LocalCallobject to make the call
-
locate
public static LocalCall<List<String>> locate(String pattern, Optional<String> database, Optional<Integer> limit, Optional<Locate.LocateOpts> options) Performs a file lookup. Valid options (and their defaults) are:- basename=False
- count=False
- existing=False
- follow=True
- ignore=False
- nofollow=False
- wholename=True
- regex=False
- Parameters:
pattern- The pattern to searchdatabase- Replace the default database.limit- Set the maximum number of results.options- More options to mofify the search.- Returns:
- The
LocalCallobject to make the call
-