dynamic

package
v0.17.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptFunc

func AdaptFunc() 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 DesiredV0

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

func (*DesiredV0) Validate

func (d *DesiredV0) Validate() error

type Destination

type Destination struct {
	HealthChecks HealthChecks
	Port         Port
	Pool         string
}

type HealthChecks

type HealthChecks struct {
	Protocol string
	Path     string
	Code     uint8
}

type Port

type Port uint16

type Source

type Source struct {
	Name         string
	SourcePort   Port
	Destinations []*Destination
}

type VIP

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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