Documentation ¶
Index ¶
Constants ¶
View Source
const SizeStringLen = 20
SizeStringLen represents the expected size of the string containing the binary lenght
Variables ¶
This section is empty.
Functions ¶
func ListBundledFiles ¶
ListBundledFiles returns a map of file path to File information for the files contained in the current stapled binary (or fails)
func RetrieveFile ¶
func RetrieveFile(binLocation string, filePath string) (io.ReadCloser, error)
RetrieveFile will return a read closer for the required file or fail.
Types ¶
type Folder ¶
type Folder struct { Name string FullPath string Files map[string]*File Folders map[string]*Folder }
Folder contains some metadata about a folder in a bundled tar.
func ListStructuredFiles ¶
ListStructuredFiles returns the root folder of the tar containing all the files and folders below it in a structured manner.
type TarFile ¶
type TarFile struct {
// contains filtered or unexported fields
}
TarFile wraps a *tar.Reader and the underlying file so it can be returned as a file handler after seeking the right file in the tar and also provides the ability to close the underlying file.
Click to show internal directories.
Click to hide internal directories.