provider

package
v2.0.0-...-ec94ed8 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultDynamicConfig

func NewDefaultDynamicConfig() *dynamic.Configuration

NewDefaultDynamicConfig creates and returns the minimal working dynamic configuration which should be propagated to proxy nodes.

Types

type Config

type Config struct {
	ACL                bool
	DefaultTrafficType string
}

Config holds the Provider configuration.

type MiddlewareBuilder

type MiddlewareBuilder func(annotations map[string]string) (map[string]*dynamic.Middleware, error)

MiddlewareBuilder is capable of building a middleware from service annotations.

type PortFinder

type PortFinder interface {
	Find(namespace, name string, port int32) (int32, bool)
}

PortFinder finds service port mappings.

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider holds the configuration for generating dynamic configuration from a kubernetes cluster state.

func New

func New(httpStateTable, tcpStateTable, udpStateTable PortFinder, middlewareBuilder MiddlewareBuilder, cfg Config, logger logrus.FieldLogger) *Provider

New creates a new Provider.

func (*Provider) BuildConfig

func (p *Provider) BuildConfig(t *topology.Topology) *dynamic.Configuration

BuildConfig builds a dynamic configuration.

Jump to

Keyboard shortcuts

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