tarstore

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	io.Closer

	GetPreparedTarball(copier filecopy.Copier, ignorer ignorer.Ignorer, id string) (Tarball, error)
}

Store is an interface for copying and tar'ing repositories.

func New

func New(srcPath string) (Store, error)

New creates a new Store with a given directory path as the repo root. The repo root does not have to be a Git root.

type Tarball

type Tarball string

Tarball is an identifier for a tarball file containing a repository.

func (Tarball) Open

func (t Tarball) Open() (io.ReadCloser, error)

Open creates a file handle to the tarball.

Jump to

Keyboard shortcuts

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