@@ -17,7 +17,7 @@ import qualified Data.Text as T
1717import GHC.Generics (Generic)
1818import qualified Network.HTTP.Client as HTTP
1919import Network.HTTP.Types (StdMethod)
20−import Prelude hiding (all)
20+import Prelude hiding (all, tail)
2121
2222type HttpVerb = StdMethod
2323
@@ -32,7 +32,7 @@ data Endpoint =
3232 | RestartContainerEndpoint Timeout ContainerID
3333 | PauseContainerEndpoint ContainerID
3434 | UnpauseContainerEndpoint ContainerID
35− | ContainerLogsEndpoint ContainerID LogOpts
35+ | ContainerLogsEndpoint LogOpts ContainerID
3636 | DeleteContainerEndpoint DeleteOpts ContainerID
3737
3838type URL = Text
@@ -240,11 +240,19 @@ data LogOpts = LogOpts {
240240 follow :: Bool
241241 , stdout :: Bool
242242 , stderr :: Bool
243− , since :: Timestamp
243+ , since :: Maybe Timestamp
244244 , timestamps :: Bool
245245 , tail :: TailLogOpt
246246 } deriving (Eq, Show)
247247
248+defaultLogOpts = LogOpts { follow = False
249+ , stdout = True
250+ , stderr = True
251+ , since = Nothing
252+ , timestamps = True
253+ , tail = All
254+ }
255+
248256data VolumePermission = Rw | Ro deriving (Eq, Show, Generic)
249257
250258instance ToJSON VolumePermission