Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data TokenFileAuth = TokenFileAuth {}
- tokenFileAuth :: DetectAuth
- setTokenFileAuth :: FilePath -> KubernetesClientConfig -> IO KubernetesClientConfig
- getToken :: TokenFileAuth -> IO Text
- getCurrentToken :: TokenFileAuth -> IO (Maybe Text)
- reloadToken :: TokenFileAuth -> IO Text
Documentation
data TokenFileAuth Source #
Instances
AuthMethod TokenFileAuth Source # | |
Defined in Kubernetes.Client.Auth.TokenFile applyAuthMethod :: KubernetesClientConfig -> TokenFileAuth -> KubernetesRequest req contentType res accept -> IO (KubernetesRequest req contentType res accept) # |
tokenFileAuth :: DetectAuth Source #
Detects if token-file is specified in AuthConfig.
setTokenFileAuth :: FilePath -> KubernetesClientConfig -> IO KubernetesClientConfig Source #
Configures the KubernetesClientConfig
to use TokenFile authentication.
getCurrentToken :: TokenFileAuth -> IO (Maybe Text) Source #
reloadToken :: TokenFileAuth -> IO Text Source #