Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype RepoFinder = RepoFinder (ManagedPtr RepoFinder)
- class (GObject o, IsDescendantOf RepoFinder o) => IsRepoFinder o
- toRepoFinder :: (MonadIO m, IsRepoFinder o) => o -> m RepoFinder
- repoFinderResolveAllAsync :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => [RepoFinder] -> [CollectionRef] -> a -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- repoFinderResolveAllFinish :: (HasCallStack, MonadIO m, IsAsyncResult a) => a -> m [RepoFinderResult]
- repoFinderResolveAsync :: (HasCallStack, MonadIO m, IsRepoFinder a, IsRepo b, IsCancellable c) => a -> [CollectionRef] -> b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- repoFinderResolveFinish :: (HasCallStack, MonadIO m, IsRepoFinder a, IsAsyncResult b) => a -> b -> m [RepoFinderResult]
Exported types
newtype RepoFinder Source #
Memory-managed wrapper type.
RepoFinder (ManagedPtr RepoFinder) |
Instances
Eq RepoFinder Source # | |
Defined in GI.OSTree.Interfaces.RepoFinder (==) :: RepoFinder -> RepoFinder -> Bool # (/=) :: RepoFinder -> RepoFinder -> Bool # | |
GObject RepoFinder Source # | |
Defined in GI.OSTree.Interfaces.RepoFinder | |
ManagedPtrNewtype RepoFinder Source # | |
Defined in GI.OSTree.Interfaces.RepoFinder toManagedPtr :: RepoFinder -> ManagedPtr RepoFinder | |
TypedObject RepoFinder Source # | |
Defined in GI.OSTree.Interfaces.RepoFinder | |
HasParentTypes RepoFinder Source # | |
Defined in GI.OSTree.Interfaces.RepoFinder | |
IsGValue (Maybe RepoFinder) Source # | Convert |
Defined in GI.OSTree.Interfaces.RepoFinder gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe RepoFinder -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe RepoFinder) | |
type ParentTypes RepoFinder Source # | |
Defined in GI.OSTree.Interfaces.RepoFinder type ParentTypes RepoFinder = '[Object] |
class (GObject o, IsDescendantOf RepoFinder o) => IsRepoFinder o Source #
Type class for types which can be safely cast to RepoFinder
, for instance with toRepoFinder
.
Instances
(GObject o, IsDescendantOf RepoFinder o) => IsRepoFinder o Source # | |
Defined in GI.OSTree.Interfaces.RepoFinder |
toRepoFinder :: (MonadIO m, IsRepoFinder o) => o -> m RepoFinder Source #
Cast to RepoFinder
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, resolveAsync, resolveFinish, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
resolveAllAsync
repoFinderResolveAllAsync Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> [RepoFinder] |
|
-> [CollectionRef] |
|
-> a |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
A version of repoFinderResolveAsync
which queries one or more
finders
in parallel and combines the results.
Since: 2018.6
resolveAllFinish
repoFinderResolveAllFinish Source #
:: (HasCallStack, MonadIO m, IsAsyncResult a) | |
=> a |
|
-> m [RepoFinderResult] | Returns: array of zero
or more results (Can throw |
Get the results from a repoFinderResolveAllAsync
operation.
Since: 2018.6
resolveAsync
repoFinderResolveAsync Source #
:: (HasCallStack, MonadIO m, IsRepoFinder a, IsRepo b, IsCancellable c) | |
=> a |
|
-> [CollectionRef] |
|
-> b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Find reachable remote URIs which claim to provide any of the given refs
. The
specific method for finding the remotes depends on the RepoFinder
implementation.
Any remote which is found and which claims to support any of the given refs
will be returned in the results. It is possible that a remote claims to
support a given ref, but turns out not to — it is not possible to verify this
until repoPullFromRemotesAsync
is called.
The returned results will be sorted with the most useful first — this is
typically the remote which claims to provide the most refs
, at the lowest
latency.
Each result contains a mapping of refs
to the checksums of the commits
which the result provides. If the result provides the latest commit for a ref
across all of the results, the checksum will be set. Otherwise, if the
result provides an outdated commit, or doesn’t provide a given ref at all,
the checksum will not be set. Results which provide none of the requested
refs
may be listed with an empty refs map.
Pass the results to repoPullFromRemotesAsync
to pull the given
refs
from those remotes.
Since: 2018.6
resolveFinish
repoFinderResolveFinish Source #
:: (HasCallStack, MonadIO m, IsRepoFinder a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m [RepoFinderResult] | Returns: array of zero
or more results (Can throw |
Get the results from a repoFinderResolveAsync
operation.
Since: 2018.6