processor

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package processor provides functionality for processing artifacts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessArtifact

func ProcessArtifact(
	ctx context.Context,
	logger *logrus.Logger,
	mirror *mirror.DefaultMirror,
	artifact *core.Artifact,
	opts *core.MirrorOptions,
) error

ProcessArtifact processes an artifact using an appropriate mirroring strategy. It checks if the artifact is a zip file by inspecting its location; if so, it extracts the contents using handleZipExtraction and mirrors the resulting file, otherwise, it mirrors the artifact directly. Any error encountered during extraction or mirroring is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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