rewrite

package
v0.0.0-...-336e61a Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2016 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redirect

type Redirect struct {
	// Target URI where the traffic must be redirected
	Target string
	// AddBaseURL indicates if is required to add a base tag in the head
	// of the responses from the upstream servers
	AddBaseURL bool
	// SSLRedirect indicates if the location section is accessible SSL only
	SSLRedirect bool
}

Redirect describes the per location redirect config

func ParseAnnotations

func ParseAnnotations(cfg defaults.Backend, ing *extensions.Ingress) (*Redirect, error)

ParseAnnotations parses the annotations contained in the ingress rule used to rewrite the defined paths

Jump to

Keyboard shortcuts

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