bundle

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WalkTar

func WalkTar(filepath string, walk func(header *tar.Header, r io.Reader) error) error

Types

type BundleFile

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

func NewBundle

func NewBundle(filepath string) (b *BundleFile, err error)

func NewBundleFromExport

func NewBundleFromExport(export *datactlapi.MeteringExport) (*BundleFile, error)

func NewBundleWithDefaultName

func NewBundleWithDefaultName() (*BundleFile, error)

func (*BundleFile) Close

func (f *BundleFile) Close() error

func (*BundleFile) Compact

func (f *BundleFile) Compact(fileNames map[string]interface{}) error

Compact will remove files that are duplicates or not in fileNames

func (*BundleFile) Name

func (f *BundleFile) Name() string

func (*BundleFile) NewFile

func (f *BundleFile) NewFile(filename string, size int64) (io.Writer, error)

func (*BundleFile) Walk

func (f *BundleFile) Walk(walk func(header *tar.Header, r io.Reader)) error

Jump to

Keyboard shortcuts

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