Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsArchivePath ¶
IsArchivePath reports whether the value is an archive URI.
Types ¶
type Handler ¶
type Handler interface {
Scheme() string
IsArchivePath(path string) bool
List(path string, showHidden bool) ([]Entry, error)
Open(path string) (io.ReadCloser, error)
}
Handler manages a specific archive format (zip, tar, etc.).
func NewRarHandler ¶
func NewRarHandler() Handler
func NewSevenZipHandler ¶
func NewSevenZipHandler() Handler
func NewTarGzHandler ¶
func NewTarGzHandler() Handler
func NewTarHandler ¶
func NewTarHandler() Handler
func NewTarXzHandler ¶
func NewTarXzHandler() Handler
func NewZipHandler ¶
func NewZipHandler() Handler
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is a collection of archive handlers.
func DefaultRegistry ¶
func DefaultRegistry() *Registry
DefaultRegistry returns the shared registry of built-in handlers.
func (*Registry) FindHandler ¶
FindHandler returns a handler that recognizes the path.
Click to show internal directories.
Click to hide internal directories.