Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- Unsupported methods
- abortTransaction
- addGpgSignatureSummary
- appendGpgSignature
- checkoutAt
- checkoutGc
- checkoutTree
- commitTransaction
- copyConfig
- create
- deleteObject
- getConfig
- getDfd
- getDisableFsync
- getMode
- getParent
- getPath
- getRemoteBooleanOption
- getRemoteListOption
- getRemoteOption
- gpgVerifyData
- hasObject
- importObjectFrom
- importObjectFromWithTrust
- isSystem
- isWritable
- listRefs
- listRefsExt
- listStaticDeltaNames
- loadCommit
- loadFile
- loadObjectStream
- loadVariant
- loadVariantIfExists
- modeFromString
- new
- newDefault
- newForSysrootPath
- open
- prepareTransaction
- prune
- pruneFromReachable
- pruneStaticDeltas
- pull
- pullDefaultConsoleProgressChanged
- pullOneDir
- pullWithOptions
- queryObjectStorageSize
- readCommit
- readCommitDetachedMetadata
- regenerateSummary
- reloadConfig
- remoteAdd
- remoteChange
- remoteDelete
- remoteFetchSummary
- remoteFetchSummaryWithOptions
- remoteGetGpgVerify
- remoteGetGpgVerifySummary
- remoteGetUrl
- remoteGpgImport
- remoteList
- remoteListRefs
- resolveRev
- resolveRevExt
- scanHardlinks
- setCacheDir
- setDisableFsync
- setRefImmediate
- signCommit
- signDelta
- staticDeltaExecuteOffline
- staticDeltaGenerate
- transactionSetRef
- transactionSetRefspec
- verifyCommit
- verifyCommitExt
- verifyCommitForRemote
- verifySummary
- writeArchiveToMtree
- writeCommit
- writeCommitDetachedMetadata
- writeCommitWithTime
- writeConfig
- writeContent
- writeContentAsync
- writeContentFinish
- writeContentTrusted
- writeDfdToMtree
- writeDirectoryToMtree
- writeMetadata
- writeMetadataAsync
- writeMetadataFinish
- writeMetadataStreamTrusted
- writeMetadataTrusted
- writeMtree
- Properties
- Signals
- newtype Repo = Repo (ManagedPtr Repo)
- class GObject o => IsRepo o
- toRepo :: IsRepo o => o -> IO Repo
- noRepo :: Maybe Repo
- data RepoListCommitObjectsStartingWithMethodInfo
- data RepoListObjectsMethodInfo
- data RepoTraverseCommitMethodInfo
- data RepoTraverseNewReachableMethodInfo
- data RepoAbortTransactionMethodInfo
- repoAbortTransaction :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Maybe b -> m ()
- data RepoAddGpgSignatureSummaryMethodInfo
- repoAddGpgSignatureSummary :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> [Text] -> Maybe Text -> Maybe b -> m ()
- data RepoAppendGpgSignatureMethodInfo
- repoAppendGpgSignature :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Bytes -> Maybe b -> m ()
- data RepoCheckoutAtMethodInfo
- repoCheckoutAt :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Maybe RepoCheckoutAtOptions -> Int32 -> Text -> Text -> Maybe b -> m ()
- data RepoCheckoutGcMethodInfo
- repoCheckoutGc :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Maybe b -> m ()
- data RepoCheckoutTreeMethodInfo
- repoCheckoutTree :: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsRepoFile c, IsFileInfo d, IsCancellable e) => a -> RepoCheckoutMode -> RepoCheckoutOverwriteMode -> b -> c -> d -> Maybe e -> m ()
- data RepoCommitTransactionMethodInfo
- repoCommitTransaction :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Maybe b -> m RepoTransactionStats
- data RepoCopyConfigMethodInfo
- repoCopyConfig :: (HasCallStack, MonadIO m, IsRepo a) => a -> m KeyFile
- data RepoCreateMethodInfo
- repoCreate :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> RepoMode -> Maybe b -> m ()
- data RepoDeleteObjectMethodInfo
- repoDeleteObject :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> ObjectType -> Text -> Maybe b -> m ()
- data RepoGetConfigMethodInfo
- repoGetConfig :: (HasCallStack, MonadIO m, IsRepo a) => a -> m KeyFile
- data RepoGetDfdMethodInfo
- repoGetDfd :: (HasCallStack, MonadIO m, IsRepo a) => a -> m Int32
- data RepoGetDisableFsyncMethodInfo
- repoGetDisableFsync :: (HasCallStack, MonadIO m, IsRepo a) => a -> m Bool
- data RepoGetModeMethodInfo
- repoGetMode :: (HasCallStack, MonadIO m, IsRepo a) => a -> m RepoMode
- data RepoGetParentMethodInfo
- repoGetParent :: (HasCallStack, MonadIO m, IsRepo a) => a -> m Repo
- data RepoGetPathMethodInfo
- repoGetPath :: (HasCallStack, MonadIO m, IsRepo a) => a -> m File
- data RepoGetRemoteBooleanOptionMethodInfo
- repoGetRemoteBooleanOption :: (HasCallStack, MonadIO m, IsRepo a) => a -> Text -> Text -> Bool -> m Bool
- data RepoGetRemoteListOptionMethodInfo
- repoGetRemoteListOption :: (HasCallStack, MonadIO m, IsRepo a) => a -> Text -> Text -> m [Text]
- data RepoGetRemoteOptionMethodInfo
- repoGetRemoteOption :: (HasCallStack, MonadIO m, IsRepo a) => a -> Text -> Text -> Maybe Text -> m Text
- data RepoGpgVerifyDataMethodInfo
- repoGpgVerifyData :: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsFile c, IsCancellable d) => a -> Maybe Text -> Bytes -> Bytes -> Maybe b -> Maybe c -> Maybe d -> m GpgVerifyResult
- data RepoHasObjectMethodInfo
- repoHasObject :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> ObjectType -> Text -> Maybe b -> m Bool
- data RepoImportObjectFromMethodInfo
- repoImportObjectFrom :: (HasCallStack, MonadIO m, IsRepo a, IsRepo b, IsCancellable c) => a -> b -> ObjectType -> Text -> Maybe c -> m ()
- data RepoImportObjectFromWithTrustMethodInfo
- repoImportObjectFromWithTrust :: (HasCallStack, MonadIO m, IsRepo a, IsRepo b, IsCancellable c) => a -> b -> ObjectType -> Text -> Bool -> Maybe c -> m ()
- data RepoIsSystemMethodInfo
- repoIsSystem :: (HasCallStack, MonadIO m, IsRepo a) => a -> m Bool
- data RepoIsWritableMethodInfo
- repoIsWritable :: (HasCallStack, MonadIO m, IsRepo a) => a -> m ()
- data RepoListRefsMethodInfo
- repoListRefs :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Maybe Text -> Maybe b -> m (Map Text Text)
- data RepoListRefsExtMethodInfo
- repoListRefsExt :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Maybe Text -> RepoListRefsExtFlags -> Maybe b -> m (Map Text Text)
- data RepoListStaticDeltaNamesMethodInfo
- repoListStaticDeltaNames :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Maybe b -> m [Text]
- data RepoLoadCommitMethodInfo
- repoLoadCommit :: (HasCallStack, MonadIO m, IsRepo a) => a -> Text -> m (GVariant, [RepoCommitState])
- data RepoLoadFileMethodInfo
- repoLoadFile :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Maybe b -> m (InputStream, FileInfo, GVariant)
- data RepoLoadObjectStreamMethodInfo
- repoLoadObjectStream :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> ObjectType -> Text -> Maybe b -> m (InputStream, Word64)
- data RepoLoadVariantMethodInfo
- repoLoadVariant :: (HasCallStack, MonadIO m, IsRepo a) => a -> ObjectType -> Text -> m GVariant
- data RepoLoadVariantIfExistsMethodInfo
- repoLoadVariantIfExists :: (HasCallStack, MonadIO m, IsRepo a) => a -> ObjectType -> Text -> m GVariant
- repoModeFromString :: (HasCallStack, MonadIO m) => Text -> RepoMode -> m ()
- repoNew :: (HasCallStack, MonadIO m, IsFile a) => a -> m Repo
- repoNewDefault :: (HasCallStack, MonadIO m) => m Repo
- repoNewForSysrootPath :: (HasCallStack, MonadIO m, IsFile a, IsFile b) => a -> b -> m Repo
- data RepoOpenMethodInfo
- repoOpen :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Maybe b -> m ()
- data RepoPrepareTransactionMethodInfo
- repoPrepareTransaction :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Maybe b -> m Bool
- data RepoPruneMethodInfo
- repoPrune :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> RepoPruneFlags -> Int32 -> Maybe b -> m (Int32, Int32, Word64)
- data RepoPruneFromReachableMethodInfo
- repoPruneFromReachable :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> RepoPruneOptions -> Maybe b -> m (Int32, Int32, Word64)
- data RepoPruneStaticDeltasMethodInfo
- repoPruneStaticDeltas :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Maybe Text -> Maybe b -> m ()
- data RepoPullMethodInfo
- repoPull :: (HasCallStack, MonadIO m, IsRepo a, IsAsyncProgress b, IsCancellable c) => a -> Text -> Maybe [Text] -> [RepoPullFlags] -> Maybe b -> Maybe c -> m ()
- repoPullDefaultConsoleProgressChanged :: (HasCallStack, MonadIO m, IsAsyncProgress a) => a -> Ptr () -> m ()
- data RepoPullOneDirMethodInfo
- repoPullOneDir :: (HasCallStack, MonadIO m, IsRepo a, IsAsyncProgress b, IsCancellable c) => a -> Text -> Text -> Maybe [Text] -> [RepoPullFlags] -> Maybe b -> Maybe c -> m ()
- data RepoPullWithOptionsMethodInfo
- repoPullWithOptions :: (HasCallStack, MonadIO m, IsRepo a, IsAsyncProgress b, IsCancellable c) => a -> Text -> GVariant -> Maybe b -> Maybe c -> m ()
- data RepoQueryObjectStorageSizeMethodInfo
- repoQueryObjectStorageSize :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> ObjectType -> Text -> Maybe b -> m Word64
- data RepoReadCommitMethodInfo
- repoReadCommit :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Maybe b -> m (File, Text)
- data RepoReadCommitDetachedMetadataMethodInfo
- repoReadCommitDetachedMetadata :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Maybe b -> m GVariant
- data RepoRegenerateSummaryMethodInfo
- repoRegenerateSummary :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Maybe GVariant -> Maybe b -> m ()
- data RepoReloadConfigMethodInfo
- repoReloadConfig :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Maybe b -> m ()
- data RepoRemoteAddMethodInfo
- repoRemoteAdd :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Text -> Maybe GVariant -> Maybe b -> m ()
- data RepoRemoteChangeMethodInfo
- repoRemoteChange :: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsCancellable c) => a -> Maybe b -> RepoRemoteChange -> Text -> Text -> Maybe GVariant -> Maybe c -> m ()
- data RepoRemoteDeleteMethodInfo
- repoRemoteDelete :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Maybe b -> m ()
- data RepoRemoteFetchSummaryMethodInfo
- repoRemoteFetchSummary :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Maybe b -> m (Bytes, Bytes)
- data RepoRemoteFetchSummaryWithOptionsMethodInfo
- repoRemoteFetchSummaryWithOptions :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Maybe GVariant -> Maybe b -> m (Bytes, Bytes)
- data RepoRemoteGetGpgVerifyMethodInfo
- repoRemoteGetGpgVerify :: (HasCallStack, MonadIO m, IsRepo a) => a -> Text -> m Bool
- data RepoRemoteGetGpgVerifySummaryMethodInfo
- repoRemoteGetGpgVerifySummary :: (HasCallStack, MonadIO m, IsRepo a) => a -> Text -> m Bool
- data RepoRemoteGetUrlMethodInfo
- repoRemoteGetUrl :: (HasCallStack, MonadIO m, IsRepo a) => a -> Text -> m Text
- data RepoRemoteGpgImportMethodInfo
- repoRemoteGpgImport :: (HasCallStack, MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) => a -> Text -> Maybe b -> Maybe [Text] -> Word32 -> Maybe c -> m ()
- data RepoRemoteListMethodInfo
- repoRemoteList :: (HasCallStack, MonadIO m, IsRepo a) => a -> m [Text]
- data RepoRemoteListRefsMethodInfo
- repoRemoteListRefs :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Maybe b -> m (Map Text Text)
- data RepoResolveRevMethodInfo
- repoResolveRev :: (HasCallStack, MonadIO m, IsRepo a) => a -> Text -> Bool -> m Text
- data RepoResolveRevExtMethodInfo
- repoResolveRevExt :: (HasCallStack, MonadIO m, IsRepo a) => a -> Text -> Bool -> RepoResolveRevExtFlags -> m Text
- data RepoScanHardlinksMethodInfo
- repoScanHardlinks :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Maybe b -> m ()
- data RepoSetCacheDirMethodInfo
- repoSetCacheDir :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Int32 -> Text -> Maybe b -> m ()
- data RepoSetDisableFsyncMethodInfo
- repoSetDisableFsync :: (HasCallStack, MonadIO m, IsRepo a) => a -> Bool -> m ()
- data RepoSetRefImmediateMethodInfo
- repoSetRefImmediate :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Maybe Text -> Text -> Maybe Text -> Maybe b -> m ()
- data RepoSignCommitMethodInfo
- repoSignCommit :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Text -> Maybe Text -> Maybe b -> m ()
- data RepoSignDeltaMethodInfo
- repoSignDelta :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Text -> Text -> Text -> Maybe b -> m ()
- data RepoStaticDeltaExecuteOfflineMethodInfo
- repoStaticDeltaExecuteOffline :: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsCancellable c) => a -> b -> Bool -> Maybe c -> m ()
- data RepoStaticDeltaGenerateMethodInfo
- repoStaticDeltaGenerate :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> StaticDeltaGenerateOpt -> Text -> Text -> Maybe GVariant -> Maybe GVariant -> Maybe b -> m ()
- data RepoTransactionSetRefMethodInfo
- repoTransactionSetRef :: (HasCallStack, MonadIO m, IsRepo a) => a -> Maybe Text -> Text -> Text -> m ()
- data RepoTransactionSetRefspecMethodInfo
- repoTransactionSetRefspec :: (HasCallStack, MonadIO m, IsRepo a) => a -> Text -> Text -> m ()
- data RepoVerifyCommitMethodInfo
- repoVerifyCommit :: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsFile c, IsCancellable d) => a -> Text -> Maybe b -> Maybe c -> Maybe d -> m ()
- data RepoVerifyCommitExtMethodInfo
- repoVerifyCommitExt :: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsFile c, IsCancellable d) => a -> Text -> Maybe b -> Maybe c -> Maybe d -> m GpgVerifyResult
- data RepoVerifyCommitForRemoteMethodInfo
- repoVerifyCommitForRemote :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Text -> Maybe b -> m GpgVerifyResult
- data RepoVerifySummaryMethodInfo
- repoVerifySummary :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Bytes -> Bytes -> Maybe b -> m GpgVerifyResult
- data RepoWriteArchiveToMtreeMethodInfo
- repoWriteArchiveToMtree :: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsMutableTree c, IsCancellable d) => a -> b -> c -> Maybe RepoCommitModifier -> Bool -> Maybe d -> m ()
- data RepoWriteCommitMethodInfo
- repoWriteCommit :: (HasCallStack, MonadIO m, IsRepo a, IsRepoFile b, IsCancellable c) => a -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe GVariant -> b -> Maybe c -> m Text
- data RepoWriteCommitDetachedMetadataMethodInfo
- repoWriteCommitDetachedMetadata :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> Text -> Maybe GVariant -> Maybe b -> m ()
- data RepoWriteCommitWithTimeMethodInfo
- repoWriteCommitWithTime :: (HasCallStack, MonadIO m, IsRepo a, IsRepoFile b, IsCancellable c) => a -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe GVariant -> b -> Word64 -> Maybe c -> m Text
- data RepoWriteConfigMethodInfo
- repoWriteConfig :: (HasCallStack, MonadIO m, IsRepo a) => a -> KeyFile -> m ()
- data RepoWriteContentMethodInfo
- repoWriteContent :: (HasCallStack, MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) => a -> Maybe Text -> b -> Word64 -> Maybe c -> m ByteString
- data RepoWriteContentAsyncMethodInfo
- repoWriteContentAsync :: (HasCallStack, MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) => a -> Maybe Text -> b -> Word64 -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data RepoWriteContentFinishMethodInfo
- repoWriteContentFinish :: (HasCallStack, MonadIO m, IsRepo a, IsAsyncResult b) => a -> b -> m Word8
- data RepoWriteContentTrustedMethodInfo
- repoWriteContentTrusted :: (HasCallStack, MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) => a -> Text -> b -> Word64 -> Maybe c -> m ()
- data RepoWriteDfdToMtreeMethodInfo
- repoWriteDfdToMtree :: (HasCallStack, MonadIO m, IsRepo a, IsMutableTree b, IsCancellable c) => a -> Int32 -> Text -> b -> Maybe RepoCommitModifier -> Maybe c -> m ()
- data RepoWriteDirectoryToMtreeMethodInfo
- repoWriteDirectoryToMtree :: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsMutableTree c, IsCancellable d) => a -> b -> c -> Maybe RepoCommitModifier -> Maybe d -> m ()
- data RepoWriteMetadataMethodInfo
- repoWriteMetadata :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> ObjectType -> Maybe Text -> GVariant -> Maybe b -> m ByteString
- data RepoWriteMetadataAsyncMethodInfo
- repoWriteMetadataAsync :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> ObjectType -> Maybe Text -> GVariant -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data RepoWriteMetadataFinishMethodInfo
- repoWriteMetadataFinish :: (HasCallStack, MonadIO m, IsRepo a, IsAsyncResult b) => a -> b -> Word8 -> m ()
- data RepoWriteMetadataStreamTrustedMethodInfo
- repoWriteMetadataStreamTrusted :: (HasCallStack, MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) => a -> ObjectType -> Text -> b -> Word64 -> Maybe c -> m ()
- data RepoWriteMetadataTrustedMethodInfo
- repoWriteMetadataTrusted :: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) => a -> ObjectType -> Text -> GVariant -> Maybe b -> m ()
- data RepoWriteMtreeMethodInfo
- repoWriteMtree :: (HasCallStack, MonadIO m, IsRepo a, IsMutableTree b, IsCancellable c) => a -> b -> Maybe c -> m File
- data RepoPathPropertyInfo
- constructRepoPath :: (IsRepo o, IsFile a) => a -> IO (GValueConstruct o)
- getRepoPath :: (MonadIO m, IsRepo o) => o -> m File
- repoPath :: AttrLabelProxy "path"
- data RepoRemotesConfigDirPropertyInfo
- constructRepoRemotesConfigDir :: IsRepo o => Text -> IO (GValueConstruct o)
- getRepoRemotesConfigDir :: (MonadIO m, IsRepo o) => o -> m (Maybe Text)
- repoRemotesConfigDir :: AttrLabelProxy "remotesConfigDir"
- data RepoSysrootPathPropertyInfo
- constructRepoSysrootPath :: (IsRepo o, IsFile a) => a -> IO (GValueConstruct o)
- getRepoSysrootPath :: (MonadIO m, IsRepo o) => o -> m (Maybe File)
- repoSysrootPath :: AttrLabelProxy "sysrootPath"
- type C_RepoGpgVerifyResultCallback = Ptr () -> CString -> Ptr GpgVerifyResult -> Ptr () -> IO ()
- type RepoGpgVerifyResultCallback = Text -> GpgVerifyResult -> IO ()
- data RepoGpgVerifyResultSignalInfo
- afterRepoGpgVerifyResult :: (IsRepo a, MonadIO m) => a -> RepoGpgVerifyResultCallback -> m SignalHandlerId
- genClosure_RepoGpgVerifyResult :: RepoGpgVerifyResultCallback -> IO Closure
- mk_RepoGpgVerifyResultCallback :: C_RepoGpgVerifyResultCallback -> IO (FunPtr C_RepoGpgVerifyResultCallback)
- noRepoGpgVerifyResultCallback :: Maybe RepoGpgVerifyResultCallback
- onRepoGpgVerifyResult :: (IsRepo a, MonadIO m) => a -> RepoGpgVerifyResultCallback -> m SignalHandlerId
- wrap_RepoGpgVerifyResultCallback :: RepoGpgVerifyResultCallback -> Ptr () -> CString -> Ptr GpgVerifyResult -> Ptr () -> IO ()
Exported types
GObject Repo Source # | |
IsObject Repo Source # | |
IsRepo Repo Source # | |
((~) * info (ResolveRepoMethod t Repo), MethodInfo * info Repo p) => IsLabel t (Repo -> p) Source # | |
((~) * info (ResolveRepoMethod t Repo), MethodInfo * info Repo p) => IsLabelProxy t (Repo -> p) Source # | |
HasAttributeList * Repo Source # | |
type AttributeList Repo Source # | |
type SignalList Repo Source # | |
Methods
Unsupported methods
data RepoListCommitObjectsStartingWithMethodInfo Source #
((~) * p (), (~) * o (MethodResolutionFailed * "listCommitObjectsStartingWith" Repo)) => MethodInfo * RepoListCommitObjectsStartingWithMethodInfo o p Source # | |
data RepoListObjectsMethodInfo Source #
((~) * p (), (~) * o (MethodResolutionFailed * "listObjects" Repo)) => MethodInfo * RepoListObjectsMethodInfo o p Source # | |
data RepoTraverseCommitMethodInfo Source #
((~) * p (), (~) * o (MethodResolutionFailed * "traverseCommit" Repo)) => MethodInfo * RepoTraverseCommitMethodInfo o p Source # | |
data RepoTraverseNewReachableMethodInfo Source #
((~) * p (), (~) * o (MethodResolutionFailed * "traverseNewReachable" Repo)) => MethodInfo * RepoTraverseNewReachableMethodInfo o p Source # | |
abortTransaction
data RepoAbortTransactionMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoAbortTransactionMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a | |
-> Maybe b | |
-> m () | (Can throw |
No description available in the introspection data.
addGpgSignatureSummary
data RepoAddGpgSignatureSummaryMethodInfo Source #
((~) * signature ([Text] -> Maybe Text -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoAddGpgSignatureSummaryMethodInfo a signature Source # | |
repoAddGpgSignatureSummary Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> [Text] |
|
-> Maybe Text |
|
-> Maybe b |
|
-> m () | (Can throw |
Add a GPG signature to a static delta.
appendGpgSignature
data RepoAppendGpgSignatureMethodInfo Source #
((~) * signature (Text -> Bytes -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoAppendGpgSignatureMethodInfo a signature Source # | |
repoAppendGpgSignature Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Bytes |
|
-> Maybe b |
|
-> m () | (Can throw |
Append a GPG signature to a commit.
checkoutAt
data RepoCheckoutAtMethodInfo Source #
((~) * signature (Maybe RepoCheckoutAtOptions -> Int32 -> Text -> Text -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoCheckoutAtMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Maybe RepoCheckoutAtOptions |
|
-> Int32 |
|
-> Text |
|
-> Text |
|
-> Maybe b |
|
-> m () | (Can throw |
Similar to repoCheckoutTree
, but uses directory-relative
paths for the destination, uses a new OstreeRepoCheckoutAtOptions
,
and takes a commit checksum and optional subpath pair, rather than
requiring use of GFile
APIs for the caller.
It also replaces repoCheckoutAt
which was not safe to
use with GObject introspection.
Note in addition that unlike repoCheckoutTree
, the
default is not to use the repository-internal uncompressed objects
cache.
checkoutGc
data RepoCheckoutGcMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoCheckoutGcMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m () | (Can throw |
Call this after finishing a succession of checkout operations; it will delete any currently-unused uncompressed objects from the cache.
checkoutTree
data RepoCheckoutTreeMethodInfo Source #
((~) * signature (RepoCheckoutMode -> RepoCheckoutOverwriteMode -> b -> c -> d -> Maybe e -> m ()), MonadIO m, IsRepo a, IsFile b, IsRepoFile c, IsFileInfo d, IsCancellable e) => MethodInfo * RepoCheckoutTreeMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsRepoFile c, IsFileInfo d, IsCancellable e) | |
=> a |
|
-> RepoCheckoutMode |
|
-> RepoCheckoutOverwriteMode |
|
-> b |
|
-> c |
|
-> d |
|
-> Maybe e |
|
-> m () | (Can throw |
Check out source
into destination
, which must live on the
physical filesystem. source
may be any subdirectory of a given
commit. The mode
and overwriteMode
allow control over how the
files are checked out.
commitTransaction
data RepoCommitTransactionMethodInfo Source #
((~) * signature (Maybe b -> m RepoTransactionStats), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoCommitTransactionMethodInfo a signature Source # | |
repoCommitTransaction Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m RepoTransactionStats | (Can throw |
Complete the transaction. Any refs set with
repoTransactionSetRef
or
repoTransactionSetRefspec
will be written out.
copyConfig
data RepoCopyConfigMethodInfo Source #
((~) * signature (m KeyFile), MonadIO m, IsRepo a) => MethodInfo * RepoCopyConfigMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a | |
-> m KeyFile | Returns: A newly-allocated copy of the repository config |
No description available in the introspection data.
create
data RepoCreateMethodInfo Source #
((~) * signature (RepoMode -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoCreateMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> RepoMode |
|
-> Maybe b |
|
-> m () | (Can throw |
Create the underlying structure on disk for the repository, and call
repoOpen
on the result, preparing it for use.
Since version 2016.8, this function will succeed on an existing repository, and finish creating any necessary files in a partially created repository. However, this function cannot change the mode of an existing repository, and will silently ignore an attempt to do so.
deleteObject
data RepoDeleteObjectMethodInfo Source #
((~) * signature (ObjectType -> Text -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoDeleteObjectMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> ObjectType |
|
-> Text |
|
-> Maybe b |
|
-> m () | (Can throw |
Remove the object of type objtype
with checksum sha256
from the repository. An error of type IOErrorEnumNotFound
is thrown if the object does not exist.
getConfig
data RepoGetConfigMethodInfo Source #
((~) * signature (m KeyFile), MonadIO m, IsRepo a) => MethodInfo * RepoGetConfigMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a | |
-> m KeyFile | Returns: The repository configuration; do not modify |
No description available in the introspection data.
getDfd
data RepoGetDfdMethodInfo Source #
((~) * signature (m Int32), MonadIO m, IsRepo a) => MethodInfo * RepoGetDfdMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> m Int32 | Returns: File descriptor for repository root - owned by |
In some cases it's useful for applications to access the repository
directly; for example, writing content into repo/tmp
ensures it's
on the same filesystem. Another case is detecting the mtime on the
repository (to see whether a ref was written).
getDisableFsync
data RepoGetDisableFsyncMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsRepo a) => MethodInfo * RepoGetDisableFsyncMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> m Bool | Returns: Whether or not |
For more information see repoSetDisableFsync
.
getMode
data RepoGetModeMethodInfo Source #
((~) * signature (m RepoMode), MonadIO m, IsRepo a) => MethodInfo * RepoGetModeMethodInfo a signature Source # | |
repoGetMode :: (HasCallStack, MonadIO m, IsRepo a) => a -> m RepoMode Source #
No description available in the introspection data.
getParent
data RepoGetParentMethodInfo Source #
((~) * signature (m Repo), MonadIO m, IsRepo a) => MethodInfo * RepoGetParentMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> m Repo | Returns: Parent repository, or |
Before this function can be used, ostree_repo_init()
must have been
called.
getPath
data RepoGetPathMethodInfo Source #
((~) * signature (m File), MonadIO m, IsRepo a) => MethodInfo * RepoGetPathMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a | |
-> m File | Returns: Path to repo |
No description available in the introspection data.
getRemoteBooleanOption
repoGetRemoteBooleanOption Source #
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> Bool |
|
-> m Bool | (Can throw |
OSTree remotes are represented by keyfile groups, formatted like:
[remote "remotename"]
. This function returns a value named optionName
underneath that group, and returns it as a boolean.
If the option is not set, outValue
will be set to defaultValue
. If an
error is returned, outValue
will be set to False
.
getRemoteListOption
repoGetRemoteListOption Source #
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> m [Text] | (Can throw |
OSTree remotes are represented by keyfile groups, formatted like:
[remote "remotename"]
. This function returns a value named optionName
underneath that group, and returns it as a zero terminated array of strings.
If the option is not set, or if an error is returned, outValue
will be set
to Nothing
.
getRemoteOption
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> Maybe Text |
|
-> m Text | (Can throw |
OSTree remotes are represented by keyfile groups, formatted like:
[remote "remotename"]
. This function returns a value named optionName
underneath that group, or defaultValue
if the remote exists but not the
option name. If an error is returned, outValue
will be set to Nothing
.
gpgVerifyData
data RepoGpgVerifyDataMethodInfo Source #
((~) * signature (Maybe Text -> Bytes -> Bytes -> Maybe b -> Maybe c -> Maybe d -> m GpgVerifyResult), MonadIO m, IsRepo a, IsFile b, IsFile c, IsCancellable d) => MethodInfo * RepoGpgVerifyDataMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsFile c, IsCancellable d) | |
=> a |
|
-> Maybe Text |
|
-> Bytes |
|
-> Bytes |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe d |
|
-> m GpgVerifyResult | Returns: an |
Verify signatures
for data
using GPG keys in the keyring for
remoteName
, and return an GpgVerifyResult
.
The remoteName
parameter can be Nothing
. In that case it will do
the verifications using GPG keys in the keyrings of all remotes.
hasObject
data RepoHasObjectMethodInfo Source #
((~) * signature (ObjectType -> Text -> Maybe b -> m Bool), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoHasObjectMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> ObjectType |
|
-> Text |
|
-> Maybe b |
|
-> m Bool | (Can throw |
importObjectFrom
data RepoImportObjectFromMethodInfo Source #
((~) * signature (b -> ObjectType -> Text -> Maybe c -> m ()), MonadIO m, IsRepo a, IsRepo b, IsCancellable c) => MethodInfo * RepoImportObjectFromMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsRepo b, IsCancellable c) | |
=> a |
|
-> b |
|
-> ObjectType |
|
-> Text |
|
-> Maybe c |
|
-> m () | (Can throw |
Copy object named by objtype
and checksum
into self
from the
source repository source
. If both repositories are of the same
type and on the same filesystem, this will simply be a fast Unix
hard link operation.
Otherwise, a copy will be performed.
importObjectFromWithTrust
data RepoImportObjectFromWithTrustMethodInfo Source #
((~) * signature (b -> ObjectType -> Text -> Bool -> Maybe c -> m ()), MonadIO m, IsRepo a, IsRepo b, IsCancellable c) => MethodInfo * RepoImportObjectFromWithTrustMethodInfo a signature Source # | |
repoImportObjectFromWithTrust Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsRepo b, IsCancellable c) | |
=> a |
|
-> b |
|
-> ObjectType |
|
-> Text |
|
-> Bool |
|
-> Maybe c |
|
-> m () | (Can throw |
Copy object named by objtype
and checksum
into self
from the
source repository source
. If both repositories are of the same
type and on the same filesystem, this will simply be a fast Unix
hard link operation.
Otherwise, a copy will be performed.
isSystem
data RepoIsSystemMethodInfo Source #
((~) * signature (m Bool), MonadIO m, IsRepo a) => MethodInfo * RepoIsSystemMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> m Bool | Returns: |
No description available in the introspection data.
isWritable
data RepoIsWritableMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsRepo a) => MethodInfo * RepoIsWritableMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> m () | (Can throw |
Returns whether the repository is writable by the current user.
If the repository is not writable, the error
indicates why.
listRefs
data RepoListRefsMethodInfo Source #
((~) * signature (Maybe Text -> Maybe b -> m (Map Text Text)), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoListRefsMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Maybe Text |
|
-> Maybe b |
|
-> m (Map Text Text) | (Can throw |
If refspecPrefix
is Nothing
, list all local and remote refspecs,
with their current values in outAllRefs
. Otherwise, only list
refspecs which have refspecPrefix
as a prefix.
listRefsExt
data RepoListRefsExtMethodInfo Source #
((~) * signature (Maybe Text -> RepoListRefsExtFlags -> Maybe b -> m (Map Text Text)), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoListRefsExtMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Maybe Text |
|
-> RepoListRefsExtFlags |
|
-> Maybe b |
|
-> m (Map Text Text) | (Can throw |
If refspecPrefix
is Nothing
, list all local and remote refspecs,
with their current values in outAllRefs
. Otherwise, only list
refspecs which have refspecPrefix
as a prefix. Differently from
repoListRefs
, the prefix will not be removed from the ref
name.
listStaticDeltaNames
data RepoListStaticDeltaNamesMethodInfo Source #
((~) * signature (Maybe b -> m [Text]), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoListStaticDeltaNamesMethodInfo a signature Source # | |
repoListStaticDeltaNames Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m [Text] | (Can throw |
This function synchronously enumerates all static deltas in the
repository, returning its result in outDeltas
.
loadCommit
data RepoLoadCommitMethodInfo Source #
((~) * signature (Text -> m (GVariant, [RepoCommitState])), MonadIO m, IsRepo a) => MethodInfo * RepoLoadCommitMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> Text |
|
-> m (GVariant, [RepoCommitState]) | (Can throw |
A version of repoLoadVariant
specialized to commits,
capable of returning extended state information. Currently
the only extended state is RepoCommitStateRepoCommitStatePartial
, which
means that only a sub-path of the commit is available.
loadFile
data RepoLoadFileMethodInfo Source #
((~) * signature (Text -> Maybe b -> m (InputStream, FileInfo, GVariant)), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoLoadFileMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> m (InputStream, FileInfo, GVariant) | (Can throw |
Load content object, decomposing it into three parts: the actual content (for regular files), the metadata, and extended attributes.
loadObjectStream
data RepoLoadObjectStreamMethodInfo Source #
((~) * signature (ObjectType -> Text -> Maybe b -> m (InputStream, Word64)), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoLoadObjectStreamMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> ObjectType |
|
-> Text |
|
-> Maybe b |
|
-> m (InputStream, Word64) | (Can throw |
Load object as a stream; useful when copying objects between repositories.
loadVariant
data RepoLoadVariantMethodInfo Source #
((~) * signature (ObjectType -> Text -> m GVariant), MonadIO m, IsRepo a) => MethodInfo * RepoLoadVariantMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> ObjectType |
|
-> Text |
|
-> m GVariant | (Can throw |
Load the metadata object sha256
of type objtype
, storing the
result in outVariant
.
loadVariantIfExists
data RepoLoadVariantIfExistsMethodInfo Source #
((~) * signature (ObjectType -> Text -> m GVariant), MonadIO m, IsRepo a) => MethodInfo * RepoLoadVariantIfExistsMethodInfo a signature Source # | |
repoLoadVariantIfExists Source #
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> ObjectType |
|
-> Text |
|
-> m GVariant | (Can throw |
Attempt to load the metadata object sha256
of type objtype
if it
exists, storing the result in outVariant
. If it doesn't exist,
Nothing
is returned.
modeFromString
:: (HasCallStack, MonadIO m) | |
=> Text | |
-> RepoMode | |
-> m () | (Can throw |
No description available in the introspection data.
new
:: (HasCallStack, MonadIO m, IsFile a) | |
=> a |
|
-> m Repo | Returns: An accessor object for an OSTree repository located at |
No description available in the introspection data.
newDefault
:: (HasCallStack, MonadIO m) | |
=> m Repo | Returns: An accessor object for an OSTree repository located at /ostree/repo |
If the current working directory appears to be an OSTree
repository, create a new Repo
object for accessing it.
Otherwise use the path in the OSTREE_REPO environment variable
(if defined) or else the default system repository located at
/ostree/repo.
newForSysrootPath
repoNewForSysrootPath Source #
:: (HasCallStack, MonadIO m, IsFile a, IsFile b) | |
=> a |
|
-> b |
|
-> m Repo | Returns: An accessor object for the OSTree repository located at |
Creates a new Repo
instance, taking the system root path explicitly
instead of assuming "/".
open
data RepoOpenMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoOpenMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a | |
-> Maybe b | |
-> m () | (Can throw |
No description available in the introspection data.
prepareTransaction
data RepoPrepareTransactionMethodInfo Source #
((~) * signature (Maybe b -> m Bool), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoPrepareTransactionMethodInfo a signature Source # | |
repoPrepareTransaction Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m Bool | (Can throw |
Starts or resumes a transaction. In order to write to a repo, you
need to start a transaction. You can complete the transaction with
repoCommitTransaction
, or abort the transaction with
repoAbortTransaction
.
Currently, transactions are not atomic, and aborting a transaction will not erase any data you write during the transaction.
prune
data RepoPruneMethodInfo Source #
((~) * signature (RepoPruneFlags -> Int32 -> Maybe b -> m (Int32, Int32, Word64)), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoPruneMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> RepoPruneFlags |
|
-> Int32 |
|
-> Maybe b |
|
-> m (Int32, Int32, Word64) | (Can throw |
Delete content from the repository. By default, this function will only delete "orphaned" objects not referred to by any commit. This can happen during a local commit operation, when we have written content objects but not saved the commit referencing them.
However, if RepoPruneFlagsRefsOnly
is provided, instead
of traversing all commits, only refs will be used. Particularly
when combined with depth
, this is a convenient way to delete
history from the repository.
Use the RepoPruneFlagsNoPrune
to just determine
statistics on objects that would be deleted, without actually
deleting them.
pruneFromReachable
data RepoPruneFromReachableMethodInfo Source #
((~) * signature (RepoPruneOptions -> Maybe b -> m (Int32, Int32, Word64)), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoPruneFromReachableMethodInfo a signature Source # | |
repoPruneFromReachable Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> RepoPruneOptions |
|
-> Maybe b |
|
-> m (Int32, Int32, Word64) | (Can throw |
Delete content from the repository. This function is the "backend"
half of the higher level repoPrune
. To use this function,
you determine the root set yourself, and this function finds all other
unreferenced objects and deletes them.
Use this API when you want to perform more selective pruning - for example, retain all commits from a production branch, but just GC some history from your dev branch.
The RepoPruneFlagsNoPrune
flag may be specified to just determine
statistics on objects that would be deleted, without actually deleting them.
pruneStaticDeltas
data RepoPruneStaticDeltasMethodInfo Source #
((~) * signature (Maybe Text -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoPruneStaticDeltasMethodInfo a signature Source # | |
repoPruneStaticDeltas Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Maybe Text |
|
-> Maybe b |
|
-> m () | (Can throw |
Prune static deltas, if COMMIT is specified then delete static delta files only targeting that commit; otherwise any static delta of non existing commits are deleted.
pull
data RepoPullMethodInfo Source #
((~) * signature (Text -> Maybe [Text] -> [RepoPullFlags] -> Maybe b -> Maybe c -> m ()), MonadIO m, IsRepo a, IsAsyncProgress b, IsCancellable c) => MethodInfo * RepoPullMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsAsyncProgress b, IsCancellable c) | |
=> a |
|
-> Text |
|
-> Maybe [Text] |
|
-> [RepoPullFlags] |
|
-> Maybe b |
|
-> Maybe c |
|
-> m () | (Can throw |
Connect to the remote repository, fetching the specified set of
refs refsToFetch
. For each ref that is changed, download the
commit, all metadata, and all content objects, storing them safely
on disk in self
.
If flags
contains RepoPullFlagsMirror
, and
the refsToFetch
is Nothing
, and the remote repository contains a
summary file, then all refs will be fetched.
If flags
contains RepoPullFlagsCommitOnly
, then only the
metadata for the commits in refsToFetch
is pulled.
Warning: This API will iterate the thread default main context,
which is a bug, but kept for compatibility reasons. If you want to
avoid this, use mainContextPushThreadDefault
to push a new
one around this call.
pullDefaultConsoleProgressChanged
repoPullDefaultConsoleProgressChanged Source #
:: (HasCallStack, MonadIO m, IsAsyncProgress a) | |
=> a |
|
-> Ptr () |
|
-> m () |
Convenient "changed" callback for use with
asyncProgressNewAndConnect
when pulling from a remote
repository.
Depending on the state of the AsyncProgress
, either displays a
custom status message, or else outstanding fetch progress in bytes/sec,
or else outstanding content or metadata writes to the repository in
number of objects.
Compatibility note: this function previously assumed that userData
was a pointer to a GSConsole
instance. This is no longer the case,
and userData
is ignored.
pullOneDir
data RepoPullOneDirMethodInfo Source #
((~) * signature (Text -> Text -> Maybe [Text] -> [RepoPullFlags] -> Maybe b -> Maybe c -> m ()), MonadIO m, IsRepo a, IsAsyncProgress b, IsCancellable c) => MethodInfo * RepoPullOneDirMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsAsyncProgress b, IsCancellable c) | |
=> a |
|
-> Text |
|
-> Text |
|
-> Maybe [Text] |
|
-> [RepoPullFlags] |
|
-> Maybe b |
|
-> Maybe c |
|
-> m () | (Can throw |
This is similar to repoPull
, but only fetches a single
subpath.
pullWithOptions
data RepoPullWithOptionsMethodInfo Source #
((~) * signature (Text -> GVariant -> Maybe b -> Maybe c -> m ()), MonadIO m, IsRepo a, IsAsyncProgress b, IsCancellable c) => MethodInfo * RepoPullWithOptionsMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsAsyncProgress b, IsCancellable c) | |
=> a |
|
-> Text |
|
-> GVariant |
|
-> Maybe b |
|
-> Maybe c |
|
-> m () | (Can throw |
Like repoPull
, but supports an extensible set of flags.
The following are currently defined:
- refs (as): Array of string refs
- flags (i): An instance of
RepoPullFlags
- subdir (s): Pull just this subdirectory
- subdirs (as): Pull just these subdirectories
- override-remote-name (s): If local, add this remote to refspec
- gpg-verify (b): GPG verify commits
- gpg-verify-summary (b): GPG verify summary
- depth (i): How far in the history to traverse; default is 0, -1 means infinite
- disable-static-deltas (b): Do not use static deltas
- require-static-deltas (b): Require static deltas
- override-commit-ids (as): Array of specific commit IDs to fetch for refs
- dry-run (b): Only print information on what will be downloaded (requires static deltas)
- override-url (s): Fetch objects from this URL if remote specifies no metalink in options
- inherit-transaction (b): Don't initiate, finish or abort a transaction, usefult to do mutliple pulls in one transaction.
- http-headers (a(ss)): Additional headers to add to all HTTP requests
- update-frequency (u): Frequency to call the async progress callback in milliseconds, if any; only values higher than 0 are valid
queryObjectStorageSize
data RepoQueryObjectStorageSizeMethodInfo Source #
((~) * signature (ObjectType -> Text -> Maybe b -> m Word64), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoQueryObjectStorageSizeMethodInfo a signature Source # | |
repoQueryObjectStorageSize Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> ObjectType |
|
-> Text |
|
-> Maybe b |
|
-> m Word64 | (Can throw |
Return the size in bytes of object with checksum sha256
, after any
compression has been applied.
readCommit
data RepoReadCommitMethodInfo Source #
((~) * signature (Text -> Maybe b -> m (File, Text)), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoReadCommitMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> m (File, Text) | (Can throw |
Load the content for rev
into outRoot
.
readCommitDetachedMetadata
data RepoReadCommitDetachedMetadataMethodInfo Source #
((~) * signature (Text -> Maybe b -> m GVariant), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoReadCommitDetachedMetadataMethodInfo a signature Source # | |
repoReadCommitDetachedMetadata Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> m GVariant | (Can throw |
OSTree commits can have arbitrary metadata associated; this
function retrieves them. If none exists, outMetadata
will be set
to Nothing
.
regenerateSummary
data RepoRegenerateSummaryMethodInfo Source #
((~) * signature (Maybe GVariant -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoRegenerateSummaryMethodInfo a signature Source # | |
repoRegenerateSummary Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Maybe GVariant |
|
-> Maybe b |
|
-> m () | (Can throw |
An OSTree repository can contain a high level "summary" file that describes the available branches and other metadata.
It is regenerated automatically after a commit if
core/commit-update-summary
is set.
reloadConfig
data RepoReloadConfigMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoReloadConfigMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m () | (Can throw |
By default, an Repo
will cache the remote configuration and its
own repo/config data. This API can be used to reload it.
remoteAdd
data RepoRemoteAddMethodInfo Source #
((~) * signature (Text -> Text -> Maybe GVariant -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoRemoteAddMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Text |
|
-> Maybe GVariant |
|
-> Maybe b |
|
-> m () | (Can throw |
Create a new remote named name
pointing to url
. If options
is
provided, then it will be mapped to KeyFile
entries, where the
GVariant dictionary key is an option string, and the value is
mapped as follows:
* s: keyFileSetString
* b: keyFileSetBoolean
* as: keyFileSetStringList
remoteChange
data RepoRemoteChangeMethodInfo Source #
((~) * signature (Maybe b -> RepoRemoteChange -> Text -> Text -> Maybe GVariant -> Maybe c -> m ()), MonadIO m, IsRepo a, IsFile b, IsCancellable c) => MethodInfo * RepoRemoteChangeMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsCancellable c) | |
=> a |
|
-> Maybe b |
|
-> RepoRemoteChange |
|
-> Text |
|
-> Text |
|
-> Maybe GVariant |
|
-> Maybe c |
|
-> m () | (Can throw |
A combined function handling the equivalent of
repoRemoteAdd
, repoRemoteDelete
, with more
options.
remoteDelete
data RepoRemoteDeleteMethodInfo Source #
((~) * signature (Text -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoRemoteDeleteMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> m () | (Can throw |
Delete the remote named name
. It is an error if the provided
remote does not exist.
remoteFetchSummary
data RepoRemoteFetchSummaryMethodInfo Source #
((~) * signature (Text -> Maybe b -> m (Bytes, Bytes)), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoRemoteFetchSummaryMethodInfo a signature Source # | |
repoRemoteFetchSummary Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> m (Bytes, Bytes) | (Can throw |
Tries to fetch the summary file and any GPG signatures on the summary file
over HTTP, and returns the binary data in outSummary
and outSignatures
respectively.
If no summary file exists on the remote server, outSummary
is set to
nULL
. Likewise if the summary file is not signed, outSignatures
is
set to nULL
. In either case the function still returns True
.
Parse the summary data into a GVariant
using variantNewFromBytes
with OSTREE_SUMMARY_GVARIANT_FORMAT
as the format string.
remoteFetchSummaryWithOptions
data RepoRemoteFetchSummaryWithOptionsMethodInfo Source #
((~) * signature (Text -> Maybe GVariant -> Maybe b -> m (Bytes, Bytes)), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoRemoteFetchSummaryWithOptionsMethodInfo a signature Source # | |
repoRemoteFetchSummaryWithOptions Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe GVariant |
|
-> Maybe b |
|
-> m (Bytes, Bytes) | (Can throw |
Like repoRemoteFetchSummary
, but supports an extensible set of flags.
The following are currently defined:
- override-url (s): Fetch summary from this URL if remote specifies no metalink in options
remoteGetGpgVerify
data RepoRemoteGetGpgVerifyMethodInfo Source #
((~) * signature (Text -> m Bool), MonadIO m, IsRepo a) => MethodInfo * RepoRemoteGetGpgVerifyMethodInfo a signature Source # | |
repoRemoteGetGpgVerify Source #
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> Text |
|
-> m Bool | (Can throw |
Return whether GPG verification is enabled for the remote named name
through outGpgVerify
. It is an error if the provided remote does
not exist.
remoteGetGpgVerifySummary
data RepoRemoteGetGpgVerifySummaryMethodInfo Source #
((~) * signature (Text -> m Bool), MonadIO m, IsRepo a) => MethodInfo * RepoRemoteGetGpgVerifySummaryMethodInfo a signature Source # | |
repoRemoteGetGpgVerifySummary Source #
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> Text |
|
-> m Bool | (Can throw |
Return whether GPG verification of the summary is enabled for the remote
named name
through outGpgVerifySummary
. It is an error if the provided
remote does not exist.
remoteGetUrl
data RepoRemoteGetUrlMethodInfo Source #
((~) * signature (Text -> m Text), MonadIO m, IsRepo a) => MethodInfo * RepoRemoteGetUrlMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> Text |
|
-> m Text | (Can throw |
Return the URL of the remote named name
through outUrl
. It is an
error if the provided remote does not exist.
remoteGpgImport
data RepoRemoteGpgImportMethodInfo Source #
((~) * signature (Text -> Maybe b -> Maybe [Text] -> Word32 -> Maybe c -> m ()), MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) => MethodInfo * RepoRemoteGpgImportMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> Maybe [Text] |
|
-> Word32 |
|
-> Maybe c |
|
-> m () | (Can throw |
Imports one or more GPG keys from the open sourceStream
, or from the
user's personal keyring if sourceStream
is Nothing
. The keyIds
array
can optionally restrict which keys are imported. If keyIds
is Nothing
,
then all keys are imported.
The imported keys will be used to conduct GPG verification when pulling
from the remote named name
.
remoteList
data RepoRemoteListMethodInfo Source #
((~) * signature (m [Text]), MonadIO m, IsRepo a) => MethodInfo * RepoRemoteListMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> m [Text] | Returns: a |
remoteListRefs
data RepoRemoteListRefsMethodInfo Source #
((~) * signature (Text -> Maybe b -> m (Map Text Text)), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoRemoteListRefsMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> m (Map Text Text) | (Can throw |
No description available in the introspection data.
resolveRev
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> Text |
|
-> Bool |
|
-> m Text | (Can throw |
Look up the given refspec, returning the checksum it references in
the parameter outRev
. Will fall back on remote directory if cannot
find the given refspec in local.
resolveRevExt
data RepoResolveRevExtMethodInfo Source #
((~) * signature (Text -> Bool -> RepoResolveRevExtFlags -> m Text), MonadIO m, IsRepo a) => MethodInfo * RepoResolveRevExtMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> Text |
|
-> Bool |
|
-> RepoResolveRevExtFlags |
|
-> m Text | (Can throw |
Look up the given refspec, returning the checksum it references in
the parameter outRev
. Differently from repoResolveRev
,
this will not fall back to searching through remote repos if a
local ref is specified but not found.
scanHardlinks
data RepoScanHardlinksMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoScanHardlinksMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Maybe b |
|
-> m () | (Can throw |
When ostree builds a mutable tree from directory like in
repoWriteDirectoryToMtree
, it has to scan all files that you
pass in and compute their checksums. If your commit contains hardlinks from
ostree's existing repo, ostree can build a mapping of device numbers and
inodes to their checksum.
There is an upfront cost to creating this mapping, as this will scan the
entire objects directory. If your commit is composed of mostly hardlinks to
existing ostree objects, then this will speed up considerably, so call it
before you call ostree_write_directory_to_mtree()
or similar.
setCacheDir
data RepoSetCacheDirMethodInfo Source #
((~) * signature (Int32 -> Text -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoSetCacheDirMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Int32 |
|
-> Text |
|
-> Maybe b |
|
-> m () | (Can throw |
Set a custom location for the cache directory used for e.g. per-remote summary caches. Setting this manually is useful when doing operations on a system repo as a user because you don't have write permissions in the repo, where the cache is normally stored.
setDisableFsync
data RepoSetDisableFsyncMethodInfo Source #
((~) * signature (Bool -> m ()), MonadIO m, IsRepo a) => MethodInfo * RepoSetDisableFsyncMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> Bool |
|
-> m () |
Disable requests to fsync()
to stable storage during commits. This
option should only be used by build system tools which are creating
disposable virtual machines, or have higher level mechanisms for
ensuring data consistency.
setRefImmediate
data RepoSetRefImmediateMethodInfo Source #
((~) * signature (Maybe Text -> Text -> Maybe Text -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoSetRefImmediateMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Maybe Text |
|
-> Text |
|
-> Maybe Text |
|
-> Maybe b |
|
-> m () | (Can throw |
This is like repoTransactionSetRef
, except it may be
invoked outside of a transaction. This is presently safe for the
case where we're creating or overwriting an existing ref.
signCommit
data RepoSignCommitMethodInfo Source #
((~) * signature (Text -> Text -> Maybe Text -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoSignCommitMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Text |
|
-> Maybe Text |
|
-> Maybe b |
|
-> m () | (Can throw |
Add a GPG signature to a commit.
signDelta
data RepoSignDeltaMethodInfo Source #
((~) * signature (Text -> Text -> Text -> Text -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoSignDeltaMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a | |
-> Text | |
-> Text | |
-> Text | |
-> Text | |
-> Maybe b | |
-> m () | (Can throw |
This function is deprecated, sign the summary file instead. Add a GPG signature to a static delta.
staticDeltaExecuteOffline
data RepoStaticDeltaExecuteOfflineMethodInfo Source #
((~) * signature (b -> Bool -> Maybe c -> m ()), MonadIO m, IsRepo a, IsFile b, IsCancellable c) => MethodInfo * RepoStaticDeltaExecuteOfflineMethodInfo a signature Source # | |
repoStaticDeltaExecuteOffline Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsCancellable c) | |
=> a |
|
-> b |
|
-> Bool |
|
-> Maybe c |
|
-> m () | (Can throw |
Given a directory representing an already-downloaded static delta on disk, apply it, generating a new commit. The directory must be named with the form "FROM-TO", where both are checksums, and it must contain a file named "superblock", along with at least one part.
staticDeltaGenerate
data RepoStaticDeltaGenerateMethodInfo Source #
((~) * signature (StaticDeltaGenerateOpt -> Text -> Text -> Maybe GVariant -> Maybe GVariant -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoStaticDeltaGenerateMethodInfo a signature Source # | |
repoStaticDeltaGenerate Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> StaticDeltaGenerateOpt |
|
-> Text |
|
-> Text |
|
-> Maybe GVariant |
|
-> Maybe GVariant |
|
-> Maybe b |
|
-> m () | (Can throw |
Generate a lookaside "static delta" from from
(Nothing
means
from-empty) which can generate the objects in to
. This delta is
an optimization over fetching individual objects, and can be
conveniently stored and applied offline.
The params
argument should be an a{sv}. The following attributes
are known:
- min-fallback-size: u: Minimum uncompressed size in megabytes to use fallback, 0 to disable fallbacks
- max-chunk-size: u: Maximum size in megabytes of a delta part
- max-bsdiff-size: u: Maximum size in megabytes to consider bsdiff compression
for input files
- compression: y: Compression type: 0=none, x=lzma, g=gzip
- bsdiff-enabled: b: Enable bsdiff compression. Default TRUE.
- inline-parts: b: Put part data in header, to get a single file delta. Default FALSE.
- verbose: b: Print diagnostic messages. Default FALSE.
- endianness: b: Deltas use host byte order by default; this option allows choosing (G_BIG_ENDIAN or G_LITTLE_ENDIAN)
- filename: ay: Save delta superblock to this filename, and parts in the same directory. Default saves to repository.
transactionSetRef
repoTransactionSetRef Source #
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> Maybe Text |
|
-> Text |
|
-> Text |
|
-> m () |
If checksum
is not Nothing
, then record it as the target of ref named
ref
; if remote
is provided, the ref will appear to originate from that
remote.
Otherwise, if checksum
is Nothing
, then record that the ref should
be deleted.
The change will not be written out immediately, but when the transaction
is completed with repoCommitTransaction
. If the transaction
is instead aborted with repoAbortTransaction
, no changes will
be made to the repository.
transactionSetRefspec
data RepoTransactionSetRefspecMethodInfo Source #
((~) * signature (Text -> Text -> m ()), MonadIO m, IsRepo a) => MethodInfo * RepoTransactionSetRefspecMethodInfo a signature Source # | |
repoTransactionSetRefspec Source #
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> Text |
|
-> Text |
|
-> m () |
Like repoTransactionSetRef
, but takes concatenated
refspec
format as input instead of separate remote and name
arguments.
verifyCommit
data RepoVerifyCommitMethodInfo Source #
((~) * signature (Text -> Maybe b -> Maybe c -> Maybe d -> m ()), MonadIO m, IsRepo a, IsFile b, IsFile c, IsCancellable d) => MethodInfo * RepoVerifyCommitMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsFile c, IsCancellable d) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe d |
|
-> m () | (Can throw |
Check for a valid GPG signature on commit named by the ASCII
checksum commitChecksum
.
verifyCommitExt
data RepoVerifyCommitExtMethodInfo Source #
((~) * signature (Text -> Maybe b -> Maybe c -> Maybe d -> m GpgVerifyResult), MonadIO m, IsRepo a, IsFile b, IsFile c, IsCancellable d) => MethodInfo * RepoVerifyCommitExtMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsFile c, IsCancellable d) | |
=> a |
|
-> Text |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe d |
|
-> m GpgVerifyResult | Returns: an |
Read GPG signature(s) on the commit named by the ASCII checksum
commitChecksum
and return detailed results.
verifyCommitForRemote
data RepoVerifyCommitForRemoteMethodInfo Source #
((~) * signature (Text -> Text -> Maybe b -> m GpgVerifyResult), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoVerifyCommitForRemoteMethodInfo a signature Source # | |
repoVerifyCommitForRemote Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Text |
|
-> Maybe b |
|
-> m GpgVerifyResult | Returns: an |
Read GPG signature(s) on the commit named by the ASCII checksum
commitChecksum
and return detailed results, based on the keyring
configured for remote
.
verifySummary
data RepoVerifySummaryMethodInfo Source #
((~) * signature (Text -> Bytes -> Bytes -> Maybe b -> m GpgVerifyResult), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoVerifySummaryMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Bytes |
|
-> Bytes |
|
-> Maybe b |
|
-> m GpgVerifyResult | Returns: an |
Verify signatures
for summary
data using GPG keys in the keyring for
remoteName
, and return an GpgVerifyResult
.
writeArchiveToMtree
data RepoWriteArchiveToMtreeMethodInfo Source #
((~) * signature (b -> c -> Maybe RepoCommitModifier -> Bool -> Maybe d -> m ()), MonadIO m, IsRepo a, IsFile b, IsMutableTree c, IsCancellable d) => MethodInfo * RepoWriteArchiveToMtreeMethodInfo a signature Source # | |
repoWriteArchiveToMtree Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsMutableTree c, IsCancellable d) | |
=> a |
|
-> b |
|
-> c |
|
-> Maybe RepoCommitModifier |
|
-> Bool |
|
-> Maybe d |
|
-> m () | (Can throw |
Import an archive file archive
into the repository, and write its
file structure to mtree
.
writeCommit
data RepoWriteCommitMethodInfo Source #
((~) * signature (Maybe Text -> Maybe Text -> Maybe Text -> Maybe GVariant -> b -> Maybe c -> m Text), MonadIO m, IsRepo a, IsRepoFile b, IsCancellable c) => MethodInfo * RepoWriteCommitMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsRepoFile b, IsCancellable c) | |
=> a |
|
-> Maybe Text |
|
-> Maybe Text |
|
-> Maybe Text |
|
-> Maybe GVariant |
|
-> b |
|
-> Maybe c |
|
-> m Text | (Can throw |
Write a commit metadata object, referencing rootContentsChecksum
and rootMetadataChecksum
.
writeCommitDetachedMetadata
data RepoWriteCommitDetachedMetadataMethodInfo Source #
((~) * signature (Text -> Maybe GVariant -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoWriteCommitDetachedMetadataMethodInfo a signature Source # | |
repoWriteCommitDetachedMetadata Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> Text |
|
-> Maybe GVariant |
|
-> Maybe b |
|
-> m () | (Can throw |
Replace any existing metadata associated with commit referred to by
checksum
with metadata
. If metadata
is Nothing
, then existing
data will be deleted.
writeCommitWithTime
repoWriteCommitWithTime Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsRepoFile b, IsCancellable c) | |
=> a |
|
-> Maybe Text |
|
-> Maybe Text |
|
-> Maybe Text |
|
-> Maybe GVariant |
|
-> b |
|
-> Word64 |
|
-> Maybe c |
|
-> m Text | (Can throw |
Write a commit metadata object, referencing rootContentsChecksum
and rootMetadataChecksum
.
writeConfig
data RepoWriteConfigMethodInfo Source #
((~) * signature (KeyFile -> m ()), MonadIO m, IsRepo a) => MethodInfo * RepoWriteConfigMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a) | |
=> a |
|
-> KeyFile |
|
-> m () | (Can throw |
Save newConfig
in place of this repository's config file. Note
that newConfig
should not be modified after - this function
simply adds a reference.
writeContent
data RepoWriteContentMethodInfo Source #
((~) * signature (Maybe Text -> b -> Word64 -> Maybe c -> m ByteString), MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) => MethodInfo * RepoWriteContentMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) | |
=> a |
|
-> Maybe Text |
|
-> b |
|
-> Word64 |
|
-> Maybe c |
|
-> m ByteString | (Can throw |
Store the content object streamed as objectInput
,
with total length length
. The actual checksum will
be returned as outCsum
.
writeContentAsync
data RepoWriteContentAsyncMethodInfo Source #
((~) * signature (Maybe Text -> b -> Word64 -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) => MethodInfo * RepoWriteContentAsyncMethodInfo a signature Source # | |
repoWriteContentAsync Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) | |
=> a |
|
-> Maybe Text |
|
-> b |
|
-> Word64 |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously store the content object object
. If provided, the
checksum expectedChecksum
will be verified.
writeContentFinish
data RepoWriteContentFinishMethodInfo Source #
((~) * signature (b -> m Word8), MonadIO m, IsRepo a, IsAsyncResult b) => MethodInfo * RepoWriteContentFinishMethodInfo a signature Source # | |
repoWriteContentFinish Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m Word8 | (Can throw |
Completes an invocation of repoWriteContentAsync
.
writeContentTrusted
data RepoWriteContentTrustedMethodInfo Source #
((~) * signature (Text -> b -> Word64 -> Maybe c -> m ()), MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) => MethodInfo * RepoWriteContentTrustedMethodInfo a signature Source # | |
repoWriteContentTrusted Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) | |
=> a |
|
-> Text |
|
-> b |
|
-> Word64 |
|
-> Maybe c |
|
-> m () | (Can throw |
Store the content object streamed as objectInput
, with total
length length
. The given checksum
will be treated as trusted.
This function should be used when importing file objects from local disk, for example.
writeDfdToMtree
data RepoWriteDfdToMtreeMethodInfo Source #
((~) * signature (Int32 -> Text -> b -> Maybe RepoCommitModifier -> Maybe c -> m ()), MonadIO m, IsRepo a, IsMutableTree b, IsCancellable c) => MethodInfo * RepoWriteDfdToMtreeMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsMutableTree b, IsCancellable c) | |
=> a |
|
-> Int32 |
|
-> Text |
|
-> b |
|
-> Maybe RepoCommitModifier |
|
-> Maybe c |
|
-> m () | (Can throw |
Store as objects all contents of the directory referred to by dfd
and path
all children into the repository self
, overlaying the
resulting filesystem hierarchy into mtree
.
writeDirectoryToMtree
data RepoWriteDirectoryToMtreeMethodInfo Source #
((~) * signature (b -> c -> Maybe RepoCommitModifier -> Maybe d -> m ()), MonadIO m, IsRepo a, IsFile b, IsMutableTree c, IsCancellable d) => MethodInfo * RepoWriteDirectoryToMtreeMethodInfo a signature Source # | |
repoWriteDirectoryToMtree Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsFile b, IsMutableTree c, IsCancellable d) | |
=> a |
|
-> b |
|
-> c |
|
-> Maybe RepoCommitModifier |
|
-> Maybe d |
|
-> m () | (Can throw |
Store objects for dir
and all children into the repository self
,
overlaying the resulting filesystem hierarchy into mtree
.
writeMetadata
data RepoWriteMetadataMethodInfo Source #
((~) * signature (ObjectType -> Maybe Text -> GVariant -> Maybe b -> m ByteString), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoWriteMetadataMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> ObjectType |
|
-> Maybe Text |
|
-> GVariant |
|
-> Maybe b |
|
-> m ByteString | (Can throw |
Store the metadata object variant
. Return the checksum
as outCsum
.
If expectedChecksum
is not Nothing
, verify it against the
computed checksum.
writeMetadataAsync
data RepoWriteMetadataAsyncMethodInfo Source #
((~) * signature (ObjectType -> Maybe Text -> GVariant -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoWriteMetadataAsyncMethodInfo a signature Source # | |
repoWriteMetadataAsync Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> ObjectType |
|
-> Maybe Text |
|
-> GVariant |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Asynchronously store the metadata object variant
. If provided,
the checksum expectedChecksum
will be verified.
writeMetadataFinish
data RepoWriteMetadataFinishMethodInfo Source #
((~) * signature (b -> Word8 -> m ()), MonadIO m, IsRepo a, IsAsyncResult b) => MethodInfo * RepoWriteMetadataFinishMethodInfo a signature Source # | |
repoWriteMetadataFinish Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsAsyncResult b) | |
=> a | |
-> b | |
-> Word8 | |
-> m () | (Can throw |
No description available in the introspection data.
writeMetadataStreamTrusted
data RepoWriteMetadataStreamTrustedMethodInfo Source #
((~) * signature (ObjectType -> Text -> b -> Word64 -> Maybe c -> m ()), MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) => MethodInfo * RepoWriteMetadataStreamTrustedMethodInfo a signature Source # | |
repoWriteMetadataStreamTrusted Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsInputStream b, IsCancellable c) | |
=> a |
|
-> ObjectType |
|
-> Text |
|
-> b |
|
-> Word64 |
|
-> Maybe c |
|
-> m () | (Can throw |
Store the metadata object variant
; the provided checksum
is
trusted.
writeMetadataTrusted
data RepoWriteMetadataTrustedMethodInfo Source #
((~) * signature (ObjectType -> Text -> GVariant -> Maybe b -> m ()), MonadIO m, IsRepo a, IsCancellable b) => MethodInfo * RepoWriteMetadataTrustedMethodInfo a signature Source # | |
repoWriteMetadataTrusted Source #
:: (HasCallStack, MonadIO m, IsRepo a, IsCancellable b) | |
=> a |
|
-> ObjectType |
|
-> Text |
|
-> GVariant |
|
-> Maybe b |
|
-> m () | (Can throw |
Store the metadata object variant
; the provided checksum
is
trusted.
writeMtree
data RepoWriteMtreeMethodInfo Source #
((~) * signature (b -> Maybe c -> m File), MonadIO m, IsRepo a, IsMutableTree b, IsCancellable c) => MethodInfo * RepoWriteMtreeMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsRepo a, IsMutableTree b, IsCancellable c) | |
=> a |
|
-> b |
|
-> Maybe c |
|
-> m File | (Can throw |
Write all metadata objects for mtree
to repo; the resulting
outFile
points to the ObjectTypeDirTree
object that
the mtree
represented.
Properties
path
data RepoPathPropertyInfo Source #
constructRepoPath :: (IsRepo o, IsFile a) => a -> IO (GValueConstruct o) Source #
repoPath :: AttrLabelProxy "path" Source #
remotesConfigDir
data RepoRemotesConfigDirPropertyInfo Source #
constructRepoRemotesConfigDir :: IsRepo o => Text -> IO (GValueConstruct o) Source #
repoRemotesConfigDir :: AttrLabelProxy "remotesConfigDir" Source #
sysrootPath
data RepoSysrootPathPropertyInfo Source #
constructRepoSysrootPath :: (IsRepo o, IsFile a) => a -> IO (GValueConstruct o) Source #
repoSysrootPath :: AttrLabelProxy "sysrootPath" Source #
Signals
gpgVerifyResult
type C_RepoGpgVerifyResultCallback = Ptr () -> CString -> Ptr GpgVerifyResult -> Ptr () -> IO () Source #
type RepoGpgVerifyResultCallback = Text -> GpgVerifyResult -> IO () Source #
afterRepoGpgVerifyResult :: (IsRepo a, MonadIO m) => a -> RepoGpgVerifyResultCallback -> m SignalHandlerId Source #
mk_RepoGpgVerifyResultCallback :: C_RepoGpgVerifyResultCallback -> IO (FunPtr C_RepoGpgVerifyResultCallback) Source #
onRepoGpgVerifyResult :: (IsRepo a, MonadIO m) => a -> RepoGpgVerifyResultCallback -> m SignalHandlerId Source #
wrap_RepoGpgVerifyResultCallback :: RepoGpgVerifyResultCallback -> Ptr () -> CString -> Ptr GpgVerifyResult -> Ptr () -> IO () Source #