Defined the Op interface.

geesefs-0-30-9
Aaron Jacobs 2015-03-24 14:21:55 +11:00
parent 194d73e5d4
commit bbc33f6317
1 changed files with 14 additions and 0 deletions

View File

@ -22,8 +22,22 @@ import (
"time"
"github.com/jacobsa/bazilfuse"
"golang.org/x/net/context"
)
type Op interface {
// A context that can be used for long-running operations.
Context() context.Context
// Repond to the operation with the supplied error. If there is no error, set
// any necessary output fields and then call Respond(nil).
Respond(error)
}
////////////////////////////////////////////////////////////////////////
// Setup
////////////////////////////////////////////////////////////////////////
// Sent once when mounting the file system. It must succeed in order for the
// mount to succeed.
type InitOp struct {