gi-ostree-1.0.13: 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

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

Instances details
Eq Remote Source # 
Instance details

Defined in GI.OSTree.Structs.Remote

Methods

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

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

GBoxed Remote Source # 
Instance details

Defined in GI.OSTree.Structs.Remote

ManagedPtrNewtype Remote Source # 
Instance details

Defined in GI.OSTree.Structs.Remote

Methods

toManagedPtr :: Remote -> ManagedPtr Remote

TypedObject Remote Source # 
Instance details

Defined in GI.OSTree.Structs.Remote

Methods

glibType :: 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

HasParentTypes Remote Source # 
Instance details

Defined in GI.OSTree.Structs.Remote

type ParentTypes Remote Source # 
Instance details

Defined in GI.OSTree.Structs.Remote

type ParentTypes Remote = '[] :: [Type]

Methods

Overloaded 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