fakebundleendpoint

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(tb testing.TB, option ...ServerOption) *Server

func (*Server) Addr

func (s *Server) Addr() string

func (*Server) FetchBundleURL

func (s *Server) FetchBundleURL() string

func (*Server) RootCAs

func (s *Server) RootCAs() *x509.CertPool

func (*Server) Shutdown

func (s *Server) Shutdown()

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

func WithSPIFFEAuth

func WithSPIFFEAuth(bundle *spiffebundle.Bundle, svid *x509svid.SVID) ServerOption

func WithTestBundles

func WithTestBundles(bundles ...*spiffebundle.Bundle) ServerOption

WithTestBundles sets the bundles that are returned by the Bundle Endpoint. You can specify several bundles, which are going to be returned one at a time each time a bundle is GET by a client.

Jump to

Keyboard shortcuts

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