Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Source)
Option configures a local source.
func WithCatalog ¶ added in v0.0.20
WithCatalog sets a pre-loaded catalog to reuse. This allows reusing an already-merged catalog instead of loading again.
func WithCatalogPath ¶
WithCatalogPath sets the catalog path.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source loads a catalog from either a file path or embedded catalog.
func (*Source) Dependencies ¶ added in v0.0.17
func (s *Source) Dependencies() []sources.Dependency
Dependencies returns the list of external dependencies. Local source has no external dependencies.
func (*Source) IsOptional ¶ added in v0.0.17
IsOptional returns whether this source is optional. Local source is optional - we can fall back to embedded catalog.
Click to show internal directories.
Click to hide internal directories.