Documentation
¶
Overview ¶
Package pack manages reusable expert groupings for council reviews.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ListResult ¶
ListResult contains the result of listing packs, including any warnings.
func ListWithWarnings ¶
func ListWithWarnings() (*ListResult, error)
ListWithWarnings returns all custom packs with any warnings about files that couldn't be loaded.
type Member ¶
type Member struct {
ID string `yaml:"id" json:"id"`
Blocking bool `yaml:"blocking,omitempty" json:"blocking,omitempty"`
}
Member represents an expert in a pack with their blocking status.
type Pack ¶
type Pack struct {
Name string `yaml:"name" json:"name"`
Description string `yaml:"description,omitempty" json:"description,omitempty"`
Members []Member `yaml:"members" json:"members"`
Source string `yaml:"-" json:"source,omitempty"` // "builtin" or ""
}
Pack represents a reusable group of experts.
func ListAll ¶
ListAll returns all packs: built-in merged with custom, sorted by name. Custom packs override built-in packs with the same name.
func (*Pack) RemoveMember ¶
RemoveMember removes an expert from the pack. Returns an error if not found.
type ResolvedMember ¶
ResolvedMember pairs an expert with their blocking status in a pack.
Click to show internal directories.
Click to hide internal directories.