Documentation
¶
Index ¶
- Variables
- func CopyDirectory(scrDir, destDir string, srcFs, destFs billy.Filesystem, opts *CopyOptions) error
- func CopyFile(srcFile, dstFile string, srcFs, destFs billy.Filesystem) error
- func CopySymLink(source, dest string, srcFs, destFs billy.Filesystem) error
- func CreateDirIfNotExists(dir string, perm os.FileMode, destFs billy.Filesystem) error
- func Exists(filePath string, destFs billy.Filesystem) bool
- func ScanDirectory(srcDir string, srcFs billy.Filesystem, opts *ScanOptions) ([]string, error)
- func ScanParent(srcDir string, srcFs billy.Filesystem, suffix string) (string, error)
- type CopyOptions
- type GitStorage
- type LocalStorage
- type Manager
- type MemoryStorage
- type ScanOptions
- type Storage
- type StoragePathInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultManager = NewManager()
Functions ¶
func CopyDirectory ¶
func CopyDirectory(scrDir, destDir string, srcFs, destFs billy.Filesystem, opts *CopyOptions) error
func CopySymLink ¶
func CreateDirIfNotExists ¶
func ScanDirectory ¶
func ScanDirectory(srcDir string, srcFs billy.Filesystem, opts *ScanOptions) ([]string, error)
Types ¶
type CopyOptions ¶
type CopyOptions struct {
Ignore []string
}
type GitStorage ¶
type GitStorage struct {
billy.Filesystem
}
func (GitStorage) Load ¶
func (s GitStorage) Load(path string) (Storage, *StoragePathInfo, error)
type LocalStorage ¶
type LocalStorage struct {
billy.Filesystem
}
func (LocalStorage) Load ¶
func (s LocalStorage) Load(path string) (Storage, *StoragePathInfo, error)
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) RegisterStorage ¶
type MemoryStorage ¶
type MemoryStorage struct {
billy.Filesystem
}
func (MemoryStorage) Load ¶
func (s MemoryStorage) Load(path string) (Storage, *StoragePathInfo, error)
type ScanOptions ¶
type Storage ¶
type StoragePathInfo ¶
func (*StoragePathInfo) Resolve ¶
func (i *StoragePathInfo) Resolve(path string) string
TODO move to another file
Source Files
¶
Click to show internal directories.
Click to hide internal directories.