gi-ostree-1.0.15: 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.CommitSizesEntry

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.

newZeroCommitSizesEntry :: MonadIO m => m CommitSizesEntry Source #

Construct a CommitSizesEntry struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

copy, free.

Getters

None.

Setters

None.

copy

commitSizesEntryCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> CommitSizesEntry

entry: an CommitSizesEntry

-> 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 CommitSizesEntry

-> 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 CommitSizesEntry

Create a new CommitSizesEntry 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 ]