Documentation ¶
Overview ¶
Package oci provides functionality for gathering files or directories from OCI (Open Container Initiative) sources. It includes an implementation of the Gatherer interface, OCIGatherer, which allows copying files or directories from an OCI source to a destination path. The Gather method in OCIGatherer takes a source path and a destination path, and returns the metadata of the gathered file or directory and any error encountered. This package also includes a helper function, ociURLParse, for parsing the source URI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OCIGatherer ¶
type OCIGatherer struct{}
OCIGatherer is a struct that implements the Gatherer interface and provides methods for gathering from OCI.
func (*OCIGatherer) Gather ¶
func (f *OCIGatherer) Gather(ctx context.Context, source, destination string) (metadata.Metadata, error)
Gather copies a file or directory from the source path to the destination path. It returns the metadata of the gathered file or directory and any error encountered. Portions of this file are derivative from the open-policy-agent/conftest project.