stack-1.4.0: The Haskell Tool Stack

Safe Haskell | None
Language | Haskell2010

Stack.Docker.GlobalDB

Description

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

Synopsis

- updateDockerImageLastUsed :: Config -> String -> FilePath -> IO ()
- getDockerImagesLastUsed :: Config -> IO [DockerImageLastUsed]
- pruneDockerImagesLastUsed :: Config -> [String] -> IO ()
- type DockerImageLastUsed = (String, [(UTCTime, FilePath)])
- type DockerImageProjectId = Key DockerImageProject
- getDockerImageExe :: Config -> String -> FilePath -> UTCTime -> IO (Maybe Bool)
- setDockerImageExe :: Config -> String -> FilePath -> UTCTime -> Bool -> IO ()
- type DockerImageExeId = Key DockerImageExe

# Documentation

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

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

getDockerImagesLastUsed :: Config -> IO [DockerImageLastUsed] #

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

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

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

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

Date and project path where Docker image hash last used.

type DockerImageProjectId = Key DockerImageProject #

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

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

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

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

type DockerImageExeId = Key DockerImageExe #