gi-ostree-1.0.2: OSTree bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.OSTree.Objects.SysrootUpgrader

Contents

Description

 

Synopsis

Exported types

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 
-> 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 
-> 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 
-> 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 
-> Text 
-> [RepoPullFlags] 
-> [SysrootUpgraderPullFlags] 
-> b 
-> Bool 
-> Maybe c 
-> m ()

(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

data SysrootUpgraderFlagsPropertyInfo Source #

Instances

AttrInfo SysrootUpgraderFlagsPropertyInfo Source # 
type AttrOrigin SysrootUpgraderFlagsPropertyInfo Source # 
type AttrLabel SysrootUpgraderFlagsPropertyInfo Source # 
type AttrGetType SysrootUpgraderFlagsPropertyInfo Source # 
type AttrBaseTypeConstraint SysrootUpgraderFlagsPropertyInfo Source # 
type AttrSetTypeConstraint SysrootUpgraderFlagsPropertyInfo Source # 
type AttrAllowedOps SysrootUpgraderFlagsPropertyInfo Source # 

osname

data SysrootUpgraderOsnamePropertyInfo Source #

Instances

AttrInfo SysrootUpgraderOsnamePropertyInfo Source # 
type AttrOrigin SysrootUpgraderOsnamePropertyInfo Source # 
type AttrLabel SysrootUpgraderOsnamePropertyInfo Source # 
type AttrGetType SysrootUpgraderOsnamePropertyInfo Source # 
type AttrBaseTypeConstraint SysrootUpgraderOsnamePropertyInfo Source # 
type AttrSetTypeConstraint SysrootUpgraderOsnamePropertyInfo Source # 
type AttrAllowedOps SysrootUpgraderOsnamePropertyInfo Source # 

sysroot

data SysrootUpgraderSysrootPropertyInfo Source #

Instances

AttrInfo SysrootUpgraderSysrootPropertyInfo Source # 
type AttrOrigin SysrootUpgraderSysrootPropertyInfo Source # 
type AttrLabel SysrootUpgraderSysrootPropertyInfo Source # 
type AttrGetType SysrootUpgraderSysrootPropertyInfo Source # 
type AttrBaseTypeConstraint SysrootUpgraderSysrootPropertyInfo Source # 
type AttrSetTypeConstraint SysrootUpgraderSysrootPropertyInfo Source # 
type AttrAllowedOps SysrootUpgraderSysrootPropertyInfo Source #