gi-ostree-1.0.11: OSTree 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.OSTree.Structs.Remote

Contents

Description

This represents the configuration for a single remote repository. Currently, remotes can only be passed around as (reference counted) opaque handles. In future, more API may be added to create and interrogate them.

Since: 2018.6

Synopsis

Exported types

newtype Remote Source #

Memory-managed wrapper type.

Constructors

Remote (ManagedPtr Remote) 
Instances
BoxedObject Remote Source # 
Instance details

Defined in GI.OSTree.Structs.Remote

Methods

boxedType :: Remote -> IO GType #

noRemote :: Maybe Remote Source #

A convenience alias for Nothing :: Maybe Remote.

Methods

getName

remoteGetName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Remote

remote: an Remote

-> m Text

Returns: remote’s name

Get the human-readable name of the remote. This is what the user configured, if the remote was explicitly configured; and will otherwise be a stable, arbitrary, string.

Since: 2018.6

getUrl

remoteGetUrl Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Remote

remote: an Remote

-> m Text

Returns: the remote's URL

Get the URL from the remote.

Since: 2018.6

ref

remoteRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Remote

remote: an Remote

-> m Remote

Returns: a copy of remote, for convenience

Increase the reference count on the given remote.

Since: 2018.6

unref

remoteUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Remote

remote: an Remote

-> m () 

Decrease the reference count on the given remote and free it if the reference count reaches 0.

Since: 2018.6