testutil

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertPath

func CertPath(ca string, certname string) string

func CreateRSAKeyAndCert

func CreateRSAKeyAndCert(td string) (pri *rsa.PrivateKey, err error)

CreateRSAKeyAndCert public.pem and private.pem in td

func CreateSignedClientJWT

func CreateSignedClientJWT(pk *rsa.PrivateKey, claims map[string]any) (string, error)

func CreateSignedServerJWT

func CreateSignedServerJWT(pk *rsa.PrivateKey, pubK ed25519.PublicKey, claims map[string]any) (string, error)

func GbytesLogger

func GbytesLogger(level logrus.Level) (*gbytes.Buffer, *logrus.Logger)

func KeyPath

func KeyPath(ca string, certname string) string

func LoadRSAKey

func LoadRSAKey(key string) (pri *rsa.PrivateKey, err error)

func StartServerInstance

func StartServerInstance(ctx context.Context, wg *sync.WaitGroup, cfgFile string, log *logrus.Logger) (*server.Instance, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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