apiservertest

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CaCert1Pem is used in the kube-root-ca.crt ConfigMap response
	CaCert1Pem = `` /* 2320-byte string literal not displayed */

	// CaCert2Pem is used in the ClientConfig response
	CaCert2Pem = `` /* 2288-byte string literal not displayed */

	// InternalAPIServerURL is the API server URL returned in the GKE ClientConfig resource, representing the Envoy proxy for OIDC requests
	InternalAPIServerURL = "https://10.10.10.10:443"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	RequestCount(endpoint string) int
	Reset()
	Stop()
}

Server holds the interface to a mocked API server

func Start

func Start(host string, port int32) (Server, error)

Start returns and starts a new API test server

Jump to

Keyboard shortcuts

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