Documentation ¶
Index ¶
Constants ¶
View Source
const ( O_RDONLY = os.O_RDONLY // open the file read-only. O_WRONLY = os.O_WRONLY // open the file write-only. O_RDWR = os.O_RDWR // open the file read-write. O_APPEND = os.O_APPEND // append data to the file when writing. O_CREATE = os.O_CREATE // create a new file if none exists. O_EXCL = os.O_EXCL // used with O_CREATE, file must not exist O_SYNC = os.O_SYNC // open for synchronous I/O. O_TRUNC = os.O_TRUNC // if possible, truncate file when opened. )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File represents an encrypted file.
func (*File) Pin ¶
func (file *File) Pin()
Pin increases the reference count so the file will not be removed.
func (*File) ReadAt ¶
ReadAt performs a random access read of an encrypted file and returns the decrypted content.
Click to show internal directories.
Click to hide internal directories.