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 ¶
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. |
Click to show internal directories.
Click to hide internal directories.