Documentation ¶
Overview ¶
Package file implements the File interface used in client.Open and client.Create.
Index ¶
- type File
- func (f *File) Close() error
- func (f *File) Name() upspin.PathName
- func (f *File) Read(b []byte) (n int, err error)
- func (f *File) ReadAt(b []byte, off int64) (n int, err error)
- func (f *File) Seek(offset int64, whence int) (ret int64, err error)
- func (f *File) Write(b []byte) (n int, err error)
- func (f *File) WriteAt(b []byte, off int64) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is a simple implementation of upspin.File. It always keeps the whole file in memory under the assumption that it is encrypted and must be read and written atomically.
func Readable ¶
Readable creates a new File for the given DirEntry that must be readable using the given Config.
func Writable ¶
Writable creates a new file with a given name, belonging to a given client for write. Once closed, the file will overwrite any existing file with the same name.
Click to show internal directories.
Click to hide internal directories.