Documentation
¶
Index ¶
- func InitLogging(level zerolog.Level)
- func SetupOTelSDK(exporter sdktrace.SpanExporter)
- type Fault
- type FaultExecute
- type FaultManager
- func (f *FaultManager) DeleteAll() []int32
- func (f *FaultManager) DeleteByID(ids []int32) []int32
- func (f *FaultManager) DeleteByPathRegex(pathRe string) []int32
- func (f *FaultManager) FuseInject(s *FuseFault) int32
- func (f *FaultManager) GetFuseFault(path string, op pb.FuseOp) FaultExecute
- func (f *FaultManager) GetNbdFault(op pb.NbdOp, offset int64, len int) FaultExecute
- func (f *FaultManager) ListFaults() ([]*FuseFault, []*NbdFault)
- func (f *FaultManager) NbdInject(s *NbdFault) int32
- type FileBackend
- type FuseFault
- type FuseFaultKey
- type IORecord
- type NbdFault
- type RawFS
- func (f *RawFS) Chmod(path string, mode uint32) (errc int)
- func (f *RawFS) Chown(path string, uid uint32, gid uint32) (errc int)
- func (f *RawFS) Create(path string, flags int, mode uint32) (errc int, fh uint64)
- func (f *RawFS) Fsync(path string, datasync bool, fh uint64) (errc int)
- func (f *RawFS) Getattr(path string, stat *fuse.Stat_t, fh uint64) (errc int)
- func (f *RawFS) Init()
- func (f *RawFS) Link(oldpath string, newpath string) (errc int)
- func (f *RawFS) Mkdir(path string, mode uint32) (errc int)
- func (f *RawFS) Mknod(path string, mode uint32, dev uint64) (errc int)
- func (f *RawFS) Open(path string, flags int) (errc int, fh uint64)
- func (f *RawFS) Opendir(path string) (errc int, fh uint64)
- func (f *RawFS) Read(path string, buff []byte, ofst int64, fh uint64) (rc int)
- func (f *RawFS) Readdir(path string, fill fillFn, ofst int64, fh uint64) (errc int)
- func (f *RawFS) Readlink(path string) (errc int, target string)
- func (f *RawFS) Release(path string, fh uint64) (errc int)
- func (f *RawFS) Releasedir(path string, fh uint64) (errc int)
- func (f *RawFS) Rename(oldpath string, newpath string) (errc int)
- func (f *RawFS) Rmdir(path string) (errc int)
- func (f *RawFS) Statfs(path string, stat *fuse.Statfs_t) (errc int)
- func (f *RawFS) Symlink(target string, newpath string) (errc int)
- func (f *RawFS) Truncate(path string, size int64, fh uint64) (errc int)
- func (f *RawFS) Unlink(path string) (errc int)
- func (f *RawFS) Utimens(path string, tmsp1 []fuse.Timespec) (errc int)
- func (f *RawFS) Write(path string, buff []byte, ofst int64, fh uint64) (rc int)
- type RegexCache
- type Rpc
- func (r *Rpc) DeleteFault(_ context.Context, req *pb.DeleteFaultRequest) (*pb.DeleteFaultResponse, error)
- func (r *Rpc) InjectFuseFault(_ context.Context, req *pb.InjectFuseFaultRequest) (*pb.InjectFuseFaultResponse, error)
- func (r *Rpc) InjectNbdFault(ctx context.Context, req *pb.InjectNbdFaultRequest) (*pb.InjectNbdFaultResponse, error)
- func (r *Rpc) ListFaults(_ context.Context, _ *pb.Void) (*pb.ListFaultsResponse, error)
- type SlowFS
- func (f *SlowFS) Chmod(path string, mode uint32) (errc int)
- func (f *SlowFS) Chown(path string, uid uint32, gid uint32) (errc int)
- func (f *SlowFS) Create(path string, flags int, mode uint32) (errc int, fh uint64)
- func (f *SlowFS) Fsync(path string, datasync bool, fh uint64) (errc int)
- func (f *SlowFS) Getattr(path string, stat *fuse.Stat_t, fh uint64) (errc int)
- func (f *SlowFS) Init()
- func (f *SlowFS) Link(oldpath string, newpath string) (errc int)
- func (f *SlowFS) Mkdir(path string, mode uint32) (errc int)
- func (f *SlowFS) Mknod(path string, mode uint32, dev uint64) (errc int)
- func (f *SlowFS) Open(path string, flags int) (errc int, fh uint64)
- func (f *SlowFS) Opendir(path string) (errc int, fh uint64)
- func (f *SlowFS) Read(path string, buff []byte, ofst int64, fh uint64) (rc int)
- func (f *SlowFS) Readdir(path string, fill fillFn, ofst int64, fh uint64) (errc int)
- func (f *SlowFS) Readlink(path string) (errc int, target string)
- func (f *SlowFS) Release(path string, fh uint64) (errc int)
- func (f *SlowFS) Releasedir(path string, fh uint64) (errc int)
- func (f *SlowFS) Rename(oldpath string, newpath string) (errc int)
- func (f *SlowFS) Rmdir(path string) (errc int)
- func (f *SlowFS) Statfs(path string, stat *fuse.Statfs_t) (errc int)
- func (f *SlowFS) Symlink(target string, newpath string) (errc int)
- func (f *SlowFS) Truncate(path string, size int64, fh uint64) (errc int)
- func (f *SlowFS) Unlink(path string) (errc int)
- func (f *SlowFS) Utimens(path string, tmsp1 []fuse.Timespec) (errc int)
- func (f *SlowFS) Write(path string, buff []byte, ofst int64, fh uint64) (rc int)
- type SpanExporter
- type ZeroFault
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogging ¶
func SetupOTelSDK ¶
func SetupOTelSDK(exporter sdktrace.SpanExporter)
Types ¶
type FaultExecute ¶
type FaultManager ¶
type FaultManager struct {
// contains filtered or unexported fields
}
func NewFaultManager ¶
func NewFaultManager() *FaultManager
func (*FaultManager) DeleteAll ¶
func (f *FaultManager) DeleteAll() []int32
func (*FaultManager) DeleteByID ¶
func (f *FaultManager) DeleteByID(ids []int32) []int32
func (*FaultManager) DeleteByPathRegex ¶
func (f *FaultManager) DeleteByPathRegex(pathRe string) []int32
func (*FaultManager) FuseInject ¶
func (f *FaultManager) FuseInject(s *FuseFault) int32
func (*FaultManager) GetFuseFault ¶
func (f *FaultManager) GetFuseFault(path string, op pb.FuseOp) FaultExecute
func (*FaultManager) GetNbdFault ¶
func (f *FaultManager) GetNbdFault(op pb.NbdOp, offset int64, len int) FaultExecute
func (*FaultManager) ListFaults ¶
func (f *FaultManager) ListFaults() ([]*FuseFault, []*NbdFault)
func (*FaultManager) NbdInject ¶
func (f *FaultManager) NbdInject(s *NbdFault) int32
type FileBackend ¶
type FileBackend struct {
// contains filtered or unexported fields
}
func NewFileBackend ¶
func NewFileBackend(file *os.File, faults *FaultManager) *FileBackend
func (*FileBackend) Size ¶
func (f *FileBackend) Size() (size int64, err error)
func (*FileBackend) Sync ¶
func (f *FileBackend) Sync() (err error)
type FuseFault ¶
type FuseFaultKey ¶
type IORecord ¶
type IORecord struct {
Name string
StartTimeNs int64
ElapsedNs int64
Offset int64
Length int32
Path string
}
func NewIORecord ¶
func NewIORecord(span sdktrace.ReadOnlySpan) IORecord
func (*IORecord) FromAttributes ¶
type NbdFault ¶
type RawFS ¶
type RawFS struct {
fuse.FileSystemBase
BaseDir string
DisableReadAhead bool
}
type RegexCache ¶
type RegexCache struct {
// contains filtered or unexported fields
}
func NewRegexCache ¶
func NewRegexCache() *RegexCache
func (*RegexCache) Clear ¶
func (f *RegexCache) Clear()
type Rpc ¶
type Rpc struct {
pb.UnimplementedFuseStreamServer
Faults *FaultManager
}
func (*Rpc) DeleteFault ¶
func (r *Rpc) DeleteFault(_ context.Context, req *pb.DeleteFaultRequest) (*pb.DeleteFaultResponse, error)
func (*Rpc) InjectFuseFault ¶
func (r *Rpc) InjectFuseFault(_ context.Context, req *pb.InjectFuseFaultRequest) (*pb.InjectFuseFaultResponse, error)
func (*Rpc) InjectNbdFault ¶
func (r *Rpc) InjectNbdFault(ctx context.Context, req *pb.InjectNbdFaultRequest) (*pb.InjectNbdFaultResponse, error)
func (*Rpc) ListFaults ¶
type SlowFS ¶
type SlowFS struct {
RawFS
Faults *FaultManager
}
func NewSlowFS ¶
func NewSlowFS(baseDir string, faults *FaultManager) *SlowFS
type SpanExporter ¶
type SpanExporter struct {
// contains filtered or unexported fields
}
func NewSpanExporter ¶
func NewSpanExporter(path string) (*SpanExporter, error)
func (*SpanExporter) ExportSpans ¶
func (e *SpanExporter) ExportSpans(ctx context.Context, spans []trace.ReadOnlySpan) error
Click to show internal directories.
Click to hide internal directories.