util

package
v0.0.0-...-39db037 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenNodeId

func GenNodeId(runId, ipAddr, dnsDomain string) string

GenNodeId generates an id used for xDS protocol. The format is like: sidecar~172.10.0.2~12345asad034~default.svc.cluster.local

Types

type Manifest

type Manifest struct {
	Routes    []*apisix.Route
	Upstreams []*apisix.Upstream
}

Manifest collects a couples Routes, Upstreams.

func (*Manifest) DiffFrom

func (m *Manifest) DiffFrom(m2 *Manifest) (*Manifest, *Manifest, *Manifest)

DiffFrom checks the difference between m and m2 from m's point of view.

func (*Manifest) Events

func (m *Manifest) Events(evType types.EventType) []types.Event

Events generates events according to its collection.

func (*Manifest) Size

func (m *Manifest) Size() int

Size calculates the number of resources in the manifest.

Jump to

Keyboard shortcuts

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