stack-1.5.0: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Docker.GlobalDB

Description

Global sqlite database shared by all projects. Warning: this is currently only accessible from outside a Docker container.

Synopsis

Documentation

updateDockerImageLastUsed :: Config -> String -> FilePath -> IO () Source #

Update last used time and project for a Docker image hash.

getDockerImagesLastUsed :: Config -> IO [DockerImageLastUsed] Source #

Get a list of Docker image hashes and when they were last used.

pruneDockerImagesLastUsed :: Config -> [String] -> IO () Source #

Given a list of all existing Docker images, remove any that no longer exist from the database.

type DockerImageLastUsed = (String, [(UTCTime, FilePath)]) Source #

Date and project path where Docker image hash last used.

type DockerImageProjectId = Key DockerImageProject Source #

getDockerImageExe :: Config -> String -> FilePath -> UTCTime -> IO (Maybe Bool) Source #

Get the record of whether an executable is compatible with a Docker image

setDockerImageExe :: Config -> String -> FilePath -> UTCTime -> Bool -> IO () Source #

Seet the record of whether an executable is compatible with a Docker image

type DockerImageExeId = Key DockerImageExe Source #