redirect

package
v0.0.0-...-42c7111 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParser

NewParser creates a new redirect annotation parser

Types

type Config

type Config struct {
	URL       string `json:"url"`
	Code      int    `json:"code"`
	FromToWWW bool   `json:"fromToWWW"`
}

Config returns the redirect configuration for an Ingress rule

func (*Config) Equal

func (r1 *Config) Equal(r2 *Config) bool

Equal tests for equality between two Redirect types

Jump to

Keyboard shortcuts

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