Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype SysrootUpgrader = SysrootUpgrader (ManagedPtr SysrootUpgrader)
- class (GObject o, IsDescendantOf SysrootUpgrader o) => IsSysrootUpgrader o
- toSysrootUpgrader :: (MonadIO m, IsSysrootUpgrader o) => o -> m SysrootUpgrader
- noSysrootUpgrader :: Maybe SysrootUpgrader
- sysrootUpgraderCheckTimestamps :: (HasCallStack, MonadIO m, IsRepo a) => a -> Text -> Text -> m ()
- sysrootUpgraderDeploy :: (HasCallStack, MonadIO m, IsSysrootUpgrader a, IsCancellable b) => a -> Maybe b -> m ()
- sysrootUpgraderDupOrigin :: (HasCallStack, MonadIO m, IsSysrootUpgrader a) => a -> m KeyFile
- sysrootUpgraderGetOrigin :: (HasCallStack, MonadIO m, IsSysrootUpgrader a) => a -> m KeyFile
- sysrootUpgraderGetOriginDescription :: (HasCallStack, MonadIO m, IsSysrootUpgrader a) => a -> m Text
- sysrootUpgraderNew :: (HasCallStack, MonadIO m, IsSysroot a, IsCancellable b) => a -> Maybe b -> m SysrootUpgrader
- sysrootUpgraderNewForOs :: (HasCallStack, MonadIO m, IsSysroot a, IsCancellable b) => a -> Maybe Text -> Maybe b -> m SysrootUpgrader
- sysrootUpgraderNewForOsWithFlags :: (HasCallStack, MonadIO m, IsSysroot a, IsCancellable b) => a -> Maybe Text -> [SysrootUpgraderFlags] -> Maybe b -> m SysrootUpgrader
- sysrootUpgraderPull :: (HasCallStack, MonadIO m, IsSysrootUpgrader a, IsAsyncProgress b, IsCancellable c) => a -> [RepoPullFlags] -> [SysrootUpgraderPullFlags] -> Maybe b -> Maybe c -> m Bool
- sysrootUpgraderPullOneDir :: (HasCallStack, MonadIO m, IsSysrootUpgrader a, IsAsyncProgress b, IsCancellable c) => a -> Text -> [RepoPullFlags] -> [SysrootUpgraderPullFlags] -> Maybe b -> Maybe c -> m Bool
- sysrootUpgraderSetOrigin :: (HasCallStack, MonadIO m, IsSysrootUpgrader a, IsCancellable b) => a -> Maybe KeyFile -> Maybe b -> m ()
- constructSysrootUpgraderFlags :: IsSysrootUpgrader o => [SysrootUpgraderFlags] -> IO (GValueConstruct o)
- getSysrootUpgraderFlags :: (MonadIO m, IsSysrootUpgrader o) => o -> m [SysrootUpgraderFlags]
- constructSysrootUpgraderOsname :: IsSysrootUpgrader o => Text -> IO (GValueConstruct o)
- getSysrootUpgraderOsname :: (MonadIO m, IsSysrootUpgrader o) => o -> m (Maybe Text)
- constructSysrootUpgraderSysroot :: (IsSysrootUpgrader o, IsSysroot a) => a -> IO (GValueConstruct o)
- getSysrootUpgraderSysroot :: (MonadIO m, IsSysrootUpgrader o) => o -> m (Maybe Sysroot)
Exported types
newtype SysrootUpgrader Source #
Memory-managed wrapper type.
Instances
Eq SysrootUpgrader Source # | |
Defined in GI.OSTree.Objects.SysrootUpgrader (==) :: SysrootUpgrader -> SysrootUpgrader -> Bool # (/=) :: SysrootUpgrader -> SysrootUpgrader -> Bool # | |
IsGValue SysrootUpgrader Source # | Convert |
Defined in GI.OSTree.Objects.SysrootUpgrader toGValue :: SysrootUpgrader -> IO GValue # fromGValue :: GValue -> IO SysrootUpgrader # | |
GObject SysrootUpgrader Source # | |
Defined in GI.OSTree.Objects.SysrootUpgrader gobjectType :: IO GType # | |
HasParentTypes SysrootUpgrader Source # | |
Defined in GI.OSTree.Objects.SysrootUpgrader | |
type ParentTypes SysrootUpgrader Source # | |
Defined in GI.OSTree.Objects.SysrootUpgrader |
class (GObject o, IsDescendantOf SysrootUpgrader o) => IsSysrootUpgrader o Source #
Type class for types which can be safely cast to SysrootUpgrader
, for instance with toSysrootUpgrader
.
Instances
(GObject o, IsDescendantOf SysrootUpgrader o) => IsSysrootUpgrader o Source # | |
Defined in GI.OSTree.Objects.SysrootUpgrader |
toSysrootUpgrader :: (MonadIO m, IsSysrootUpgrader o) => o -> m SysrootUpgrader Source #
Cast to SysrootUpgrader
, for types for which this is known to be safe. For general casts, use castTo
.
noSysrootUpgrader :: Maybe SysrootUpgrader Source #
A convenience alias for Nothing
:: Maybe
SysrootUpgrader
.
Methods
Overloaded methods
checkTimestamps
sysrootUpgraderCheckTimestamps Source #
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> m () | (Can throw |
Check that the timestamp on toRev
is equal to or newer than
fromRev
. This protects systems against man-in-the-middle
attackers which provide a client with an older commit.
deploy
sysrootUpgraderDeploy Source #
:: (HasCallStack, MonadIO m, IsSysrootUpgrader a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m () | (Can throw |
Write the new deployment to disk, perform a configuration merge with /etc, and update the bootloader configuration.
dupOrigin
sysrootUpgraderDupOrigin Source #
:: (HasCallStack, MonadIO m, IsSysrootUpgrader a) | |
=> a |
|
-> m KeyFile | Returns: A copy of the origin file, or |
No description available in the introspection data.
getOrigin
sysrootUpgraderGetOrigin Source #
:: (HasCallStack, MonadIO m, IsSysrootUpgrader a) | |
=> a |
|
-> m KeyFile | Returns: The origin file, or |
No description available in the introspection data.
getOriginDescription
sysrootUpgraderGetOriginDescription Source #
:: (HasCallStack, MonadIO m, IsSysrootUpgrader a) | |
=> a |
|
-> m Text | Returns: A one-line descriptive summary of the origin, or |
No description available in the introspection data.
new
:: (HasCallStack, MonadIO m, IsSysroot a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m SysrootUpgrader | Returns: An upgrader (Can throw |
No description available in the introspection data.
newForOs
sysrootUpgraderNewForOs Source #
:: (HasCallStack, MonadIO m, IsSysroot a, IsCancellable b) | |
=> a |
|
-> Maybe Text |
|
-> Maybe b |
|
-> m SysrootUpgrader | Returns: An upgrader (Can throw |
No description available in the introspection data.
newForOsWithFlags
sysrootUpgraderNewForOsWithFlags Source #
:: (HasCallStack, MonadIO m, IsSysroot a, IsCancellable b) | |
=> a |
|
-> Maybe Text |
|
-> [SysrootUpgraderFlags] |
|
-> Maybe b |
|
-> m SysrootUpgrader | Returns: An upgrader (Can throw |
No description available in the introspection data.
pull
:: (HasCallStack, MonadIO m, IsSysrootUpgrader a, IsAsyncProgress b, IsCancellable c) | |
=> a |
|
-> [RepoPullFlags] |
|
-> [SysrootUpgraderPullFlags] |
|
-> Maybe b |
|
-> Maybe c |
|
-> m Bool | (Can throw |
pullOneDir
sysrootUpgraderPullOneDir Source #
:: (HasCallStack, MonadIO m, IsSysrootUpgrader a, IsAsyncProgress b, IsCancellable c) | |
=> a |
|
-> Text |
|
-> [RepoPullFlags] |
|
-> [SysrootUpgraderPullFlags] |
|
-> Maybe b |
|
-> Maybe c |
|
-> m Bool | (Can throw |
Like sysrootUpgraderPull
, but allows retrieving just a
subpath of the tree. This can be used to download metadata files
from inside the tree such as package databases.
setOrigin
sysrootUpgraderSetOrigin Source #
:: (HasCallStack, MonadIO m, IsSysrootUpgrader a, IsCancellable b) | |
=> a |
|
-> Maybe KeyFile |
|
-> Maybe b |
|
-> m () | (Can throw |
Replace the origin with origin
.
Properties
flags
No description available in the introspection data.
constructSysrootUpgraderFlags :: IsSysrootUpgrader o => [SysrootUpgraderFlags] -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “flags
” property. This is rarely needed directly, but it is used by new
.
getSysrootUpgraderFlags :: (MonadIO m, IsSysrootUpgrader o) => o -> m [SysrootUpgraderFlags] Source #
Get the value of the “flags
” property.
When overloading is enabled, this is equivalent to
get
sysrootUpgrader #flags
osname
No description available in the introspection data.
constructSysrootUpgraderOsname :: IsSysrootUpgrader o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “osname
” property. This is rarely needed directly, but it is used by new
.
getSysrootUpgraderOsname :: (MonadIO m, IsSysrootUpgrader o) => o -> m (Maybe Text) Source #
Get the value of the “osname
” property.
When overloading is enabled, this is equivalent to
get
sysrootUpgrader #osname
sysroot
No description available in the introspection data.
constructSysrootUpgraderSysroot :: (IsSysrootUpgrader o, IsSysroot a) => a -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “sysroot
” property. This is rarely needed directly, but it is used by new
.
getSysrootUpgraderSysroot :: (MonadIO m, IsSysrootUpgrader o) => o -> m (Maybe Sysroot) Source #
Get the value of the “sysroot
” property.
When overloading is enabled, this is equivalent to
get
sysrootUpgrader #sysroot