v1helpers

package
v0.0.0-...-5a6645a Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectHttpOK

func ExpectHttpOK(body []byte, rootca *string, envoyPort uint32, response string)

func StartSslProxy

func StartSslProxy(ctx context.Context, port uint32) uint32

func TestUpstreamReachable

func TestUpstreamReachable(envoyPort uint32, tu *TestUpstream, rootca *string)

Types

type ReceivedRequest

type ReceivedRequest struct {
	Method      string
	Body        []byte
	Host        string
	GRPCRequest proto.Message
	Port        uint32
}

type TestUpstream

type TestUpstream struct {
	Upstream    *gloov1.Upstream
	C           <-chan *ReceivedRequest
	Address     string
	Port        uint32
	GrpcServers []*testgrpcservice.TestGRPCServer
}

func NewTestGRPCUpstream

func NewTestGRPCUpstream(ctx context.Context, addr string, replicas int) *TestUpstream

func NewTestHttpUpstream

func NewTestHttpUpstream(ctx context.Context, addr string) *TestUpstream

func NewTestHttpUpstreamWithReply

func NewTestHttpUpstreamWithReply(ctx context.Context, addr, reply string) *TestUpstream

func (*TestUpstream) FailGrpcHealthCheck

func (tu *TestUpstream) FailGrpcHealthCheck() *testgrpcservice.TestGRPCServer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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