diff

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Do

type Do func(a Event) (crud.Arg, error)

Do is the worker function to sync the diff TODO remove crud.Arg

type Event

type Event struct {
	Op     crud.Op
	Kind   crud.Kind
	Obj    interface{}
	OldObj interface{}
}

Event represents an event to perform an imperative operation that gets Kong closer to the target state.

type Syncer

type Syncer struct {
	InFlightOps int32
	// contains filtered or unexported fields
}

Syncer takes in a current and target state of Kong, diffs them, generating a Graph to get Kong from current to target state.

func NewSyncer

func NewSyncer(current, target *state.KongState) (*Syncer, error)

NewSyncer constructs a Syncer.

func (*Syncer) Run

func (sc *Syncer) Run(done <-chan struct{}, parallelism int, d Do) []error

Run starts a diff and invokes d for every diff.

Jump to

Keyboard shortcuts

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