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

GI.OSTree.Structs.RepoCommitModifier

Description

A structure allowing control over commits.

Synopsis

Exported types

newtype RepoCommitModifier Source #

Memory-managed wrapper type.

Constructors

RepoCommitModifier (ManagedPtr RepoCommitModifier) 

Instances

Instances details
Eq RepoCommitModifier Source # 
Instance details

Defined in GI.OSTree.Structs.RepoCommitModifier

GBoxed RepoCommitModifier Source # 
Instance details

Defined in GI.OSTree.Structs.RepoCommitModifier

ManagedPtrNewtype RepoCommitModifier Source # 
Instance details

Defined in GI.OSTree.Structs.RepoCommitModifier

TypedObject RepoCommitModifier Source # 
Instance details

Defined in GI.OSTree.Structs.RepoCommitModifier

Methods

glibType :: IO GType

HasParentTypes RepoCommitModifier Source # 
Instance details

Defined in GI.OSTree.Structs.RepoCommitModifier

IsGValue (Maybe RepoCommitModifier) Source #

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

Instance details

Defined in GI.OSTree.Structs.RepoCommitModifier

type ParentTypes RepoCommitModifier Source # 
Instance details

Defined in GI.OSTree.Structs.RepoCommitModifier

type ParentTypes RepoCommitModifier = '[] :: [Type]

Methods

Click to display all available methods, including inherited ones

Expand

Methods

ref, unref.

Getters

None.

Setters

setDevinoCache, setSepolicy, setSepolicyFromCommit, setXattrCallback.

new

repoCommitModifierNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> [RepoCommitModifierFlags]

flags: Control options for filter

-> Maybe RepoCommitFilter

commitFilter: Function that can inspect individual files

-> m RepoCommitModifier

Returns: A new commit modifier.

No description available in the introspection data.

ref

repoCommitModifierRef :: (HasCallStack, MonadIO m) => RepoCommitModifier -> m RepoCommitModifier Source #

No description available in the introspection data.

setDevinoCache

repoCommitModifierSetDevinoCache Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RepoCommitModifier

modifier: Modifier

-> RepoDevInoCache

cache: A hash table caching device,inode to checksums

-> m () 

See the documentation for ostree_repo_devino_cache_new(). This function can then be used for later calls to ostree_repo_write_directory_to_mtree() to optimize commits.

Note if your process has multiple writers, you should use separate OSTreeRepo instances if you want to also use this API.

This function will add a reference to cache without copying - you should avoid further mutation of the cache.

Since: 2017.13

setSepolicy

repoCommitModifierSetSepolicy Source #

Arguments

:: (HasCallStack, MonadIO m, IsSePolicy a) 
=> RepoCommitModifier

modifier: An RepoCommitModifier

-> Maybe a

sepolicy: Policy to use for labeling

-> m () 

If policy is non-Nothing, use it to look up labels to use for "security.selinux" extended attributes.

Note that any policy specified this way operates in addition to any extended attributes provided via repoCommitModifierSetXattrCallback. However if both specify a value for "security.selinux", then the one from the policy wins.

setSepolicyFromCommit

repoCommitModifierSetSepolicyFromCommit Source #

Arguments

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

modifier: Commit modifier

-> a

repo: OSTree repo containing rev

-> Text

rev: Find SELinux policy from this base commit

-> Maybe b 
-> m ()

(Can throw GError)

In many cases, one wants to create a "derived" commit from base commit. SELinux policy labels are part of that base commit. This API allows one to easily set up SELinux labeling from a base commit.

Since: 2020.4

setXattrCallback

repoCommitModifierSetXattrCallback Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RepoCommitModifier

modifier: An RepoCommitModifier

-> RepoCommitModifierXattrCallback

callback: Function to be invoked, should return extended attributes for path

-> m () 

If set, this function should return extended attributes to use for the given path. This is useful for things like ACLs and SELinux, where a build system can label the files as it's committing to the repository.

unref

repoCommitModifierUnref :: (HasCallStack, MonadIO m) => RepoCommitModifier -> m () Source #

No description available in the introspection data.