tarutil

package
v0.0.0-...-8023e94 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package tarutil provides methods for creating tar packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TarBytes

func TarBytes(tw *tar.Writer, b []byte, path string) error

TarBytes writes the given bytes to a given path within an archive.

func TarDirectory

func TarDirectory(tw *tar.Writer, dir string) error

TarDirectory archives the given directory.

func TarFile

func TarFile(tw *tar.Writer, src, dest string) error

TarFile writes the given file to an archive at the given path.

func TarFromReader

func TarFromReader(tw *tar.Writer, r io.Reader, path string, size int64) error

TarFromReader writes data from the given Reader to the given tar.Writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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