| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.OSTree.Objects.MutableTree
Contents
Description
Private instance structure.
- newtype MutableTree = MutableTree (ManagedPtr MutableTree)
- class GObject o => IsMutableTree o
- toMutableTree :: (MonadIO m, IsMutableTree o) => o -> m MutableTree
- noMutableTree :: Maybe MutableTree
- mutableTreeEnsureDir :: (HasCallStack, MonadIO m, IsMutableTree a, IsMutableTree b) => a -> Text -> b -> m ()
- mutableTreeEnsureParentDirs :: (HasCallStack, MonadIO m, IsMutableTree a) => a -> [Text] -> Text -> m MutableTree
- mutableTreeGetContentsChecksum :: (HasCallStack, MonadIO m, IsMutableTree a) => a -> m Text
- mutableTreeGetFiles :: (HasCallStack, MonadIO m, IsMutableTree a) => a -> m (Map Text Text)
- mutableTreeGetMetadataChecksum :: (HasCallStack, MonadIO m, IsMutableTree a) => a -> m Text
- mutableTreeLookup :: (HasCallStack, MonadIO m, IsMutableTree a, IsMutableTree b) => a -> Text -> Text -> b -> m ()
- mutableTreeNew :: (HasCallStack, MonadIO m) => m MutableTree
- mutableTreeReplaceFile :: (HasCallStack, MonadIO m, IsMutableTree a) => a -> Text -> Text -> m ()
- mutableTreeSetContentsChecksum :: (HasCallStack, MonadIO m, IsMutableTree a) => a -> Text -> m ()
- mutableTreeSetMetadataChecksum :: (HasCallStack, MonadIO m, IsMutableTree a) => a -> Text -> m ()
- mutableTreeWalk :: (HasCallStack, MonadIO m, IsMutableTree a) => a -> [Text] -> Word32 -> m MutableTree
Exported types
class GObject o => IsMutableTree o Source #
Instances
toMutableTree :: (MonadIO m, IsMutableTree o) => o -> m MutableTree Source #
Methods
ensureDir
Arguments
| :: (HasCallStack, MonadIO m, IsMutableTree a, IsMutableTree b) | |
| => a | |
| -> Text | |
| -> b | |
| -> m () | (Can throw |
No description available in the introspection data.
ensureParentDirs
mutableTreeEnsureParentDirs Source #
Arguments
| :: (HasCallStack, MonadIO m, IsMutableTree a) | |
| => a |
|
| -> [Text] |
|
| -> Text |
|
| -> m MutableTree | (Can throw |
Create all parent trees necessary for the given splitPath to
exist.
getContentsChecksum
mutableTreeGetContentsChecksum :: (HasCallStack, MonadIO m, IsMutableTree a) => a -> m Text Source #
No description available in the introspection data.
getFiles
Arguments
| :: (HasCallStack, MonadIO m, IsMutableTree a) | |
| => a | |
| -> m (Map Text Text) | Returns: All children files (the value is a checksum) |
No description available in the introspection data.
getMetadataChecksum
mutableTreeGetMetadataChecksum :: (HasCallStack, MonadIO m, IsMutableTree a) => a -> m Text Source #
No description available in the introspection data.
lookup
Arguments
| :: (HasCallStack, MonadIO m, IsMutableTree a, IsMutableTree b) | |
| => a | |
| -> Text | |
| -> Text | |
| -> b | |
| -> m () | (Can throw |
No description available in the introspection data.
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m MutableTree | Returns: A new tree |
No description available in the introspection data.
replaceFile
mutableTreeReplaceFile Source #
Arguments
| :: (HasCallStack, MonadIO m, IsMutableTree a) | |
| => a | |
| -> Text | |
| -> Text | |
| -> m () | (Can throw |
No description available in the introspection data.
setContentsChecksum
mutableTreeSetContentsChecksum :: (HasCallStack, MonadIO m, IsMutableTree a) => a -> Text -> m () Source #
No description available in the introspection data.
setMetadataChecksum
mutableTreeSetMetadataChecksum :: (HasCallStack, MonadIO m, IsMutableTree a) => a -> Text -> m () Source #
No description available in the introspection data.
walk
Arguments
| :: (HasCallStack, MonadIO m, IsMutableTree a) | |
| => a |
|
| -> [Text] |
|
| -> Word32 |
|
| -> m MutableTree | (Can throw |
Traverse start number of elements starting from splitPath; the
child will be returned in outSubdir.