Documentation ¶
Overview ¶
Package search provides search features for Helm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNoChart = errors.New("no such chart")
ErrNoChart indicates that a chart is not in the chart cache.
Functions ¶
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index is a searchable index of chart information.
func NewIndex ¶
func NewIndex(cfg *config.Configfile, cachedir string) *Index
NewIndex creats a new Index.
NewIndex indexes all of the chart tables configured in the config.yaml file. For that reason, it may cause substantial overhead on a large set of repos.
func (*Index) Chart ¶
Get the *Chartfile for a chart that was found during search.
This is a convenience method for retrieving a cached chart that was located during search indexing.
func (*Index) Search ¶
Search searches an index for the given term.
Threshold indicates the maximum score a term may have before being marked irrelevant. (Low score means higher relevance. Golf, not bowling.)
If regexp is true, the term is treated as a regular expression. Otherwise, term is treated as a literal string.
func (*Index) SearchLiteral ¶
SearchLiteral does a literal string search (no regexp).