gi-ggit-1.0.11: libgit2-glib bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Ggit.Objects.BlobOutputStream

Description

Represents a blob stream object.

Synopsis

Exported types

class (GObject o, IsDescendantOf BlobOutputStream o) => IsBlobOutputStream o Source #

Type class for types which can be safely cast to BlobOutputStream, for instance with toBlobOutputStream.

Instances

Instances details
(GObject o, IsDescendantOf BlobOutputStream o) => IsBlobOutputStream o Source # 
Instance details

Defined in GI.Ggit.Objects.BlobOutputStream

toBlobOutputStream :: (MonadIO m, IsBlobOutputStream o) => o -> m BlobOutputStream Source #

Cast to BlobOutputStream, for types for which this is known to be safe. For general casts, use castTo.

Methods

getId

blobOutputStreamGetId Source #

Arguments

:: (HasCallStack, MonadIO m, IsBlobOutputStream a) 
=> a

stream: a BlobOutputStream.

-> m (Maybe OId)

Returns: a OId or Nothing. (Can throw GError)

Get the id of the written blob. The blob id is only available after the stream has been properly closed. If an error occurred while writing the blob, the Nothing is returned and error is set accordingly.

Properties

repository

No description available in the introspection data.

constructBlobOutputStreamRepository :: (IsBlobOutputStream o, MonadIO m, IsRepository a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “repository” property. This is rarely needed directly, but it is used by new.