testify

package
v0.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package testify provides helpers for testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateECDSAKeyInPEM

func GenerateECDSAKeyInPEM(rand io.Reader, c elliptic.Curve) ([]byte, error)

GenerateECDSAKeyInPEM returns PEM encoded ECDSA key

func GenerateRSAKeyInPEM

func GenerateRSAKeyInPEM(rand io.Reader, size int) ([]byte, error)

GenerateRSAKeyInPEM returns PEM encoded RSA key

func MakeSelfCertECDSA

func MakeSelfCertECDSA(hours int) (*x509.Certificate, crypto.PrivateKey, error)

MakeSelfCertECDSA creates self-signed cert

func MakeSelfCertECDSAPem

func MakeSelfCertECDSAPem(hours int) (pemCert, pemKey []byte, err error)

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

func MakeSelfCertRSAPem(hours int) (pemCert, pemKey []byte, err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL