taroperations

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

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const FileExtension = ".tar.gz"

Variables

This section is empty.

Functions

func CreateTarFile

func CreateTarFile(projectName, projectDirectory string) error

CreateTarFile creates tar file for project.

func GetProjectTarFileName

func GetProjectTarFileName(name string) string

GetProjectTarFileName returns tarFile name for project.

func GetProjectTarFilePath

func GetProjectTarFilePath(name string) string

GetProjectTarFilePath returns tarFile path for project.

Types

type File

type File struct {
	Name      string
	Extension string
	Size      int
	// contains filtered or unexported fields
}

File holds file information.

func GetFile

func GetFile(tarFilePath string) (*File, bool)

GetFile returns file for name supplied.

func NewFile

func NewFile(name string, extension string, size int, r io.Reader) *File

NewFile returns file.

func NewFromMetadata

func NewFromMetadata(md metadata.MD, r io.Reader) *File

NewFromMetadata returns file with metadata.

func (*File) Metadata

func (f *File) Metadata() metadata.MD

Metadata holds metadata for file.

func (*File) Read

func (f *File) 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