hadfs-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

HADFS

Contents

Documentation

type HT = () #

type FSMap = Map FilePath FileStat #

type FSError = (Errno, String) #

data ObjectCategory #

Constructors

Person 
Default 
Instances
Eq ObjectCategory # 
Instance details

Defined in HADFS

Show ObjectCategory # 
Instance details

Defined in HADFS

Methods

showsPrec :: Int -> ObjectCategory -> ShowS

show :: ObjectCategory -> String

showList :: [ObjectCategory] -> ShowS

data AttrWriteMode #

Constructors

LdifMode 
JsonMode 

data State #

Constructors

State 

Fields

hadfsInit :: String -> String -> Int -> FilePath -> FilePath -> Logger -> IO () #

fInit :: State -> IO () #

exceptionHandler :: TVar FSError -> FilePath -> SomeException -> IO Errno #

getFileStat :: State -> FilePath -> IO (Either Errno FileStat) #

openD :: State -> [Char] -> IO Errno #

refreshHooks :: State -> ObjectCategory -> FilePath -> IO () #

createIfNotDeleted :: FilePath -> String -> IO () #

refresh :: State -> FilePath -> IO () #

readD :: State -> FilePath -> IO (Either Errno [(FilePath, FileStat)]) #

openF :: State -> FilePath -> OpenMode -> OpenFileFlags -> IO (Either Errno HT) #

readF :: State -> FilePath -> HT -> ByteCount -> FileOffset -> IO (Either Errno ByteString) #

getFileSystemStats :: State -> String -> IO (Either Errno FileSystemStats) #

unlink :: State -> FilePath -> IO Errno #

rmdir :: State -> FilePath -> IO Errno #

cleanCacheDir :: State -> FilePath -> IO Errno #

create :: State -> FilePath -> EntryType -> FileMode -> DeviceID -> IO Errno #

setFTime :: State -> FilePath -> EpochTime -> EpochTime -> IO Errno #

setFSize :: State -> FilePath -> FileOffset -> IO Errno #

write :: State -> FilePath -> HT -> ByteString -> FileOffset -> IO (Either Errno ByteCount) #

changeUserPassword :: State -> FilePath -> HT -> ByteString -> FileOffset -> IO (Either Errno ByteCount) #

writeAttrs :: State -> FilePath -> HT -> ByteString -> FileOffset -> AttrWriteMode -> IO (Either Errno ByteCount) #

mkdir :: State -> FilePath -> FileMode -> IO Errno #

searchHandler :: State -> FilePath -> HT -> ByteString -> FileOffset -> IO (Either Errno ByteCount) #

mv :: State -> FilePath -> FilePath -> IO Errno #

Orphan instances

Show (String -> IO ()) # 
Instance details

Methods

showsPrec :: Int -> (String -> IO ()) -> ShowS

show :: (String -> IO ()) -> String

showList :: [String -> IO ()] -> ShowS