Documentation ¶
Index ¶
- Variables
- type ByName
- type GcsFile
- 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
- 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)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFileClosed = errors.New("File is closed") ErrOutOfRange = errors.New("Out of range") ErrTooLarge = errors.New("Too large") ErrFileNotFound = os.ErrNotExist )
Functions ¶
This section is empty.
Types ¶
type GcsFile ¶
type GcsFile struct { ReadDirIt *storage.ObjectIterator // contains filtered or unexported fields }
GcsFs is the Afero version adapted for GCS
func NewGcsFile ¶
Click to show internal directories.
Click to hide internal directories.