Documentation
¶
Overview ¶
Package catalogset indexes the compiled catalogue superset by source, so an org can be expanded and a skill reached by address. See docs/skill-catalogues.md.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
Source catalogmanifest.Source
Path string
Skills []string
}
Catalog is one compiled catalogue and the skills it actually offers.
type Duplicate ¶
type Duplicate struct {
Name string
Kept catalogmanifest.Source
Shadow catalogmanifest.Source
}
Duplicate is one name two catalogues offer with equal content. Divergent content is fatal instead. See docs/skill-catalogues.md.
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set is the compiled superset in manifest declaration order.
func Build ¶
func Build(entries []catalogmanifest.Catalog) (*Set, error)
Build reads each catalogue's skill directories. A skill is a directory carrying SKILL.md. See docs/skill-selectors.md.
func (*Set) Duplicates ¶
Duplicates rules on every name more than one catalogue offers: equal content dedupes with a note, divergent content is fatal and names both sources.
func (*Set) Owner ¶
Owner returns every catalogue under owner, in declaration order. The grant is open, so a repository added later needs no config change.