gi-ostree-1.0.12: OSTree bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.OSTree.Objects.Deployment

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Deployment Source #

Memory-managed wrapper type.

Instances

Instances details
Eq Deployment Source # 
Instance details

Defined in GI.OSTree.Objects.Deployment

IsGValue Deployment Source #

Convert Deployment to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.OSTree.Objects.Deployment

GObject Deployment Source # 
Instance details

Defined in GI.OSTree.Objects.Deployment

Methods

gobjectType :: IO GType #

HasParentTypes Deployment Source # 
Instance details

Defined in GI.OSTree.Objects.Deployment

type ParentTypes Deployment Source # 
Instance details

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

Instances details
(GObject o, IsDescendantOf Deployment o) => IsDeployment o Source # 
Instance details

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

Overloaded methods

clone

deploymentClone Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeployment a) 
=> a

self: Deployment

-> m Deployment

Returns: New deep copy of self

No description available in the introspection data.

equal

deploymentEqual Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeployment a, IsDeployment b) 
=> a

ap: A deployment

-> b

bp: A deployment

-> m Bool

Returns: True if deployments have the same osname, csum, and deployserial

No description available in the introspection data.

getBootconfig

deploymentGetBootconfig Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeployment a) 
=> a

self: Deployment

-> 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

deploymentGetOrigin Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeployment a) 
=> a

self: Deployment

-> m KeyFile

Returns: Origin

No description available in the introspection data.

getOriginRelpath

deploymentGetOriginRelpath Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeployment a) 
=> a

self: A deployment

-> 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

deploymentIsPinned Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeployment a) 
=> a

self: Deployment

-> m Bool

Returns: TRUE if deployment will not be subject to GC

See sysrootDeploymentSetPinned.

Since: 2018.3

isStaged

deploymentIsStaged Source #

Arguments

:: (HasCallStack, MonadIO m, IsDeployment a) 
=> a

self: Deployment

-> m Bool

Returns: TRUE if deployment should be "finalized" at shutdown time

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 #

Arguments

:: (HasCallStack, MonadIO m) 
=> KeyFile

origin: An origin

-> 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.