edge

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceType voyager.ResourceType = "GlobalEdge"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	Match    RouteMatch  `json:"match,omitempty"`
	Route    RouteAction `json:"route,omitempty"`
	Redirect string      `json:"redirect,omitempty"`
}

type RouteAction

type RouteAction struct {
	Cluster       string `json:"cluster"`
	PrefixRewrite string `json:"prefixRewrite,omitempty"`
}

type RouteMatch

type RouteMatch struct {
	Prefix string `json:"prefix,omitempty"`
	Regex  string `json:"regex,omitempty"`
	Path   string `json:"path,omitempty"`
	Host   string `json:"host,omitempty"`
}

type Spec

type Spec struct {
	UpstreamAddresses []UpstreamAddress `json:"upstreamAddresses"`
	UpstreamPort      int32             `json:"upstreamPort,omitempty"`
	UpstreamSuffix    string            `json:"upstreamSuffix,omitempty"`
	UpstreamOnly      string            `json:"upstreamOnly,omitempty"`
	Domains           []string          `json:"domains,omitempty"`
	Healthcheck       string            `json:"healthcheck,omitempty"`
	Rewrite           string            `json:"rewrite,omitempty"`
	Routes            []Route           `json:"routes,omitempty"`
}

type UpstreamAddress

type UpstreamAddress struct {
	Address string         `json:"address"`
	Region  voyager.Region `json:"region,omitempty"`
}

type WiringPlugin

type WiringPlugin struct {
}

func New

func New() *WiringPlugin

func (*WiringPlugin) WireUp

Jump to

Keyboard shortcuts

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