gi-ostree-1.0.12: OSTree bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.OSTree.Structs.CommitSizesEntry

Contents

Description

Structure representing an entry in the "ostree.sizes" commit metadata. Each entry corresponds to an object in the associated commit.

Since: 2020.1

Synopsis

Exported types

newtype CommitSizesEntry Source #

Memory-managed wrapper type.

Constructors

CommitSizesEntry (ManagedPtr CommitSizesEntry) 
Instances
Eq CommitSizesEntry Source # 
Instance details

Defined in GI.OSTree.Structs.CommitSizesEntry

BoxedObject CommitSizesEntry Source # 
Instance details

Defined in GI.OSTree.Structs.CommitSizesEntry

Methods

boxedType :: CommitSizesEntry -> IO GType

IsGValue CommitSizesEntry Source #

Convert CommitSizesEntry to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.OSTree.Structs.CommitSizesEntry

Methods

toGValue :: CommitSizesEntry -> IO GValue

fromGValue :: GValue -> IO CommitSizesEntry

tag ~ AttrSet => Constructible CommitSizesEntry tag Source # 
Instance details

Defined in GI.OSTree.Structs.CommitSizesEntry

Methods

new :: MonadIO m => (ManagedPtr CommitSizesEntry -> CommitSizesEntry) -> [AttrOp CommitSizesEntry tag] -> m CommitSizesEntry

newZeroCommitSizesEntry :: MonadIO m => m CommitSizesEntry Source #

Construct a CommitSizesEntry struct initialized to zero.

noCommitSizesEntry :: Maybe CommitSizesEntry Source #

A convenience alias for Nothing :: Maybe CommitSizesEntry.

Methods

Overloaded methods

copy

commitSizesEntryCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> CommitSizesEntry

entry: an tCommitSizesEntry

-> m (Maybe CommitSizesEntry)

Returns: a new copy of entry

Create a copy of the given entry.

Since: 2020.1

free

commitSizesEntryFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> CommitSizesEntry

entry: an tCommitSizesEntry

-> m () 

Free given entry.

Since: 2020.1

new

commitSizesEntryNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

checksum: object checksum

-> ObjectType

objtype: object type

-> Word64

unpacked: unpacked object size

-> Word64

archived: compressed object size

-> m (Maybe CommitSizesEntry)

Returns: a new tCommitSizesEntry

Create a new tCommitSizesEntry for representing an object in a commit's "ostree.sizes" metadata.

Since: 2020.1

Properties

archived

compressed object size

getCommitSizesEntryArchived :: MonadIO m => CommitSizesEntry -> m Word64 Source #

Get the value of the “archived” field. When overloading is enabled, this is equivalent to

get commitSizesEntry #archived

setCommitSizesEntryArchived :: MonadIO m => CommitSizesEntry -> Word64 -> m () Source #

Set the value of the “archived” field. When overloading is enabled, this is equivalent to

set commitSizesEntry [ #archived := value ]

checksum

object checksum

clearCommitSizesEntryChecksum :: MonadIO m => CommitSizesEntry -> m () Source #

Set the value of the “checksum” field to Nothing. When overloading is enabled, this is equivalent to

clear #checksum

getCommitSizesEntryChecksum :: MonadIO m => CommitSizesEntry -> m (Maybe Text) Source #

Get the value of the “checksum” field. When overloading is enabled, this is equivalent to

get commitSizesEntry #checksum

setCommitSizesEntryChecksum :: MonadIO m => CommitSizesEntry -> CString -> m () Source #

Set the value of the “checksum” field. When overloading is enabled, this is equivalent to

set commitSizesEntry [ #checksum := value ]

objtype

object type

getCommitSizesEntryObjtype :: MonadIO m => CommitSizesEntry -> m ObjectType Source #

Get the value of the “objtype” field. When overloading is enabled, this is equivalent to

get commitSizesEntry #objtype

setCommitSizesEntryObjtype :: MonadIO m => CommitSizesEntry -> ObjectType -> m () Source #

Set the value of the “objtype” field. When overloading is enabled, this is equivalent to

set commitSizesEntry [ #objtype := value ]

unpacked

unpacked object size

getCommitSizesEntryUnpacked :: MonadIO m => CommitSizesEntry -> m Word64 Source #

Get the value of the “unpacked” field. When overloading is enabled, this is equivalent to

get commitSizesEntry #unpacked

setCommitSizesEntryUnpacked :: MonadIO m => CommitSizesEntry -> Word64 -> m () Source #

Set the value of the “unpacked” field. When overloading is enabled, this is equivalent to

set commitSizesEntry [ #unpacked := value ]