Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypePublicKey = "PUBLIC KEY" TypeCertificate = "CERTIFICATE" )
Variables ¶
View Source
var ( // name of the environment variable carrying the openSSL binary KeyEnvOpenSSL = "OPENSSL_BIN" // default name of the openSSL binary DefaultOpenSSL = "openssl" GetPath = T.First[string, string] GetVersion = T.Second[string, string] // tests if a string contains "OpenSSL" IncludesOpenSSL = S.Includes("OpenSSL") // name of the open SSL binary either from the environment or a fallback OpenSSLBinary = F.Pipe2( KeyEnvOpenSSL, CIOO.LookupEnv, IOO.Fold(L.Of(IO.Of(DefaultOpenSSL)), IO.Of[string]), ) )
View Source
var ( GetPwd = T.First[string, string] GetToken = T.Second[string, string] // IsHyperProtectBasic tests if a string is a hyper protect token IsHyperProtectBasic = tokenRe.MatchString )
View Source
var IsType = F.Flow2( S.Equals, P.ContraMap(GetTypeFromBlock), )
Functions ¶
func GetTypeFromBlock ¶
func PemDecodeAll ¶
PemDecodeAll will decode the complete PEM structure
func SplitHyperProtectToken ¶
func SplitHyperProtectToken(token string) E.Either[error, SplitToken]
Types ¶
type OpenSSLVersion ¶
OpenSSLVersion represents the openSSL version, including the path to the binary
Click to show internal directories.
Click to hide internal directories.