config

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

View Source
const (
	HTTPProto  = "http"
	HTTPSProto = "https"
	TLSProto   = "tls"
	TCPProto   = "tcp"
	SNIProto   = "sni"
	UDPProto   = "udp"
)

supported protocols

View Source
const (
	EqRuleComparator  = "eq"
	BegRuleComparator = "beg"
	EndRuleComparator = "end"
)

Variables

This section is empty.

Functions

func FormulateBackendName added in v0.7.16

func FormulateBackendName(sourcePort int64, hostname string, path string) string

Types

type BackendService

type BackendService struct {
	UUID           string
	Endpoints      Endpoints
	Path           string
	Host           string
	RuleComparator string
	Algorithm      string
	Port           int
	Protocol       string
	Config         string
	HealthCheck    *HealthCheck
	Priority       int
	SendProxy      bool
}

type BackendServices added in v0.4.0

type BackendServices []*BackendService

func (BackendServices) Len added in v0.4.0

func (s BackendServices) Len() int

func (BackendServices) Less added in v0.4.0

func (s BackendServices) Less(i, j int) bool

func (BackendServices) Swap added in v0.4.0

func (s BackendServices) Swap(i, j int)

type Certificate

type Certificate struct {
	Name  string
	Cert  string
	Key   string
	Fetch bool
}

type Endpoint

type Endpoint struct {
	Name         string
	IP           string
	Port         int
	Config       string
	IsCname      bool
	DrainTimeout string
	Weight       int
}

type Endpoints added in v0.4.0

type Endpoints []*Endpoint

func (Endpoints) Len added in v0.4.0

func (s Endpoints) Len() int

func (Endpoints) Less added in v0.4.0

func (s Endpoints) Less(i, j int) bool

func (Endpoints) Swap added in v0.4.0

func (s Endpoints) Swap(i, j int)

type FrontendService

type FrontendService struct {
	Name            string
	Port            int
	BackendServices BackendServices
	Protocol        string
	Config          string
	AcceptProxy     bool
}

type FrontendServices added in v0.4.0

type FrontendServices []*FrontendService

func (FrontendServices) Len added in v0.4.0

func (s FrontendServices) Len() int

func (FrontendServices) Less added in v0.4.0

func (s FrontendServices) Less(i, j int) bool

func (FrontendServices) Swap added in v0.4.0

func (s FrontendServices) Swap(i, j int)

type HealthCheck added in v0.4.0

type HealthCheck struct {
	ResponseTimeout    int    `json:"response_timeout"`
	Interval           int    `json:"interval"`
	HealthyThreshold   int    `json:"healthy_threshold"`
	UnhealthyThreshold int    `json:"unhealthy_threshold"`
	RequestLine        string `json:"request_line"`
	Port               int    `json:"port"`
}

type LoadBalancerConfig

type LoadBalancerConfig struct {
	DefaultCert      *Certificate
	Certs            []*Certificate
	Name             string
	Annotations      map[string]string
	FrontendServices FrontendServices
	Config           string
	StickinessPolicy *StickinessPolicy
}

type StickinessPolicy added in v0.4.0

type StickinessPolicy struct {
	Name     string `json:"name"`
	Cookie   string `json:"cookie"`
	Domain   string `json:"domain"`
	Indirect bool   `json:"indirect"`
	Nocache  bool   `json:"nocache"`
	Postonly bool   `json:"postonly"`
	Mode     string `json:"mode"`
}

Jump to

Keyboard shortcuts

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