fuchsia.sys.index

PROTOCOLS

ComponentIndex

Defined in fuchsia.sys.index/index.fidl

ComponentIndex provides search and indexing interfaces for components.

FuzzySearch

Returns a list of fuchsia-pkg URL components that matches the input string based on fuzzy matching.

The input string must be a single alphanumeric word with optional ‘_’ and ‘-’ characters -- the allowed character set of a component name. Additionally, the forward slash ‘/’ is allowed, to match URI path segments. Period '.' is also allowed, to match file extensions.

There is no support for globbing.

Returns an empty list if there are no matches, or if needle is empty.

Request

NameType
needle string

Response

NameType
result ComponentIndex_FuzzySearch_Result

STRUCTS

ComponentIndex_FuzzySearch_Response

Defined in fuchsia.sys.index/generated

NameTypeDescriptionDefault
uris vector<string> No default

ENUMS

FuzzySearchError

Type: uint32

Defined in fuchsia.sys.index/index.fidl

Errors that the FuzzySearch interface presents.

NameValueDescription
MALFORMED_INPUT 1

UNIONS

ComponentIndex_FuzzySearch_Result

Defined in fuchsia.sys.index/generated

NameTypeDescription
response ComponentIndex_FuzzySearch_Response
err FuzzySearchError