Documentation ¶
Overview ¶
Package dynamic provides dynamically instantiated resources for a given instance of the Glean CLI. These resources are generally returned as 'factories'.
Index ¶
- func New() extensions.DynamicResources
- func NewCheckpointOp(ctx context.Context, cfg crawlcmd.CrawlCacheConfig) (checkpoint.Operation, error)
- func NewContentFS(ctx context.Context, cfg crawlcmd.CrawlCacheConfig) (content.FS, error)
- func NewOperationsFS(ctx context.Context, cfg crawlcmd.CrawlCacheConfig) (operations.FS, error)
- func PopulateCrawlFS(_ context.Context, cfg config.CrawlService, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() extensions.DynamicResources
New returns a set of dynamic resources for use with the Glean CLI.
func NewCheckpointOp ¶
func NewCheckpointOp(ctx context.Context, cfg crawlcmd.CrawlCacheConfig) (checkpoint.Operation, error)
NewCheckpointOp creates a checkpoint.Operation appropriate for the given crawl checkpoint configuration.
func NewContentFS ¶
NewContentFS creates a content.FS appropriate for the given crawl downloads cache configuration.
func NewOperationsFS ¶
func NewOperationsFS(ctx context.Context, cfg crawlcmd.CrawlCacheConfig) (operations.FS, error)
NewOperationsFS returns an operations.FS appropriate for the given path and configuration.
func PopulateCrawlFS ¶
func PopulateCrawlFS(_ context.Context, cfg config.CrawlService, factories map[string]crawlcmd.FSFactory) error
PopulateCrawlFS fills a map of URI schemes to crawlcmd.FS factories
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.