Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype Deployment = Deployment (ManagedPtr Deployment)
- class (GObject o, IsDescendantOf Deployment o) => IsDeployment o
- toDeployment :: (MonadIO m, IsDeployment o) => o -> m Deployment
- noDeployment :: Maybe Deployment
- deploymentClone :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Deployment
- deploymentEqual :: (HasCallStack, MonadIO m, IsDeployment a, IsDeployment b) => a -> b -> m Bool
- deploymentGetBootconfig :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m BootconfigParser
- deploymentGetBootcsum :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Text
- deploymentGetBootserial :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Int32
- deploymentGetCsum :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Text
- deploymentGetDeployserial :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Int32
- deploymentGetIndex :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Int32
- deploymentGetOrigin :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m KeyFile
- deploymentGetOriginRelpath :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Text
- deploymentGetOsname :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Text
- deploymentGetUnlocked :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m DeploymentUnlockedState
- deploymentHash :: (HasCallStack, MonadIO m) => Ptr () -> m Word32
- deploymentIsPinned :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Bool
- deploymentIsStaged :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Bool
- deploymentNew :: (HasCallStack, MonadIO m) => Int32 -> Text -> Text -> Int32 -> Text -> Int32 -> m Deployment
- deploymentOriginRemoveTransientState :: (HasCallStack, MonadIO m) => KeyFile -> m ()
- deploymentSetBootconfig :: (HasCallStack, MonadIO m, IsDeployment a, IsBootconfigParser b) => a -> b -> m ()
- deploymentSetBootserial :: (HasCallStack, MonadIO m, IsDeployment a) => a -> Int32 -> m ()
- deploymentSetIndex :: (HasCallStack, MonadIO m, IsDeployment a) => a -> Int32 -> m ()
- deploymentSetOrigin :: (HasCallStack, MonadIO m, IsDeployment a) => a -> KeyFile -> m ()
- deploymentUnlockedStateToString :: (HasCallStack, MonadIO m) => DeploymentUnlockedState -> m Text
Exported types
newtype Deployment Source #
Memory-managed wrapper type.
Deployment (ManagedPtr Deployment) |
Instances
GObject Deployment Source # | |
Defined in GI.OSTree.Objects.Deployment gobjectType :: IO GType | |
HasParentTypes Deployment Source # | |
Defined in GI.OSTree.Objects.Deployment | |
type ParentTypes Deployment Source # | |
Defined in GI.OSTree.Objects.Deployment |
class (GObject o, IsDescendantOf Deployment o) => IsDeployment o Source #
Type class for types which can be safely cast to Deployment
, for instance with toDeployment
.
Instances
(GObject o, IsDescendantOf Deployment o) => IsDeployment o Source # | |
Defined in GI.OSTree.Objects.Deployment |
toDeployment :: (MonadIO m, IsDeployment o) => o -> m Deployment Source #
Cast to Deployment
, for types for which this is known to be safe. For general casts, use castTo
.
noDeployment :: Maybe Deployment Source #
A convenience alias for Nothing
:: Maybe
Deployment
.
Methods
clone
:: (HasCallStack, MonadIO m, IsDeployment a) | |
=> a |
|
-> m Deployment | Returns: New deep copy of |
No description available in the introspection data.
equal
:: (HasCallStack, MonadIO m, IsDeployment a, IsDeployment b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: |
No description available in the introspection data.
getBootconfig
deploymentGetBootconfig Source #
:: (HasCallStack, MonadIO m, IsDeployment a) | |
=> a |
|
-> m BootconfigParser | Returns: Boot configuration |
No description available in the introspection data.
getBootcsum
deploymentGetBootcsum :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Text Source #
No description available in the introspection data.
getBootserial
deploymentGetBootserial :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Int32 Source #
No description available in the introspection data.
getCsum
deploymentGetCsum :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Text Source #
No description available in the introspection data.
getDeployserial
deploymentGetDeployserial :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Int32 Source #
No description available in the introspection data.
getIndex
deploymentGetIndex :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Int32 Source #
No description available in the introspection data.
getOrigin
:: (HasCallStack, MonadIO m, IsDeployment a) | |
=> a |
|
-> m KeyFile | Returns: Origin |
No description available in the introspection data.
getOriginRelpath
deploymentGetOriginRelpath Source #
:: (HasCallStack, MonadIO m, IsDeployment a) | |
=> a |
|
-> m Text | Returns: Path to deployment root directory, relative to sysroot |
Note this function only returns a *relative* path - if you want to
access, it, you must either use fd-relative api such as openat()
,
or concatenate it with the full sysrootGetPath
.
getOsname
deploymentGetOsname :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Text Source #
No description available in the introspection data.
getUnlocked
deploymentGetUnlocked :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m DeploymentUnlockedState Source #
No description available in the introspection data.
hash
deploymentHash :: (HasCallStack, MonadIO m) => Ptr () -> m Word32 Source #
No description available in the introspection data.
isPinned
:: (HasCallStack, MonadIO m, IsDeployment a) | |
=> a |
|
-> m Bool | Returns: |
See sysrootDeploymentSetPinned
.
Since: 2018.3
isStaged
:: (HasCallStack, MonadIO m, IsDeployment a) | |
=> a |
|
-> m Bool | Returns: |
No description available in the introspection data.
Since: 2018.3
new
deploymentNew :: (HasCallStack, MonadIO m) => Int32 -> Text -> Text -> Int32 -> Text -> Int32 -> m Deployment Source #
No description available in the introspection data.
originRemoveTransientState
deploymentOriginRemoveTransientState Source #
:: (HasCallStack, MonadIO m) | |
=> KeyFile |
|
-> m () |
The intention of an origin file is primarily describe the "inputs" that resulted in a deployment, and it's commonly used to derive the new state. For example, a key value (in pure libostree mode) is the "refspec". However, libostree (or other applications) may want to store "transient" state that should not be carried across upgrades.
This function just removes all members of the libostree-transient
group.
The name of that group is available to all libostree users; best practice
would be to prefix values underneath there with a short identifier for your
software.
Additionally, this function will remove the origin/unlocked
and
origin/override-commit
members; these should be considered transient state
that should have been under an explicit group.
Since: 2018.3
setBootconfig
deploymentSetBootconfig :: (HasCallStack, MonadIO m, IsDeployment a, IsBootconfigParser b) => a -> b -> m () Source #
No description available in the introspection data.
setBootserial
deploymentSetBootserial :: (HasCallStack, MonadIO m, IsDeployment a) => a -> Int32 -> m () Source #
No description available in the introspection data.
setIndex
deploymentSetIndex :: (HasCallStack, MonadIO m, IsDeployment a) => a -> Int32 -> m () Source #
No description available in the introspection data.
setOrigin
deploymentSetOrigin :: (HasCallStack, MonadIO m, IsDeployment a) => a -> KeyFile -> m () Source #
No description available in the introspection data.
unlockedStateToString
deploymentUnlockedStateToString :: (HasCallStack, MonadIO m) => DeploymentUnlockedState -> m Text Source #
No description available in the introspection data.