fsadapter

package
v0.0.0-...-a18d6c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(fs afero.Fs) billy.Filesystem

Types

type AdapterFs

type AdapterFs struct {
	// contains filtered or unexported fields
}

AdapterFs holds an afero Fs interface for adaptation to billy.Filesystem

func (*AdapterFs) Capabilities

func (fs *AdapterFs) Capabilities() billy.Capability

Capabilities implements the Capable interface.

func (*AdapterFs) Create

func (fs *AdapterFs) Create(filename string) (billy.File, error)

func (*AdapterFs) Join

func (fs *AdapterFs) Join(elem ...string) string

func (*AdapterFs) Lstat

func (fs *AdapterFs) Lstat(filename string) (os.FileInfo, error)

func (*AdapterFs) MkdirAll

func (fs *AdapterFs) MkdirAll(path string, perm os.FileMode) error

func (*AdapterFs) Open

func (fs *AdapterFs) Open(filename string) (billy.File, error)

func (*AdapterFs) OpenFile

func (fs *AdapterFs) OpenFile(filename string, flag int, perm os.FileMode) (billy.File, error)

func (*AdapterFs) ReadDir

func (fs *AdapterFs) ReadDir(path string) ([]os.FileInfo, error)
func (fs *AdapterFs) Readlink(link string) (string, error)

func (*AdapterFs) Remove

func (fs *AdapterFs) Remove(filename string) error

func (*AdapterFs) RemoveAll

func (fs *AdapterFs) RemoveAll(path string) error

func (*AdapterFs) Rename

func (fs *AdapterFs) Rename(from, to string) error

func (*AdapterFs) Stat

func (fs *AdapterFs) Stat(filename string) (os.FileInfo, error)
func (fs *AdapterFs) Symlink(target, link string) error

func (*AdapterFs) TempFile

func (fs *AdapterFs) TempFile(dir, prefix string) (billy.File, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL