Documentation ¶
Overview ¶
High level package around reading and writing tar archives. A tarfile can either be written to or read from, not both.
Index ¶
- type FileReadWriter
- type FileReader
- type FileWriter
- type MetadataStore
- type TarFile
- func (tf *TarFile) Close() error
- func (tf *TarFile) Flush() error
- func (tf *TarFile) ReadFile(w io.Writer) (info os.FileInfo, err error)
- func (tf *TarFile) ReadMetadata() (md *metadataRecord, err error)
- func (tf *TarFile) Size() int64
- func (tf *TarFile) WriteFile(info os.FileInfo, r io.Reader) (n int, err error)
- func (tf *TarFile) WriteMetadata(name string, data []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileReadWriter ¶
type FileReadWriter interface { FileReader FileWriter }
Interface for reading and writing tarfiles.
type FileReader ¶
Interface for reading tarfiles.
type FileWriter ¶
Interface for writing tarfiles.
type MetadataStore ¶
type MetadataStore interface { WriteMetadata(name string, data []byte) (n int, err error) ReadMetadata() (md *metadataRecord, err error) }
Interface for storing archive metadata.
type TarFile ¶
type TarFile struct {
// contains filtered or unexported fields
}
High level structure for handling tarfiles.
func (*TarFile) ReadMetadata ¶
Read metadata from the tarfile.
Click to show internal directories.
Click to hide internal directories.