Documentation ¶
Overview ¶
Package fs provides file system installers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPluginNotDir indicates that the plugin is not a directory. ErrPluginNotDir = errors.New("plugin is not a directory") // ErrPluginIsDir indicates that the plugin is a directory. ErrPluginIsDir = errors.New("plugin is a directory") // ErrIllegalFilePath indicates that the file path is illegal. ErrIllegalFilePath = errors.New("illegal file path") )
View Source
var ErrPluginNotGzip = errors.New("plugin is not a gzip")
ErrPluginNotGzip indicates that the plugin is not a zip.
View Source
var ErrPluginNotZip = errors.New("plugin is not a zip")
ErrPluginNotZip indicates that the plugin is not a zip.
Functions ¶
This section is empty.
Types ¶
type ArchiveInstaller ¶
type ArchiveInstaller struct {
// contains filtered or unexported fields
}
ArchiveInstaller is an installer for archive file.
func NewGzipInstaller ¶
func NewGzipInstaller(fs afero.Fs) *ArchiveInstaller
NewGzipInstaller creates a new filesystem installer.
func NewZipInstaller ¶
func NewZipInstaller(fs afero.Fs) *ArchiveInstaller
NewZipInstaller creates a new filesystem installer.
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
Installer is a file system installer.
func NewFsInstaller ¶
NewFsInstaller creates a new filesystem installer.
Click to show internal directories.
Click to hide internal directories.