Modulehackage-security-0.6.4.0
Hackage.Security.Client.Repository
- 11 types
- 1 class
- 6 values
- Packagehackage-security-0.6.4.0
- Exports18
- LicenceBSD-3-Clause
Instances4Eq, Ord, Show, Pretty
Eq CachedFileDefined in hackage-security-0.6.4.0 · Hackage.Security.Client.RepositoryOrd CachedFileDefined in hackage-security-0.6.4.0 · Hackage.Security.Client.RepositoryShow CachedFileDefined in hackage-security-0.6.4.0 · Hackage.Security.Client.RepositoryPretty CachedFileDefined in hackage-security-0.6.4.0 · Hackage.Security.Client.Repository
Methods
downloadedVerify :: down a -> Trusted FileInfo -> IO BooldownloadedRead :: down Metadata -> IO ByteStringdownloadedCopyTo :: down a -> Path Absolute -> IO ()
Instances2DownloadedFile
DownloadedFile LocalFileDefined in hackage-security-0.6.4.0 · Hackage.Security.Client.Repository.LocalDownloadedFile RemoteTempDefined in hackage-security-0.6.4.0 · Hackage.Security.Client.Repository.Remote
Constructors
Constructors
LogRootUpdatedLogVerificationError VerificationErrorforall fs typ. LogDownloading (RemoteFile fs typ)forall fs. LogUpdating (RemoteFile fs Binary)LogSelectedMirror MirrorDescriptionforall fs. LogCannotUpdate (RemoteFile fs Binary) UpdateFailureLogMirrorFailed MirrorDescription SomeExceptionLogLockWait (Path Absolute)LogLockWaitDone (Path Absolute)LogUnlock (Path Absolute)
Instances1Pretty
Pretty LogMessageDefined in hackage-security-0.6.4.0 · Hackage.Security.Client.Repository
Constructors
RemoteTimestamp :: RemoteFile (FormatUn :- ()) MetadataRemoteRoot :: Maybe (Trusted FileInfo) -> RemoteFile (FormatUn :- ()) MetadataRemoteSnapshot :: Trusted FileInfo -> RemoteFile (FormatUn :- ()) MetadataRemoteMirrors :: Trusted FileInfo -> RemoteFile (FormatUn :- ()) MetadataRemoteIndex :: HasFormat fs FormatGz -> Formats fs (Trusted FileInfo) -> RemoteFile a BinaryRemotePkgTarGz :: PackageIdentifier -> Trusted FileInfo -> RemoteFile (FormatGz :- ()) Binary
Instances2Show, Pretty
Show (RemoteFile fs typ)Defined in hackage-security-0.6.4.0 · Hackage.Security.Client.RepositoryPretty (RemoteFile fs typ)Defined in hackage-security-0.6.4.0 · Hackage.Security.Client.Repository
Constructors
DownloadedFile down => RepositoryrepGetRemote :: forall fs typ. Throws SomeRemoteError => AttemptNr -> RemoteFile fs typ -> Verify (Some (HasFormat fs), down typ)repGetCached :: CachedFile -> IO (Maybe (Path Absolute))repGetCachedRoot :: IO (Path Absolute)repClearCache :: IO ()repWithIndex :: forall a. (Handle -> IO a) -> IO arepGetIndexIdx :: IO TarIndexrepLockCache :: IO () -> IO ()repWithMirror :: forall a. Maybe [Mirror] -> IO a -> IO arepLog :: LogMessage -> IO ()repLayout :: RepoLayoutrepIndexLayout :: IndexLayoutrepDescription :: String
Instances1Show
Show (Repository down)Defined in hackage-security-0.6.4.0 · Hackage.Security.Client.Repository
Constructors
SomeRemoteError :: Exception e => e -> SomeRemoteError
Instances3Show, Exception, Pretty
Show SomeRemoteErrorDefined in hackage-security-0.6.4.0 · Hackage.Security.Client.RepositoryException SomeRemoteErrorDefined in hackage-security-0.6.4.0 · Hackage.Security.Client.RepositoryPretty SomeRemoteErrorDefined in hackage-security-0.6.4.0 · Hackage.Security.Client.Repository
Instances1Pretty
Pretty UpdateFailureDefined in hackage-security-0.6.4.0 · Hackage.Security.Client.Repository
Constructors
IndexPkgMetadata :: PackageIdentifier -> IndexFile (Signed Targets)IndexPkgCabal :: PackageIdentifier -> IndexFile ()IndexPkgPrefs :: PackageName -> IndexFile ()
Instances4SomePretty, SomeShow, Show, Pretty
SomePretty IndexFileDefined in hackage-security-0.6.4.0 · Hackage.Security.TUF.Layout.IndexSomeShow IndexFileDefined in hackage-security-0.6.4.0 · Hackage.Security.TUF.Layout.IndexShow (IndexFile dec)Defined in hackage-security-0.6.4.0 · Hackage.Security.TUF.Layout.IndexPretty (IndexFile dec)Defined in hackage-security-0.6.4.0 · Hackage.Security.TUF.Layout.Index