Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer is like bytes.Buffer but safe to access from multiple goroutines.
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter records number of times a thing has occurred.
type Flushes ¶
type Flushes struct {
// contains filtered or unexported fields
}
Flushes notes whether a FUSE Flush call has been seen.
func (*Flushes) RecordedFlush ¶
type Fsyncs ¶
type Fsyncs struct {
// contains filtered or unexported fields
}
Fsyncs records an Fsync request and its fields.
func (*Fsyncs) RecordedFsync ¶
func (r *Fsyncs) RecordedFsync() fuse.FsyncRequest
type Getxattrs ¶
type Getxattrs struct {
// contains filtered or unexported fields
}
Getxattrs records a Getxattr request and its fields.
func (*Getxattrs) Getxattr ¶
func (r *Getxattrs) Getxattr(req *fuse.GetxattrRequest, resp *fuse.GetxattrResponse, intr fs.Intr) fuse.Error
Getxattr records the request and returns an error. Most callers should wrap this call in a function that returns a more useful result.
func (*Getxattrs) RecordedGetxattr ¶
func (r *Getxattrs) RecordedGetxattr() fuse.GetxattrRequest
RecordedGetxattr returns information about the Getxattr request. If no request was seen, returns a zero value.
type Links ¶
type Links struct {
// contains filtered or unexported fields
}
Links records a Link request and its fields.
func (*Links) Link ¶
Link records the request and returns an error. Most callers should wrap this call in a function that returns a more useful result.
func (*Links) RecordedLink ¶
func (r *Links) RecordedLink() fuse.LinkRequest
RecordedLink returns information about the Link request. If no request was seen, returns a zero value.
type Listxattrs ¶
type Listxattrs struct {
// contains filtered or unexported fields
}
Listxattrs records a Listxattr request and its fields.
func (*Listxattrs) Listxattr ¶
func (r *Listxattrs) Listxattr(req *fuse.ListxattrRequest, resp *fuse.ListxattrResponse, intr fs.Intr) fuse.Error
Listxattr records the request and returns an error. Most callers should wrap this call in a function that returns a more useful result.
func (*Listxattrs) RecordedListxattr ¶
func (r *Listxattrs) RecordedListxattr() fuse.ListxattrRequest
RecordedListxattr returns information about the Listxattr request. If no request was seen, returns a zero value.
type MarkRecorder ¶
type MarkRecorder struct {
// contains filtered or unexported fields
}
MarkRecorder records whether a thing has occurred.
func (*MarkRecorder) Mark ¶
func (r *MarkRecorder) Mark()
func (*MarkRecorder) Recorded ¶
func (r *MarkRecorder) Recorded() bool
type Mkdirs ¶
type Mkdirs struct {
// contains filtered or unexported fields
}
Mkdirs records a Mkdir request and its fields.
func (*Mkdirs) Mkdir ¶
Mkdir records the request and returns an error. Most callers should wrap this call in a function that returns a more useful result.
func (*Mkdirs) RecordedMkdir ¶
func (r *Mkdirs) RecordedMkdir() fuse.MkdirRequest
RecordedMkdir returns information about the Mkdir request. If no request was seen, returns a zero value.
type Mknods ¶
type Mknods struct {
// contains filtered or unexported fields
}
Mknods records a Mknod request and its fields.
func (*Mknods) Mknod ¶
Mknod records the request and returns an error. Most callers should wrap this call in a function that returns a more useful result.
func (*Mknods) RecordedMknod ¶
func (r *Mknods) RecordedMknod() fuse.MknodRequest
RecordedMknod returns information about the Mknod request. If no request was seen, returns a zero value.
type Opens ¶
type Opens struct {
// contains filtered or unexported fields
}
Opens records a Open request and its fields.
func (*Opens) Open ¶
func (r *Opens) Open(req *fuse.OpenRequest, resp *fuse.OpenResponse, intr fs.Intr) (fs.Handle, fuse.Error)
Open records the request and returns an error. Most callers should wrap this call in a function that returns a more useful result.
func (*Opens) RecordedOpen ¶
func (r *Opens) RecordedOpen() fuse.OpenRequest
RecordedOpen returns information about the Open request. If no request was seen, returns a zero value.
type Recorder ¶
type Recorder struct {
// contains filtered or unexported fields
}
type ReleaseWaiter ¶
type ReleaseWaiter struct {
// contains filtered or unexported fields
}
ReleaseWaiter notes whether a FUSE Release call has been seen.
Releases are not guaranteed to happen synchronously with any client call, so they must be waited for.
func (*ReleaseWaiter) Release ¶
func (r *ReleaseWaiter) Release(req *fuse.ReleaseRequest, intr fs.Intr) fuse.Error
func (*ReleaseWaiter) WaitForRelease ¶
func (r *ReleaseWaiter) WaitForRelease(dur time.Duration) bool
WaitForRelease waits for Release to be called.
With zero duration, wait forever. Otherwise, timeout early in a more controller way than `-test.timeout`.
Returns whether a Release was seen. Always true if dur==0.
type Removexattrs ¶
type Removexattrs struct {
// contains filtered or unexported fields
}
Removexattrs records a Removexattr request and its fields.
func (*Removexattrs) RecordedRemovexattr ¶
func (r *Removexattrs) RecordedRemovexattr() fuse.RemovexattrRequest
RecordedRemovexattr returns information about the Removexattr request. If no request was seen, returns a zero value.
func (*Removexattrs) Removexattr ¶
func (r *Removexattrs) Removexattr(req *fuse.RemovexattrRequest, intr fs.Intr) fuse.Error
Removexattr records the request and returns an error. Most callers should wrap this call in a function that returns a more useful result.
type RequestRecorder ¶
type RequestRecorder struct {
// contains filtered or unexported fields
}
func (*RequestRecorder) RecordRequest ¶
func (r *RequestRecorder) RecordRequest(req fuse.Request)
Record a fuse.Request, after zeroing header fields that are hard to reproduce.
Make sure to record a copy, not the original request.
func (*RequestRecorder) Recorded ¶
func (r *RequestRecorder) Recorded() fuse.Request
type Setattrs ¶
type Setattrs struct {
// contains filtered or unexported fields
}
Setattrs records a Setattr request and its fields.
func (*Setattrs) RecordedSetattr ¶
func (r *Setattrs) RecordedSetattr() fuse.SetattrRequest
type Setxattrs ¶
type Setxattrs struct {
// contains filtered or unexported fields
}
Setxattrs records a Setxattr request and its fields.
func (*Setxattrs) RecordedSetxattr ¶
func (r *Setxattrs) RecordedSetxattr() fuse.SetxattrRequest
RecordedSetxattr returns information about the Setxattr request. If no request was seen, returns a zero value.
type Symlinks ¶
type Symlinks struct {
// contains filtered or unexported fields
}
Symlinks records a Symlink request and its fields.
func (*Symlinks) RecordedSymlink ¶
func (r *Symlinks) RecordedSymlink() fuse.SymlinkRequest
RecordedSymlink returns information about the Symlink request. If no request was seen, returns a zero value.
type Writes ¶
type Writes struct {
// contains filtered or unexported fields
}
Writes gathers data from FUSE Write calls.