aferotools

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
}

func (*FileInfo) IsDir

func (fi *FileInfo) IsDir() bool

IsDir is always false for files

func (*FileInfo) ModTime

func (fi *FileInfo) ModTime() time.Time

ModTime (modification time) of the file

func (*FileInfo) Mode

func (fi *FileInfo) Mode() os.FileMode

Mode of the file

type FolderInfo

type FolderInfo struct {
	FileInfo
}

func (*FolderInfo) IsDir

func (fi *FolderInfo) IsDir() bool

IsDir is always true for folders

func (*FolderInfo) Size

func (fi *FolderInfo) Size() int64

Size of the folder, usually 0

type ReadOnlyFile

type ReadOnlyFile struct {
	ReadOnlyItem
}

func (*ReadOnlyFile) Readdir

func (m *ReadOnlyFile) Readdir(count int) ([]os.FileInfo, error)

func (*ReadOnlyFile) Readdirnames

func (m *ReadOnlyFile) Readdirnames(n int) ([]string, error)

type ReadOnlyFolder

type ReadOnlyFolder struct {
	ReadOnlyItem
}

func (*ReadOnlyFolder) Read

func (s *ReadOnlyFolder) Read(p []byte) (n int, err error)

func (*ReadOnlyFolder) ReadAt

func (s *ReadOnlyFolder) ReadAt(p []byte, off int64) (n int, err error)

func (*ReadOnlyFolder) Seek

func (s *ReadOnlyFolder) Seek(offset int64, whence int) (int64, error)

type ReadOnlyFs

type ReadOnlyFs struct {
	afero.ReadOnlyFs
}

func (*ReadOnlyFs) OpenFile

func (r *ReadOnlyFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)

type ReadOnlyItem

type ReadOnlyItem struct{}

func (*ReadOnlyItem) Close

func (m *ReadOnlyItem) Close() error

func (*ReadOnlyItem) Sync

func (m *ReadOnlyItem) Sync() error

func (*ReadOnlyItem) Truncate

func (m *ReadOnlyItem) Truncate(size int64) error

func (*ReadOnlyItem) Write

func (m *ReadOnlyItem) Write(p []byte) (n int, err error)

func (*ReadOnlyItem) WriteAt

func (m *ReadOnlyItem) WriteAt(p []byte, off int64) (n int, err error)

func (*ReadOnlyItem) WriteString

func (m *ReadOnlyItem) WriteString(s string) (ret int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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