fission-codes/webnative-elm/3.0.0

Formerly fission-suite/webnative-elm. Search finds this package by either name.

Webnative.FileSystem

type alias AssociatedIdentity =
{ rootDID : String
, username : Maybe String
}
type Base
= AppData AppInfo
| Private
| Public

Base of the WNFS action.

type alias Entry =
{ cid : CID
, name : String
, kind : Kind
, size : Int
}

Directory Entry.

-> { shareId : String
, sharedBy : String
}
-> Task ()
account : FileSystem -> Task AssociatedIdentity
deactivate : FileSystem -> Task ()
directoryEntriesDecoder : Decoder (List Entry)
encode : FileSystem -> Value
exists : FileSystem -> Base -> Path File -> Task Bool
historyStep : FileSystem -> Task ()
load : Program -> { username : String } -> Task FileSystem
ls : FileSystem -> Base -> Path Directory -> Task (List Entry)
mkdir : FileSystem -> Base -> Path Directory -> Task ()
mv :
-> Base
-> { from : Path k
, to : Path k
}
-> Task ()
read : FileSystem -> Base -> Path File -> Task Bytes
readUtf8 : FileSystem -> Base -> Path File -> Task String
ref : FileSystem -> Value
rm : FileSystem -> Base -> Path k -> Task ()
sharePrivate : FileSystem -> List (Path k) -> { shareWith : List String } -> Task ()
withRef : FileSystem -> Value -> Value
withRefSplat : FileSystem -> Value -> Value
write : FileSystem -> Base -> Path File -> Bytes -> Task ()
writeUtf8 : FileSystem -> Base -> Path File -> String -> Task ()