utils

package
v0.0.0-...-0ce2e87 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInMemoryTar

func CreateInMemoryTar(sources ...*os.File) ([]byte, error)

CreateInMemoryTar creates a tar file .

func ExtractTar

func ExtractTar(tarF io.Reader, target string) (int, error)

Types

type StreamingTar

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

func CreateStreamingTar

func CreateStreamingTar(sources ...*os.File) (*StreamingTar, error)

CreateStreamingTar returns a tar io.Reader while streaming directly from the source files.

func (*StreamingTar) Close

func (r *StreamingTar) Close() error

func (*StreamingTar) Read

func (r *StreamingTar) 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