cachix-1.1: src/Cachix/Deploy/Deployment.hs
module Cachix.Deploy.Deployment where
import qualified Cachix.API.WebSocketSubprotocol as WSS
import Cachix.Client.URI as Cachix
import qualified Cachix.Deploy.Log as Log
import qualified Data.Aeson as Aeson
import Protolude
-- | Everything required for the standalone deployment binary to complete a
-- deployment.
data Deployment = Deployment
{ agentName :: Text,
agentToken :: Text,
profileName :: Text,
agentInformation :: WSS.AgentInformation,
deploymentDetails :: WSS.DeploymentDetails,
host :: Cachix.URI,
logOptions :: Log.Options
}
deriving stock (Show, Generic)
deriving anyclass (Aeson.ToJSON, Aeson.FromJSON)