Documentation ¶
Overview ¶
Package testify provides helpers for testing
Index ¶
- func GenerateECDSAKeyInPEM(rand io.Reader, c elliptic.Curve) ([]byte, error)
- func GenerateRSAKeyInPEM(rand io.Reader, size int) ([]byte, error)
- func MakeSelfCertECDSA(hours int) (*x509.Certificate, crypto.PrivateKey, error)
- func MakeSelfCertECDSAPem(hours int) (pemCert, pemKey []byte, err error)
- func MakeSelfCertRSA(hours int) (*x509.Certificate, crypto.PrivateKey, error)
- func MakeSelfCertRSAPem(hours int) (pemCert, pemKey []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateECDSAKeyInPEM ¶
GenerateECDSAKeyInPEM returns PEM encoded ECDSA key
func GenerateRSAKeyInPEM ¶
GenerateRSAKeyInPEM returns PEM encoded RSA key
func MakeSelfCertECDSA ¶
func MakeSelfCertECDSA(hours int) (*x509.Certificate, crypto.PrivateKey, error)
MakeSelfCertECDSA creates self-signed cert
func MakeSelfCertECDSAPem ¶
MakeSelfCertECDSAPem creates self-signed cert in PEM format
func MakeSelfCertRSA ¶
func MakeSelfCertRSA(hours int) (*x509.Certificate, crypto.PrivateKey, error)
MakeSelfCertRSA creates self-signed cert
func MakeSelfCertRSAPem ¶
MakeSelfCertRSAPem creates self-signed cert in PEM format
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package servefiles provides a way to mock a HTTP server endpoint by providing response payloads from the disk
|
Package servefiles provides a way to mock a HTTP server endpoint by providing response payloads from the disk |
Click to show internal directories.
Click to hide internal directories.