oci

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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