dynamic

package
v0.21.10 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptFunc

func AdaptFunc(whitelist WhiteListFunc) orbiter.AdaptFunc

func SecretsFunc added in v0.21.0

func SecretsFunc() secret.Func

Types

type Current

type Current struct {
	Common  *tree.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

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 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

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

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