dynamic

package
v1.5.13 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptFunc

func AdaptFunc(whitelist WhiteListFunc) orbiter.AdaptFunc

Types

type AuthCheckResult added in v1.4.0

type AuthCheckResult struct {
	Machine  infra.Machine
	ExitCode int
}

type CIDRV0 added in v0.22.0

type CIDRV0 string

type CIDRV1 added in v0.22.0

type CIDRV1 string

type Current

type Current struct {
	Common  *tree.Common `yaml:",inline"`
	Current struct {
		Spec   func(svc core.MachinesService) (map[string][]*VIP, []AuthCheckResult, error)
		Desire func(pool string, svc core.MachinesService, vrrp *VRRP, vip func(*VIP) string) (bool, error)
	} `yaml:"-"`
}

type Desired

type Desired struct {
	Common *tree.Common `yaml:",inline"`
	Spec   map[string][]*VIP
}

func (*Desired) UnmarshalYAML

func (d *Desired) UnmarshalYAML(node *yaml.Node) (err error)

func (*Desired) Validate

func (d *Desired) Validate() error

type DesiredV0

type DesiredV0 struct {
	Common *tree.Common `yaml:",inline"`
	Spec   map[string][]*VIPV0
}

type DesiredV1 added in v0.22.0

type DesiredV1 struct {
	Common *tree.Common `yaml:",inline"`
	Spec   map[string][]*VIPV1
}

type DestinationV0 added in v0.22.0

type DestinationV0 struct {
	HealthChecks HealthChecksV0
	Port         PortV0
	Pool         string
}

type DestinationV1 added in v0.22.0

type DestinationV1 struct {
	HealthChecks HealthChecksV1
	Port         PortV1
	Pool         string
}

type HealthChecks

type HealthChecks struct {
	Protocol string
	Path     string
	Code     uint16
}

type HealthChecksV0 added in v0.22.0

type HealthChecksV0 struct {
	Protocol string
	Path     string
	Code     uint16
}

type HealthChecksV1 added in v0.22.0

type HealthChecksV1 struct {
	Protocol string
	Path     string
	Code     uint16
}

type LB added in v0.22.0

type LB struct {
	VIPs                 []*VIP
	State                string
	RouterID             int
	Self                 infra.Machine
	Peers                []infra.Machine
	CustomMasterNotifyer bool
	Interface            string
}

type NAT added in v0.22.0

type NAT struct {
	Name          string
	Whitelist     []*orbiter.CIDR
	From          []string
	To            string
	ProxyProtocol bool
}

type NATDesires added in v0.22.0

type NATDesires struct {
	NATs     []*NAT
	Machine  infra.Machine
	Firewall common.Firewall
}

type Port

type Port uint16

type PortV0 added in v0.22.0

type PortV0 uint16

type PortV1 added in v0.22.0

type PortV1 uint16

type SourceV0 added in v0.22.0

type SourceV0 struct {
	Name         string
	SourcePort   PortV0 `yaml:",omitempty"`
	Destinations []*DestinationV0
}

type SourceV1 added in v0.22.0

type SourceV1 struct {
	Name         string
	SourcePort   PortV1 `yaml:",omitempty"`
	Destinations []*DestinationV1
	Whitelist    []*CIDRV1
}

type Transport added in v0.22.0

type Transport struct {
	Name         string
	FrontendPort Port
	BackendPort  Port
	BackendPools []string
	Whitelist    []*orbiter.CIDR
	//	DownstreamProxies []*orbiter.IPAddress
	HealthChecks  HealthChecks
	ProxyProtocol *bool
}

type VIP

type VIP struct {
	IP        string `yaml:",omitempty"`
	Transport []*Transport
}

type VIPV0

type VIPV0 struct {
	IP        string
	Whitelist []*CIDRV0
	Transport []*SourceV0
}

type VIPV1 added in v0.22.0

type VIPV1 struct {
	IP        string `yaml:",omitempty"`
	Transport []*SourceV1
}

type VRRP added in v1.4.0

type VRRP struct {
	VRRPInterface string
	NotifyMaster  func(machine infra.Machine) (string, bool)
	AuthCheck     func(machine infra.Machine) (string, int)
}

type WhiteListFunc

type WhiteListFunc func() []*orbiter.CIDR

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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