Versions in this module Expand all Collapse all v1 v1.2.3 Aug 18, 2019 Changes in this version + var ErrFileClosed = errors.New("File is closed") + var ErrFileNotFound = os.ErrNotExist + var ErrOutOfRange = errors.New("Out of range") + var ErrTooLarge = errors.New("Too large") + type ByName []*fileInfo + func (a ByName) Len() int + func (a ByName) Less(i, j int) bool + func (a ByName) Swap(i, j int) + type GcsFile struct + ReadDirIt *storage.ObjectIterator + func NewGcsFile(fs *GcsFs, ctx context.Context, obj *storage.ObjectHandle, openFlags int, ...) (*GcsFile, error) + func (f *GcsFile) CanMmap() bool + func (f *GcsFile) Close() error + func (f *GcsFile) Mmap(offset int64, length int, prot int, flags int) ([]byte, error) + func (f *GcsFile) Munmap() error + func (f *GcsFile) Name() string + func (f *GcsFile) Read(p []byte) (n int, err error) + func (f *GcsFile) ReadAt(p []byte, off int64) (n int, err error) + func (f *GcsFile) Readdir(count int) ([]os.FileInfo, error) + func (f *GcsFile) Readdirnames(n int) ([]string, error) + func (f *GcsFile) Seek(newOffset int64, whence int) (int64, error) + func (f *GcsFile) Stat() (os.FileInfo, error) + func (f *GcsFile) Sync() error + func (f *GcsFile) Truncate(wantedSize int64) error + func (f *GcsFile) Write(p []byte) (n int, err error) + func (f *GcsFile) WriteAt(b []byte, off int64) (n int, err error) + func (f *GcsFile) WriteString(s string) (ret int, err error) + type GcsFs struct + func NewGcsFs(ctx context.Context, cl *storage.Client, bucket string, folderSep string) *GcsFs + func (fs *GcsFs) Chmod(name string, mode os.FileMode) error + func (fs *GcsFs) Chtimes(name string, atime time.Time, mtime time.Time) error + func (fs *GcsFs) Create(name string) (kafero.File, error) + func (fs *GcsFs) Mkdir(name string, perm os.FileMode) error + func (fs *GcsFs) MkdirAll(path string, perm os.FileMode) error + func (fs *GcsFs) Name() string + func (fs *GcsFs) Open(name string) (kafero.File, error) + func (fs *GcsFs) OpenFile(name string, flag int, perm os.FileMode) (kafero.File, error) + func (fs *GcsFs) Remove(name string) error + func (fs *GcsFs) RemoveAll(path string) error + func (fs *GcsFs) Rename(oldname, newname string) error + func (fs *GcsFs) Stat(name string) (os.FileInfo, error)