hackage-security-0.5.3.0: Hackage security library

Safe HaskellNone
LanguageHaskell2010

Hackage.Security.TUF.FileMap

Contents

Description

Information about files

Intended to be double imported

import Hackage.Security.TUF.FileMap (FileMap)
import qualified Hackage.Security.TUF.FileMap as FileMap
Synopsis

Documentation

data FileMap Source #

Mapping from paths to file info

File maps are used in target files; the paths are relative to the location of the target files containing the file map.

Instances
Show FileMap Source # 
Instance details

Defined in Hackage.Security.TUF.FileMap

Methods

showsPrec :: Int -> FileMap -> ShowS

show :: FileMap -> String

showList :: [FileMap] -> ShowS

ReportSchemaErrors m => FromJSON m FileMap Source # 
Instance details

Defined in Hackage.Security.TUF.FileMap

Monad m => ToJSON m FileMap Source # 
Instance details

Defined in Hackage.Security.TUF.FileMap

Methods

toJSON :: FileMap -> m JSValue Source #

data TargetPath Source #

Entries in FileMap either talk about the repository or the index

Instances
Eq TargetPath Source # 
Instance details

Defined in Hackage.Security.TUF.FileMap

Methods

(==) :: TargetPath -> TargetPath -> Bool

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

Ord TargetPath Source # 
Instance details

Defined in Hackage.Security.TUF.FileMap

Show TargetPath Source # 
Instance details

Defined in Hackage.Security.TUF.FileMap

Methods

showsPrec :: Int -> TargetPath -> ShowS

show :: TargetPath -> String

showList :: [TargetPath] -> ShowS

Pretty TargetPath Source # 
Instance details

Defined in Hackage.Security.TUF.FileMap

Methods

pretty :: TargetPath -> String Source #

ReportSchemaErrors m => FromObjectKey m TargetPath Source # 
Instance details

Defined in Hackage.Security.TUF.FileMap

Methods

fromObjectKey :: String -> m (Maybe TargetPath) Source #

Monad m => ToObjectKey m TargetPath Source # 
Instance details

Defined in Hackage.Security.TUF.FileMap

Methods

toObjectKey :: TargetPath -> m String Source #

Standard accessors

Convenience accessors

lookupM :: Monad m => FileMap -> TargetPath -> m FileInfo Source #

Comparing file maps

data FileChange Source #

Constructors

FileChanged FileInfo

File got added or modified; we record the new file info

FileDeleted

File got deleted

Instances
Show FileChange Source # 
Instance details

Defined in Hackage.Security.TUF.FileMap

Methods

showsPrec :: Int -> FileChange -> ShowS

show :: FileChange -> String

showList :: [FileChange] -> ShowS