archive

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTar

func IsTar(name string) bool

IsTar is used to test the extension to see if the presence of tar can be found

Types

type TarWriter

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

TarWriter encapsulates a writer of tar files that stores the source dir and the headers that will be used to generate a studioml artifact

func NewTarWriter

func NewTarWriter(dir string) (t *TarWriter, err kv.Error)

NewTarWriter generates a data structure to encapsulate the tar headers for the files within a caller specified directory that can be used to generate an artifact

func (*TarWriter) HasFiles

func (t *TarWriter) HasFiles() bool

HasFiles is used to test the artifact file catalog to see if there are files within it

func (*TarWriter) Write

func (t *TarWriter) Write(tw *tar.Writer) (err kv.Error)

Write is used to add a go tar file writer device to the tar writer and to output the files within the catalog of the runners file list into the go tar device

Jump to

Keyboard shortcuts

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