ingress

package
v0.0.0-...-1a56975 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallResponse

type CallResponse struct {
	// Response status code
	Code int

	// Response body
	Body string
}

CallResponse is the result of a call made through Istio Ingress.

type Config

type Config struct {
	Istio istio.Instance
}

type Instance

type Instance interface {
	resource.Resource

	// Address returns the external HTTP address of the ingress gateway (or the NodePort address,
	// when running under Minikube).
	Address() string

	//  Call makes an HTTP call through ingress, where the URL has the given path.
	Call(path string) (CallResponse, error)
}

Instance represents a deployed Ingress Gateway instance.

func New

func New(ctx resource.Context, cfg Config) (i Instance, err error)

Deploy returns a new instance of echo.

func NewOrFail

func NewOrFail(t *testing.T, ctx resource.Context, cfg Config) Instance

Deploy returns a new Ingress instance or fails test

Jump to

Keyboard shortcuts

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