splitting

package
v0.0.0-...-c2fc523 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadSHA256

func ReadSHA256(tarfile string, w io.Writer) error

func SplitTarMiddle

func SplitTarMiddle(tarfile string) error

SplitTarMiddle splits a tarfile roughly at it's middle, preserving headers so that each part is a valid tar file. It truncates the input tarfile in place, and copies the remainder into a file called "<tarfile>.part2".

Types

type PosReader

type PosReader struct {
	// contains filtered or unexported fields
}

func NewPosReader

func NewPosReader(r io.Reader) *PosReader

func (*PosReader) Read

func (pr *PosReader) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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