Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileHandle ¶
type FileHandle struct {
// contains filtered or unexported fields
}
func NewFileHandle ¶
func NewFileHandle( inode *inode.FileInode, bucket gcs.Bucket) (fh *FileHandle)
func (*FileHandle) Destroy ¶
func (fh *FileHandle) Destroy()
Destroy any resources associated with the handle, which must not be used again.
func (*FileHandle) Inode ¶
func (fh *FileHandle) Inode() *inode.FileInode
Return the inode backing this handle.
func (*FileHandle) Lock ¶
func (fh *FileHandle) Lock()
func (*FileHandle) Read ¶
Equivalent to locking fh.Inode() and calling fh.Inode().Read, but may be more efficient.
LOCKS_REQUIRED(fh) LOCKS_EXCLUDED(fh.inode)
func (*FileHandle) Unlock ¶
func (fh *FileHandle) Unlock()
Click to show internal directories.
Click to hide internal directories.