README
¶
Package cloudeng.io/glean/gleancli/builtin/dynamic
import cloudeng.io/glean/gleancli/builtin/dynamic
Package dynamic provides dynamically instantiated resources for a given instance of the Glean CLI. These resources are generally returned as 'factories'.
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
func NewContentFS(ctx context.Context, cfg crawlcmd.CrawlCacheConfig) (content.FS, error)
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
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.