tarscrub

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScrubHeader

func ScrubHeader(hdr *tar.Header) *tar.Header

takes a tar header object and "scrubs" it (uid/gid zeroed, timestamps zeroed)

func WriteTar

func WriteTar(f fs.FS, w io.Writer) error

this writes a "scrubbed" tarball to the given io.Writer (uid/gid zeroed, timestamps zeroed)

Types

This section is empty.

Jump to

Keyboard shortcuts

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