{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MonoLocalBinds #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing -fno-warn-unused-binds -fno-warn-unused-imports #-}
module Kubernetes.OpenAPI.API.Logs where
import Kubernetes.OpenAPI.Core
import Kubernetes.OpenAPI.MimeTypes
import Kubernetes.OpenAPI.Model as M
import qualified Data.Aeson as A
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as BL
import qualified Data.Data as P (Typeable, TypeRep, typeOf, typeRep)
import qualified Data.Foldable as P
import qualified Data.Map as Map
import qualified Data.Maybe as P
import qualified Data.Proxy as P (Proxy(..))
import qualified Data.Set as Set
import qualified Data.String as P
import qualified Data.Text as T
import qualified Data.Text.Encoding as T
import qualified Data.Text.Lazy as TL
import qualified Data.Text.Lazy.Encoding as TL
import qualified Data.Time as TI
import qualified Network.HTTP.Client.MultipartFormData as NH
import qualified Network.HTTP.Media as ME
import qualified Network.HTTP.Types as NH
import qualified Web.FormUrlEncoded as WH
import qualified Web.HttpApiData as WH
import Data.Text (Text)
import GHC.Base ((<|>))
import Prelude ((==),(/=),($), (.),(<$>),(<*>),(>>=),Maybe(..),Bool(..),Char,Double,FilePath,Float,Int,Integer,String,fmap,undefined,mempty,maybe,pure,Monad,Applicative,Functor)
import qualified Prelude as P
logFileHandler
:: Logpath
-> KubernetesRequest LogFileHandler MimeNoContent NoContent MimeNoContent
logFileHandler :: Logpath
-> KubernetesRequest
LogFileHandler MimeNoContent NoContent MimeNoContent
logFileHandler (Logpath Text
logpath) =
Method
-> [ByteString]
-> KubernetesRequest
LogFileHandler MimeNoContent NoContent MimeNoContent
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/logs/",Text -> ByteString
forall a. ToHttpApiData a => a -> ByteString
toPath Text
logpath]
KubernetesRequest
LogFileHandler MimeNoContent NoContent MimeNoContent
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
LogFileHandler MimeNoContent NoContent MimeNoContent
forall authMethod req contentType res accept.
AuthMethod authMethod =>
KubernetesRequest req contentType res accept
-> Proxy authMethod -> KubernetesRequest req contentType res accept
`_hasAuthType` (Proxy AuthApiKeyBearerToken
forall k (t :: k). Proxy t
P.Proxy :: P.Proxy AuthApiKeyBearerToken)
data LogFileHandler
instance Produces LogFileHandler MimeNoContent
logFileListHandler
:: KubernetesRequest LogFileListHandler MimeNoContent NoContent MimeNoContent
logFileListHandler :: KubernetesRequest
LogFileListHandler MimeNoContent NoContent MimeNoContent
logFileListHandler =
Method
-> [ByteString]
-> KubernetesRequest
LogFileListHandler MimeNoContent NoContent MimeNoContent
forall req contentType res accept.
Method
-> [ByteString] -> KubernetesRequest req contentType res accept
_mkRequest Method
"GET" [ByteString
"/logs/"]
KubernetesRequest
LogFileListHandler MimeNoContent NoContent MimeNoContent
-> Proxy AuthApiKeyBearerToken
-> KubernetesRequest
LogFileListHandler MimeNoContent NoContent MimeNoContent
forall authMethod req contentType res accept.
AuthMethod authMethod =>
KubernetesRequest req contentType res accept
-> Proxy authMethod -> KubernetesRequest req contentType res accept
`_hasAuthType` (Proxy AuthApiKeyBearerToken
forall k (t :: k). Proxy t
P.Proxy :: P.Proxy AuthApiKeyBearerToken)
data LogFileListHandler
instance Produces LogFileListHandler MimeNoContent