gi-ggit-1.0.6: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Objects.BlobOutputStream

Contents

Description

Represents a blob stream object.

Synopsis

Exported types

newtype BlobOutputStream Source #

Memory-managed wrapper type.

Constructors

BlobOutputStream (ManagedPtr BlobOutputStream) 
Instances
GObject BlobOutputStream Source # 
Instance details

Defined in GI.Ggit.Objects.BlobOutputStream

Methods

gobjectType :: IO GType

HasParentTypes BlobOutputStream Source # 
Instance details

Defined in GI.Ggit.Objects.BlobOutputStream

type ParentTypes BlobOutputStream Source # 
Instance details

Defined in GI.Ggit.Objects.BlobOutputStream

type ParentTypes BlobOutputStream = OutputStream ': (Object ': ([] :: [Type]))

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
(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, IsRepository a) => a -> IO (GValueConstruct o) Source #

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