gather

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package gather defines the Gatherer interface and a registry of gatherers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGatherer

func RegisterGatherer(g Gatherer)

RegisterGatherer adds a Gatherer to the global registry.

Types

type Gatherer

type Gatherer interface {
	Gather(ctx context.Context, src, dst string) (metadata.Metadata, error)
	Matcher(uri string) bool
}

Gatherer defines the interface for downloading resources from a URI.

func GetGatherer

func GetGatherer(uri string) (Gatherer, error)

GetGatherer returns the first registered Gatherer whose Matcher accepts the given URI.

Directories

Path Synopsis
Package file implements a Gatherer for local filesystem sources.
Package file implements a Gatherer for local filesystem sources.
Package git implements a Gatherer for git repository sources.
Package git implements a Gatherer for git repository sources.
Package http implements a Gatherer for HTTP and HTTPS sources.
Package http implements a Gatherer for HTTP and HTTPS sources.
Package oci implements a Gatherer for OCI registry sources.
Package oci implements a Gatherer for OCI registry sources.

Jump to

Keyboard shortcuts

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