gi-ostree-1.0.12: OSTree bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
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
Eq Remote Source # 
Instance details

Defined in GI.OSTree.Structs.Remote

Methods

(==) :: Remote -> Remote -> Bool

(/=) :: Remote -> Remote -> Bool

BoxedObject Remote Source # 
Instance details

Defined in GI.OSTree.Structs.Remote

Methods

boxedType :: Remote -> IO GType

IsGValue Remote Source #

Convert Remote to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.OSTree.Structs.Remote

Methods

toGValue :: Remote -> IO GValue

fromGValue :: GValue -> IO Remote

noRemote :: Maybe Remote Source #

A convenience alias for Nothing :: Maybe Remote.

Methods

Overloaded methods

getName

remoteGetName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Remote

remote: an tRemote

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

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

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

-> m () 

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

Since: 2018.6