dynamic

package
v0.0.0-...-a1bc676 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL