testserver

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const BootstrapToken = "testtoken"

Variables

This section is empty.

Functions

func RunSetup

func RunSetup(o *option)

Types

type Option

type Option func(*option)

type TestServer

type TestServer struct {
	AddrPort   string
	CACertPath string
	CACert     *x509.Certificate
	PubKeyHash string
	Basedir    string
}

func Run

func Run(t *testing.T, tsos ...Option) *TestServer

Jump to

Keyboard shortcuts

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