Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
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
- 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 (Maybe 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 (Maybe 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, IsDeployment a) => a -> m Word32
- deploymentIsFinalizationLocked :: (HasCallStack, MonadIO m, IsDeployment a) => a -> m Bool
- 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 -> Maybe Text -> Int32 -> m Deployment
- deploymentOriginRemoveTransientState :: (HasCallStack, MonadIO m) => KeyFile -> m ()
- deploymentSetBootconfig :: (HasCallStack, MonadIO m, IsDeployment a, IsBootconfigParser b) => a -> Maybe 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 -> Maybe KeyFile -> m ()
- deploymentUnlockedStateToString :: (HasCallStack, MonadIO m) => DeploymentUnlockedState -> m Text
Exported types
newtype Deployment Source #
Memory-managed wrapper type.
Deployment (ManagedPtr Deployment) |
Instances
Eq Deployment Source # | |
Defined in GI.OSTree.Objects.Deployment (==) :: Deployment -> Deployment -> Bool # (/=) :: Deployment -> Deployment -> Bool # | |
GObject Deployment Source # | |
Defined in GI.OSTree.Objects.Deployment | |
ManagedPtrNewtype Deployment Source # | |
Defined in GI.OSTree.Objects.Deployment toManagedPtr :: Deployment -> ManagedPtr Deployment | |
TypedObject Deployment Source # | |
Defined in GI.OSTree.Objects.Deployment | |
HasParentTypes Deployment Source # | |
Defined in GI.OSTree.Objects.Deployment | |
IsGValue (Maybe Deployment) Source # | Convert |
Defined in GI.OSTree.Objects.Deployment gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Deployment -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Deployment) | |
type ParentTypes Deployment Source # | |
Defined in GI.OSTree.Objects.Deployment type ParentTypes Deployment = '[Object] |
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
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, clone, equal, forceFloating, freezeNotify, getv, hash, isFinalizationLocked, isFloating, isPinned, isStaged, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getBootconfig, getBootcsum, getBootserial, getCsum, getData, getDeployserial, getIndex, getOrigin, getOriginRelpath, getOsname, getProperty, getQdata, getUnlocked.
Setters
setBootconfig, setBootserial, setData, setDataFull, setIndex, setOrigin, setProperty.
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 (Maybe 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
:: (HasCallStack, MonadIO m, IsDeployment a) | |
=> a |
|
-> m Int32 | Returns: The global index into the bootloader ordering |
No description available in the introspection data.
getOrigin
:: (HasCallStack, MonadIO m, IsDeployment a) | |
=> a |
|
-> m (Maybe 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.
Since: 2016.4
hash
:: (HasCallStack, MonadIO m, IsDeployment a) | |
=> a |
|
-> m Word32 | Returns: An integer suitable for use in a |
No description available in the introspection data.
isFinalizationLocked
deploymentIsFinalizationLocked Source #
:: (HasCallStack, MonadIO m, IsDeployment a) | |
=> a |
|
-> m Bool | Returns: |
No description available in the introspection data.
Since: 2023.8
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
:: (HasCallStack, MonadIO m) | |
=> Int32 |
|
-> Text |
|
-> Text |
|
-> Int32 |
|
-> Maybe Text |
|
-> Int32 |
|
-> m Deployment | Returns: New deployment |
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 Source #
:: (HasCallStack, MonadIO m, IsDeployment a, IsBootconfigParser b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Set or clear the bootloader configuration.
setBootserial
deploymentSetBootserial Source #
:: (HasCallStack, MonadIO m, IsDeployment a) | |
=> a |
|
-> Int32 |
|
-> m () |
Should never have been made public API; don't use this.
setIndex
:: (HasCallStack, MonadIO m, IsDeployment a) | |
=> a |
|
-> Int32 |
|
-> m () |
Sets the global index into the bootloader ordering.
setOrigin
:: (HasCallStack, MonadIO m, IsDeployment a) | |
=> a |
|
-> Maybe KeyFile |
|
-> m () |
Replace the "origin", which is a description of the source of the deployment and how to update to the next version.
unlockedStateToString
deploymentUnlockedStateToString Source #
:: (HasCallStack, MonadIO m) | |
=> DeploymentUnlockedState | |
-> m Text | Returns: Description of state |
No description available in the introspection data.
Since: 2016.4