gi-ostree-1.0.11: OSTree bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.OSTree.Objects.SysrootUpgrader

Contents

Description

No description available in the introspection data.

Synopsis

Exported types

class (GObject o, IsDescendantOf SysrootUpgrader o) => IsSysrootUpgrader o Source #

Type class for types which can be safely cast to SysrootUpgrader, for instance with toSysrootUpgrader.

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