Documentation
¶
Overview ¶
Package label handles part label files
Index ¶
Constants ¶
View Source
const ( // LabelsFilename is the name of the labels marker file. LabelsFilename = ".labels.yaml" // LabelsFilenameLegacy is the old (ace-dt version<=0.25.4) name of the labels marker file. LabelsFilenameLegacy = ".labels.yml" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is a label provider, keeping track of file label associations in a nested directory structure.
func NewProviderFromFS ¶
NewProviderFromFS loads all labels from .labels.yaml files found in the specified basePath and subdirs, recursively. if a directory does not contain a ".labels.yaml" file, recursion stops for that path.
func (*Provider) LabelsForPart ¶
LabelsForPart returns the labels for a given part by name.
Click to show internal directories.
Click to hide internal directories.