cachix-api-0.7.0: Servant HTTP API specification for https://cachix.org
Safe HaskellNone
LanguageHaskell2010

Cachix.API

Documentation

data BinaryCacheAPI route Source #

Constructors

BinaryCacheAPI 

Fields

Instances

Instances details
Generic (BinaryCacheAPI route) Source # 
Instance details

Defined in Cachix.API

Associated Types

type Rep (BinaryCacheAPI route) :: Type -> Type #

Methods

from :: BinaryCacheAPI route -> Rep (BinaryCacheAPI route) x #

to :: Rep (BinaryCacheAPI route) x -> BinaryCacheAPI route #

type Rep (BinaryCacheAPI route) Source # 
Instance details

Defined in Cachix.API

type Rep (BinaryCacheAPI route) = D1 ('MetaData "BinaryCacheAPI" "Cachix.API" "cachix-api-0.7.0-BFFRP5WN6zAAytcfqK4iAg" 'False) (C1 ('MetaCons "BinaryCacheAPI" 'PrefixI 'True) (((S1 ('MetaSel ('Just "nixCacheInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (CachixAuth :> ("cache" :> (Capture "name" Text :> ("nix-cache-info" :> Get '[XNixCacheInfo, JSON] NixCacheInfo)))))) :*: S1 ('MetaSel ('Just "narinfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (CachixAuth :> ("cache" :> (Capture "name" Text :> (Capture "narinfohash" NarInfoHash :> Get '[XNixNarInfo, JSON] (Headers '[Header "Cache-Control" Text] CachixNarInfo)))))))) :*: (S1 ('MetaSel ('Just "narinfoHead") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (CachixAuth :> ("cache" :> (Capture "name" Text :> (Capture "narinfohash" NarInfoHash :> Head)))))) :*: (S1 ('MetaSel ('Just "nar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (CachixAuth :> ("cache" :> (Capture "name" Text :> ("nar" :> (Capture "nar" NarFileName :> StreamGet NoFraming XNixNar (ConduitT () ByteStringStreaming (ResourceT IO) ())))))))) :*: S1 ('MetaSel ('Just "getCache") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (CachixAuth :> ("cache" :> (Capture "name" Text :> Get '[JSON] BinaryCache)))))))) :*: ((S1 ('MetaSel ('Just "narinfoBulk") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (CachixAuth :> ("cache" :> (Capture "name" Text :> ("narinfo" :> (Summary "Given a list of store hashes, return a list of those that are missing" :> (ReqBody '[JSON] [Text] :> Post '[JSON] [Text])))))))) :*: (S1 ('MetaSel ('Just "narURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (CachixAuth :> ("cache" :> (Capture "name" Text :> ("narurl" :> (Capture "nar" NarFileName :> Get '[JSON] Text))))))) :*: S1 ('MetaSel ('Just "createNarinfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (CachixAuth :> ("cache" :> (Capture "name" Text :> (Capture "narinfohash" NarInfoHash :> (ReqBody '[JSON] NarInfoCreate :> Post '[JSON] NoContent))))))))) :*: (S1 ('MetaSel ('Just "createNar") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (CachixAuth :> ("cache" :> (Capture "name" Text :> ("nar" :> (StreamBody NoFraming XNixNar (ConduitT () ByteStringStreaming (ResourceT IO) ()) :> Post '[JSON] NoContent))))))) :*: (S1 ('MetaSel ('Just "serveNarContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (CachixAuth :> ("cache" :> (Capture "name" Text :> ("serve" :> (Capture "storehash" Text :> (CaptureAll "filepath" Text :> (Summary "Serve a file from a given store path" :> Get '[XNixNar] (Headers '[Header "X-Content-Type-Options" Text, Header "Cache-Control" Text] LazyByteStringStreaming)))))))))) :*: S1 ('MetaSel ('Just "createKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (route :- (CachixAuth :> ("cache" :> (Capture "name" Text :> ("key" :> (ReqBody '[JSON] SigningKeyCreate :> Post '[JSON] NoContent))))))))))))