Documentation ¶
Index ¶
- type ExternalResolutionSummary
- type ModuleLabel
- type Product
- type ResolutionLogger
- type RuleResolution
- func (rr *RuleResolution) AddBuiltin(moduleName string)
- func (rr *RuleResolution) AddDep(deps ...string)
- func (rr *RuleResolution) AddExternal(moduleNames []string, mrr *swift.ModuleResolutionResult)
- func (rr *RuleResolution) AddHTTPArchive(moduleName string, modules swift.Modules)
- func (rr *RuleResolution) AddLocal(moduleName string, frs []resolve.FindResult)
- func (rr *RuleResolution) AddUnresolved(moduleNames ...string)
- func (rr *RuleResolution) Summary() RuleResolutionSummary
- type RuleResolutionSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModuleLabel ¶
type ResolutionLogger ¶
type ResolutionLogger interface { // Log the rule resolution Log(rr *RuleResolution) error // Flush the log Flush() error }
func NewLoggerFromWriter ¶
func NewLoggerFromWriter(w io.Writer) ResolutionLogger
func NewNoopLogger ¶
func NewNoopLogger() ResolutionLogger
type RuleResolution ¶
type RuleResolution struct { From label.Label Rule *rule.Rule Imports []string Builtins mapset.Set[string] LocalRes map[string][]resolve.FindResult ExtResModuleNames []string ExtResResult *swift.ModuleResolutionResult HTTPArchiveRes map[string]swift.Modules UnresModuleNames mapset.Set[string] Deps mapset.Set[string] }
func NewRuleResolution ¶
func (*RuleResolution) AddBuiltin ¶
func (rr *RuleResolution) AddBuiltin(moduleName string)
func (*RuleResolution) AddDep ¶
func (rr *RuleResolution) AddDep(deps ...string)
func (*RuleResolution) AddExternal ¶
func (rr *RuleResolution) AddExternal(moduleNames []string, mrr *swift.ModuleResolutionResult)
func (*RuleResolution) AddHTTPArchive ¶
func (rr *RuleResolution) AddHTTPArchive(moduleName string, modules swift.Modules)
func (*RuleResolution) AddLocal ¶
func (rr *RuleResolution) AddLocal(moduleName string, frs []resolve.FindResult)
func (*RuleResolution) AddUnresolved ¶
func (rr *RuleResolution) AddUnresolved(moduleNames ...string)
func (*RuleResolution) Summary ¶
func (rr *RuleResolution) Summary() RuleResolutionSummary
type RuleResolutionSummary ¶
type RuleResolutionSummary struct { Name string `yaml:"name"` Kind string `yaml:"kind"` Imports []string `yaml:"imports"` Builtins []string `yaml:"builtins,omitempty"` LocalRes []ModuleLabel `yaml:"local_resolution,omitempty"` ExtRes ExternalResolutionSummary `yaml:"external_resolution,omitempty"` HTTPArchiveRes []ModuleLabel `yaml:"http_archive_resolution,omitempty"` Unresolved []string `yaml:"unresolved,omitempty"` Deps []string `yaml:"deps"` }
Click to show internal directories.
Click to hide internal directories.