chaosfs

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(addr string)

Types

type InjuredHook

type InjuredHook struct {
	Addr string
}

func (*InjuredHook) Init

func (h *InjuredHook) Init() error

func (*InjuredHook) PostAccess

func (h *InjuredHook) PostAccess(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostAllocate

func (h *InjuredHook) PostAllocate(realRetCode int32, prehookCtx hookfs.HookContext) (hooked bool, err error)

func (*InjuredHook) PostChmod

func (h *InjuredHook) PostChmod(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostChown

func (h *InjuredHook) PostChown(realRetCode int32, prehookCtx hookfs.HookContext) (hooked bool, err error)

func (*InjuredHook) PostCreate

func (h *InjuredHook) PostCreate(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostFlush

func (h *InjuredHook) PostFlush(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostFsync

func (h *InjuredHook) PostFsync(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostGetAttr

func (h *InjuredHook) PostGetAttr(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostGetLk

func (h *InjuredHook) PostGetLk(realRetCode int32, prehookCtx hookfs.HookContext) (hooked bool, err error)

func (*InjuredHook) PostGetXAttr

func (h *InjuredHook) PostGetXAttr(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)
func (h *InjuredHook) PostLink(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostListXAttr

func (h *InjuredHook) PostListXAttr(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostMkdir

func (h *InjuredHook) PostMkdir(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostMknod

func (h *InjuredHook) PostMknod(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostOpen

func (h *InjuredHook) PostOpen(int32, hookfs.HookContext) (bool, error)

func (*InjuredHook) PostOpenDir

func (h *InjuredHook) PostOpenDir(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostRead

func (h *InjuredHook) PostRead(realRetCode int32, realBuf []byte, prehookCtx hookfs.HookContext) ([]byte, bool, error)
func (h *InjuredHook) PostReadlink(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostRelease

func (h *InjuredHook) PostRelease(prehookCtx hookfs.HookContext) (hooked bool)

func (*InjuredHook) PostRemoveXAttr

func (h *InjuredHook) PostRemoveXAttr(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostRename

func (h *InjuredHook) PostRename(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostRmdir

func (h *InjuredHook) PostRmdir(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostSetLk

func (h *InjuredHook) PostSetLk(realRetCode int32, prehookCtx hookfs.HookContext) (hooked bool, err error)

func (*InjuredHook) PostSetLkw

func (h *InjuredHook) PostSetLkw(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostSetXAttr

func (h *InjuredHook) PostSetXAttr(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostStatFs

func (h *InjuredHook) PostStatFs(prehookCtx hookfs.HookContext) (bool, error)
func (h *InjuredHook) PostSymlink(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostTruncate

func (h *InjuredHook) PostTruncate(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)
func (h *InjuredHook) PostUnlink(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostUtimens

func (h *InjuredHook) PostUtimens(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PostWrite

func (h *InjuredHook) PostWrite(realRetCode int32, prehookCtx hookfs.HookContext) (bool, error)

func (*InjuredHook) PreAccess

func (h *InjuredHook) PreAccess(name string, mode uint32) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreAllocate

func (h *InjuredHook) PreAllocate(path string, off uint64, size uint64, mode uint32) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreChmod

func (h *InjuredHook) PreChmod(path string, perms uint32) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreChown

func (h *InjuredHook) PreChown(path string, uid uint32, gid uint32) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreCreate

func (h *InjuredHook) PreCreate(name string, flags uint32, mode uint32) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreFlush

func (h *InjuredHook) PreFlush(path string) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreFsync

func (h *InjuredHook) PreFsync(path string, flags uint32) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreGetAttr

func (h *InjuredHook) PreGetAttr(path string) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreGetLk

func (h *InjuredHook) PreGetLk(path string, owner uint64, lk *fuse.FileLock, flags uint32, out *fuse.FileLock) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreGetXAttr

func (h *InjuredHook) PreGetXAttr(name string, attribute string) (bool, hookfs.HookContext, error)
func (h *InjuredHook) PreLink(oldName string, newName string) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreListXAttr

func (h *InjuredHook) PreListXAttr(name string) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreMkdir

func (h *InjuredHook) PreMkdir(path string, mode uint32) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreMknod

func (h *InjuredHook) PreMknod(name string, mode uint32, dev uint32) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreOpen

func (h *InjuredHook) PreOpen(path string, flags uint32) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreOpenDir

func (h *InjuredHook) PreOpenDir(path string) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreRead

func (h *InjuredHook) PreRead(path string, length int64, offset int64) ([]byte, bool, hookfs.HookContext, error)
func (h *InjuredHook) PreReadlink(name string) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreRelease

func (h *InjuredHook) PreRelease(path string) (bool, hookfs.HookContext)

func (*InjuredHook) PreRemoveXAttr

func (h *InjuredHook) PreRemoveXAttr(name string, attr string) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreRename

func (h *InjuredHook) PreRename(oldName string, newName string) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreRmdir

func (h *InjuredHook) PreRmdir(path string) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreSetLk

func (h *InjuredHook) PreSetLk(path string, owner uint64, lk *fuse.FileLock, flags uint32) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreSetLkw

func (h *InjuredHook) PreSetLkw(path string, owner uint64, lk *fuse.FileLock, flags uint32) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreSetXAttr

func (h *InjuredHook) PreSetXAttr(name string, attr string, data []byte, flags int) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreStatFs

func (h *InjuredHook) PreStatFs(path string) (bool, hookfs.HookContext, error)
func (h *InjuredHook) PreSymlink(value string, linkName string) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreTruncate

func (h *InjuredHook) PreTruncate(path string, size uint64) (bool, hookfs.HookContext, error)
func (h *InjuredHook) PreUnlink(name string) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreUtimens

func (h *InjuredHook) PreUtimens(path string, atime *time.Time, mtime *time.Time) (bool, hookfs.HookContext, error)

func (*InjuredHook) PreWrite

func (h *InjuredHook) PreWrite(path string, buf []byte, offset int64) (bool, hookfs.HookContext, error)

type InjuredHookContext

type InjuredHookContext struct {
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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