processor

package
v0.0.0-...-7f7f88d Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 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 NginxRedirect

type NginxRedirect struct {
	// contains filtered or unexported fields
}

func (NginxRedirect) DryRun

func (r NginxRedirect) DryRun(reportDir string) error

DryRun runs sanity checks and generate a report. It can optionally dump the redirect file that will be generated to stdout.

func (NginxRedirect) Generate

func (r NginxRedirect) Generate() error

type Processor

type Processor interface {
	DryRun(string) error
	Generate() error
}

func NewNginxRedirect

func NewNginxRedirect(input [][]string, outputDir string, withHost bool) (Processor, error)

func NewTraefikRedirect

func NewTraefikRedirect(cfg TRedirectConfig, input [][]string, b backend.Backend) (Processor, error)

type RedirectResource

type RedirectResource struct {
	Name        string
	Regex       string
	Replacement string
	ReWriteHost bool
	URLHost     string
}

type RedirectResources

type RedirectResources struct {
	Resources []RedirectResource
	// contains filtered or unexported fields
}

func NewRedirectResources

func NewRedirectResources(input [][]string, parseURL bool, alias string, URLHost string, hostRewrite bool) (RedirectResources, error)

type TRedirectConfig

type TRedirectConfig struct {
	Alias       string
	Namespace   string
	OutputDir   string
	BaseHost    string
	RewriteHost bool
}

type TraefikRedirect

type TraefikRedirect struct {
	// contains filtered or unexported fields
}

func (TraefikRedirect) DryRun

func (t TraefikRedirect) DryRun(dest string) error

func (TraefikRedirect) Generate

func (t TraefikRedirect) Generate() error

Jump to

Keyboard shortcuts

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