kubernetes-client- Client library for Kubernetes
Safe HaskellNone




defaultTLSClientParams :: IO ClientParams Source #

Default TLS settings using the system CA store.

parsePEMCerts :: ByteString -> Either ParseCertException [SignedCertificate] Source #

Parses a PEM-encoded ByteString into a list of certificates.

updateClientParams :: ClientParams -> ByteString -> Either ParseCertException ClientParams Source #

Updates client params, sets CA store to passed bytestring of CA certificates

setClientCert :: Credential -> ClientParams -> ClientParams Source #

Use a client cert for authentication.

disableServerNameValidation :: ClientParams -> ClientParams Source #

Don't check whether the cert presented by the server matches the name of the server you are connecting to. This is necessary if you specify the server host by its IP address.

disableServerCertValidation :: ClientParams -> ClientParams Source #

Insecure mode. The client will not validate the server cert at all.

loadPEMCerts :: (MonadIO m, MonadThrow m) => FilePath -> m [SignedCertificate] Source #

Loads certificates from a PEM-encoded file.

loadB64EncodedCert :: MonadThrow m => ByteString -> ByteString -> m Credential Source #

Loads Base64 encoded certificate and private key