Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDataSource ¶
func NewDataSource(r io.Reader, decompress func(reader io.Reader) (io.Reader, error)) (tarpatch.DataSource, error)
NewDataSource constructs a tarpatch.DataSource that optionally decompresses the input archive and writes the archive to a temporary file. Calling Close() cleans up the temporary files.
Types ¶
type DataSource ¶
type DataSource struct {
// contains filtered or unexported fields
}
DataSource implements a file system backed tarpatch.DataSource. This does not extract the archive, but it creates a temporary file, to which the contents are written lazily.
func (*DataSource) Close ¶
func (t *DataSource) Close() error
func (*DataSource) CloseDataSource ¶
func (t *DataSource) CloseDataSource() error
CloseDataSource Close the currently opened reader.
func (*DataSource) SetCurrentFile ¶
func (t *DataSource) SetCurrentFile(file string) error
Click to show internal directories.
Click to hide internal directories.