record

package
v0.0.0-...-c5af384 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2015 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 7 Imported by: 0

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.

func (*Buffer) Bytes

func (b *Buffer) Bytes() []byte

func (*Buffer) Write

func (b *Buffer) Write(p []byte) (n int, err error)

type Counter

type Counter struct {
	// contains filtered or unexported fields
}

Counter records number of times a thing has occurred.

func (*Counter) Count

func (r *Counter) Count() uint32

func (*Counter) Inc

func (r *Counter) Inc()

type Flushes

type Flushes struct {
	// contains filtered or unexported fields
}

Flushes notes whether a FUSE Flush call has been seen.

func (*Flushes) Flush

func (r *Flushes) Flush(req *fuse.FlushRequest, intr fs.Intr) fuse.Error

func (*Flushes) RecordedFlush

func (r *Flushes) RecordedFlush() bool

type Fsyncs

type Fsyncs struct {
	// contains filtered or unexported fields
}

Fsyncs records an Fsync request and its fields.

func (*Fsyncs) Fsync

func (r *Fsyncs) Fsync(req *fuse.FsyncRequest, intr fs.Intr) fuse.Error

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 struct {
	// contains filtered or unexported fields
}

Links records a Link request and its fields.

func (r *Links) Link(req *fuse.LinkRequest, old fs.Node, intr fs.Intr) (fs.Node, fuse.Error)

Link records the request and returns an error. Most callers should wrap this call in a function that returns a more useful result.

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

func (r *Mkdirs) Mkdir(req *fuse.MkdirRequest, intr fs.Intr) (fs.Node, fuse.Error)

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

func (r *Mknods) Mknod(req *fuse.MknodRequest, intr fs.Intr) (fs.Node, fuse.Error)

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
}

func (*Recorder) Record

func (r *Recorder) Record(value interface{})

Record that we've seen value. A nil value is indistinguishable from no value recorded.

func (*Recorder) Recorded

func (r *Recorder) Recorded() interface{}

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

func (*Setattrs) Setattr

func (r *Setattrs) Setattr(req *fuse.SetattrRequest, resp *fuse.SetattrResponse, intr fs.Intr) fuse.Error

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.

func (*Setxattrs) Setxattr

func (r *Setxattrs) Setxattr(req *fuse.SetxattrRequest, intr fs.Intr) fuse.Error

Setxattr records the request and returns an error. Most callers should wrap this call in a function that returns a more useful result.

type Symlinks struct {
	// contains filtered or unexported fields
}

Symlinks records a Symlink request and its fields.

func (r *Symlinks) RecordedSymlink() fuse.SymlinkRequest

RecordedSymlink returns information about the Symlink request. If no request was seen, returns a zero value.

func (r *Symlinks) Symlink(req *fuse.SymlinkRequest, intr fs.Intr) (fs.Node, fuse.Error)

Symlink records the request and returns an error. Most callers should wrap this call in a function that returns a more useful result.

type Writes

type Writes struct {
	// contains filtered or unexported fields
}

Writes gathers data from FUSE Write calls.

func (*Writes) RecordedWriteData

func (w *Writes) RecordedWriteData() []byte

func (*Writes) Write

func (w *Writes) Write(req *fuse.WriteRequest, resp *fuse.WriteResponse, intr fs.Intr) fuse.Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL