Skip to content

Introduce name filter in DevfileOptions #750

Closed
devfile/library
#130
@yangcao77

Description

@yangcao77

Which area this feature is related to?

/area library

Which functionality do you think we should add?

Why is this needed? Is your feature request related to a problem?
for #720

Detailed description:
introduce name filter in DevfileOptions, so that consumers can get a particular devfile entry with the entry name.

Describe the solution you'd like

A new field FilterByName will be introduced as the name filter.

common.DevfileOptions{
	FilterByName: string,
}

Just support the simplest case: if name is specified, return the particular entry, and return an empty list if not found (similar as other filters). if no name specified, return the list of entries that qualifies the filter defined.
we do not do any additional support to other specific cases, tools can customize the result as needed.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

Labels

area/libraryCommon devfile library for interacting with devfileskind/enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions