dynamic

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 14 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 Current

type Current struct {
	Common  *orbiter.Common `yaml:",inline"`
	Current struct {
		SourcePools map[string][]string
		Addresses   map[string]infra.Address
		Desire      func(pool string, svc core.MachinesService, nodeagents map[string]*common.NodeAgentSpec, notifyMaster string) error
	} `yaml:"-"`
}

type Data

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

type Desired added in v0.20.0

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

func (*Desired) UnmarshalYAML added in v0.20.0

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

func (*Desired) Validate added in v0.20.0

func (d *Desired) Validate() error

type DesiredV0

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

type Destination

type Destination struct {
	HealthChecks HealthChecks
	Port         Port
	Pool         string
}

type HealthChecks

type HealthChecks struct {
	Protocol string
	Path     string
	Code     uint16
}

type Port

type Port uint16

type Source

type Source struct {
	Name         string
	SourcePort   Port
	Destinations []*Destination
	Whitelist    []*orbiter.CIDR
}

type VIP

type VIP struct {
	IP        string
	Transport []*Source
}

type VIPV0 added in v0.20.0

type VIPV0 struct {
	IP        string
	Whitelist []*orbiter.CIDR
	Transport []*Source
}

type WhiteListFunc added in v0.19.6

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