collision

package
v0.0.0-...-d2d5cb9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Resolve(mergeList MergeList) (updated []MergedIngressConfig, err error)
}

Handler resolves collisions of generated servers

func NewMergingCollisionHandler

func NewMergingCollisionHandler() Handler

NewMergingCollisionHandler returns a CollisionHandler which merges the declaration of multiple ingress objects

type IngressConfig

type IngressConfig struct {
	Ingress *v1beta1.Ingress
	Servers []*config.Server
}

IngressConfig ties together the generated server configs and the ingress they where created from

type MergeList

type MergeList []IngressConfig

MergeList is a list of configs that need to be merged

func (MergeList) Len

func (list MergeList) Len() int

func (MergeList) Less

func (list MergeList) Less(i, j int) bool

func (MergeList) Swap

func (list MergeList) Swap(i, j int)

type MergedIngressConfig

type MergedIngressConfig struct {
	Ingress []*v1beta1.Ingress
	Server  *config.Server
}

MergedIngressConfig is the result of merging the server configs of multiple ingress object into one

Jump to

Keyboard shortcuts

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