gi-ostree-1.0.18: OSTree bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.OSTree.Objects.SysrootUpgrader

Description

No description available in the introspection data.

Synopsis

Exported types

newtype SysrootUpgrader Source #

Memory-managed wrapper type.

Constructors

SysrootUpgrader (ManagedPtr SysrootUpgrader) 

Instances

Instances details
Eq SysrootUpgrader Source # 
Instance details

Defined in GI.OSTree.Objects.SysrootUpgrader

GObject SysrootUpgrader Source # 
Instance details

Defined in GI.OSTree.Objects.SysrootUpgrader

ManagedPtrNewtype SysrootUpgrader Source # 
Instance details

Defined in GI.OSTree.Objects.SysrootUpgrader

TypedObject SysrootUpgrader Source # 
Instance details

Defined in GI.OSTree.Objects.SysrootUpgrader

Methods

glibType :: IO GType

HasParentTypes SysrootUpgrader Source # 
Instance details

Defined in GI.OSTree.Objects.SysrootUpgrader

IsGValue (Maybe SysrootUpgrader) Source #

Convert SysrootUpgrader to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.OSTree.Objects.SysrootUpgrader

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe SysrootUpgrader -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe SysrootUpgrader)

type ParentTypes SysrootUpgrader Source # 
Instance details

Defined in GI.OSTree.Objects.SysrootUpgrader

type ParentTypes SysrootUpgrader = '[Object, Initable]

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

Instances details
(GObject o, IsDescendantOf SysrootUpgrader o) => IsSysrootUpgrader o Source # 
Instance details

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.

Methods

checkTimestamps

sysrootUpgraderCheckTimestamps Source #

Arguments

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

repo: Repo

-> Text

fromRev: From revision

-> Text

toRev: To revision

-> m ()

(Can throw GError)

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 #

Arguments

:: (HasCallStack, MonadIO m, IsSysrootUpgrader a, IsCancellable b) 
=> a

self: Self

-> Maybe b

cancellable: Cancellable

-> m ()

(Can throw GError)

Write the new deployment to disk, perform a configuration merge with /etc, and update the bootloader configuration.

dupOrigin

sysrootUpgraderDupOrigin Source #

Arguments

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

self: Sysroot

-> m (Maybe KeyFile)

Returns: A copy of the origin file, or Nothing if unknown.

No description available in the introspection data.

getOrigin

sysrootUpgraderGetOrigin Source #

Arguments

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

self: Sysroot

-> m (Maybe KeyFile)

Returns: The origin file, or Nothing if unknown.

No description available in the introspection data.

getOriginDescription

sysrootUpgraderGetOriginDescription Source #

Arguments

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

self: Upgrader

-> m (Maybe Text)

Returns: A one-line descriptive summary of the origin, or Nothing if unknown.

No description available in the introspection data.

new

sysrootUpgraderNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsSysroot a, IsCancellable b) 
=> a

sysroot: An Sysroot

-> Maybe b

cancellable: Cancellable

-> m SysrootUpgrader

Returns: An upgrader (Can throw GError)

No description available in the introspection data.

newForOs

sysrootUpgraderNewForOs Source #

Arguments

:: (HasCallStack, MonadIO m, IsSysroot a, IsCancellable b) 
=> a

sysroot: An Sysroot

-> Maybe Text

osname: Operating system name

-> Maybe b

cancellable: Cancellable

-> m SysrootUpgrader

Returns: An upgrader (Can throw GError)

No description available in the introspection data.

newForOsWithFlags

sysrootUpgraderNewForOsWithFlags Source #

Arguments

:: (HasCallStack, MonadIO m, IsSysroot a, IsCancellable b) 
=> a

sysroot: An Sysroot

-> Maybe Text

osname: Operating system name

-> [SysrootUpgraderFlags]

flags: Flags

-> Maybe b

cancellable: Cancellable

-> m SysrootUpgrader

Returns: An upgrader (Can throw GError)

No description available in the introspection data.

pull

sysrootUpgraderPull Source #

Arguments

:: (HasCallStack, MonadIO m, IsSysrootUpgrader a, IsAsyncProgress b, IsCancellable c) 
=> a

self: Upgrader

-> [RepoPullFlags]

flags: Flags controlling pull behavior

-> [SysrootUpgraderPullFlags]

upgraderFlags: Flags controlling upgrader behavior

-> Maybe b

progress: Progress

-> Maybe c

cancellable: Cancellable

-> m Bool

(Can throw GError)

Perform a pull from the origin. First check if the ref has changed, if so download the linked objects, and store the updated ref locally. Then outChanged will be True.

If the origin remote is unchanged, outChanged will be set to False.

pullOneDir

sysrootUpgraderPullOneDir Source #

Arguments

:: (HasCallStack, MonadIO m, IsSysrootUpgrader a, IsAsyncProgress b, IsCancellable c) 
=> a

self: Upgrader

-> Text

dirToPull: Subdirectory path (should include a leading /)

-> [RepoPullFlags]

flags: Flags controlling pull behavior

-> [SysrootUpgraderPullFlags]

upgraderFlags: Flags controlling upgrader behavior

-> Maybe b

progress: Progress

-> Maybe c

cancellable: Cancellable

-> m Bool

(Can throw GError)

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 #

Arguments

:: (HasCallStack, MonadIO m, IsSysrootUpgrader a, IsCancellable b) 
=> a

self: Sysroot

-> Maybe KeyFile

origin: The new origin

-> Maybe b

cancellable: Cancellable

-> m ()

(Can throw GError)

Replace the origin with origin.

Properties

flags

No description available in the introspection data.

constructSysrootUpgraderFlags :: (IsSysrootUpgrader o, MonadIO m) => [SysrootUpgraderFlags] -> m (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, MonadIO m) => Text -> m (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, MonadIO m, IsSysroot a) => a -> m (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