archiver

package
v1.75.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package archiver registers all the archivers

Index

Constants

This section is empty.

Variables

View Source
var Archivers []Archiver

Archivers is a slice of all registered archivers

Functions

func Register

func Register(as ...Archiver)

Register adds the archivers provided to the list of known archivers

Types

type Archiver

type Archiver struct {
	// New constructs an Fs from the (wrappedFs, remote) with the objects
	// prefix with prefix and rooted at root
	New       func(ctx context.Context, f fs.Fs, remote, prefix, root string) (fs.Fs, error)
	Extension string
}

Archiver describes an archive package

Entry names inside an archive are attacker controlled. An archiver must not expose an entry whose remote escapes the archive's own namespace (for example one with a ".." component), typically by validating names with lib/sanitize.

Jump to

Keyboard shortcuts

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