swarm

package
v0.0.0-...-97db044 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ADSProvider

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

ADSProvider will convert swarm service definitions and labels into cluster, listener and route configuration for Envoy

func NewADSProvider

func NewADSProvider(ingressNetwork string, builder *ListenerProvider, log logger.Logger) *ADSProvider

func (*ADSProvider) Provide

func (s *ADSProvider) Provide(ctx context.Context) (clusters, listeners []types.Resource, err error)

type ListenerProvider

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

func NewListenerProvider

func NewListenerProvider(sdsProvider provider.SDS, acmeIntegration *acme.Integration) *ListenerProvider

func (*ListenerProvider) ProvideListeners

func (l *ListenerProvider) ProvideListeners(collection *converting.VhostCollection) ([]types.Resource, error)

ProvideListeners breaks down a vhost collection into listener configs it will return a collection of max 2 listeners for port 80 and 443.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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