fs

package
v2.0.30 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AferoFS

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

func NewAferoFS

func NewAferoFS(fs afero.Fs) *AferoFS

func NewAferoFSWithBase

func NewAferoFSWithBase(fs afero.Fs, path string) *AferoFS

func (*AferoFS) CreateDir

func (f *AferoFS) CreateDir(path string) error

func (*AferoFS) CreateFile

func (f *AferoFS) CreateFile(path string, data []byte) error

func (*AferoFS) Exists

func (f *AferoFS) Exists(path string) (exists bool, err error)

func (*AferoFS) ReadDir

func (f *AferoFS) ReadDir(path string) (fi []plugin.FileInfo, err error)

func (*AferoFS) ReadFile

func (f *AferoFS) ReadFile(path string) ([]byte, error)

type FileInfo

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

func (*FileInfo) IsDir

func (fi *FileInfo) IsDir() bool

func (*FileInfo) Name

func (fi *FileInfo) Name() string

type OsFS

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

func NewOsFS

func NewOsFS() *OsFS

func NewOsFSWithBase

func NewOsFSWithBase(path string) *OsFS

func (*OsFS) CreateDir

func (f *OsFS) CreateDir(path string) error

func (*OsFS) CreateFile

func (f *OsFS) CreateFile(path string, data []byte) error

func (*OsFS) Exists

func (f *OsFS) Exists(path string) (exists bool, err error)

func (*OsFS) ReadDir

func (f *OsFS) ReadDir(path string) (fi []plugin.FileInfo, err error)

func (*OsFS) ReadFile

func (f *OsFS) ReadFile(path string) ([]byte, error)

Jump to

Keyboard shortcuts

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