proxytest

package
v0.0.0-...-97394dd Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package proxytest contains test support code.

Index

Constants

This section is empty.

Variables

View Source
var TokenSigningKey *ecdsa.PrivateKey

TokenSigningKey This is a trivial key for signing tokens.

Functions

func ConfigureLogging

func ConfigureLogging()

ConfigureLogging should be called from TestMain to achieve consistent output from tests versus production.

func MakeToken

func MakeToken(username string) string

MakeToken creates a token signed with TokenSigningKey.

func SelfSignedConfig

func SelfSignedConfig() (*tls.Config, error)

SelfSignedConfig returns a trivial tls.Config that contains a self-signed certificate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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