gi-ostree-1.0.14: OSTree bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
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.

Constructors

CommitSizesEntry (ManagedPtr CommitSizesEntry) 

Instances

Instances details
Eq CommitSizesEntry Source # 
Instance details

Defined in GI.OSTree.Structs.CommitSizesEntry

GBoxed CommitSizesEntry Source # 
Instance details

Defined in GI.OSTree.Structs.CommitSizesEntry

ManagedPtrNewtype CommitSizesEntry Source # 
Instance details

Defined in GI.OSTree.Structs.CommitSizesEntry

TypedObject CommitSizesEntry Source # 
Instance details

Defined in GI.OSTree.Structs.CommitSizesEntry

Methods

glibType :: IO GType

HasParentTypes CommitSizesEntry Source # 
Instance details

Defined in GI.OSTree.Structs.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

IsGValue (Maybe CommitSizesEntry) Source #

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

Instance details

Defined in GI.OSTree.Structs.CommitSizesEntry

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe CommitSizesEntry -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe CommitSizesEntry)

type ParentTypes CommitSizesEntry Source # 
Instance details

Defined in GI.OSTree.Structs.CommitSizesEntry

type ParentTypes CommitSizesEntry = '[] :: [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 ]