gateway

package
v0.16.7 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LeaderElectionLockName = "submariner-gateway-lock"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LeaderElectionConfig
	Spec                 types.SubmarinerSpecification
	SyncerConfig         broker.SyncerConfig
	WatcherConfig        watcher.Config
	SubmarinerClient     submclientset.Interface
	KubeClient           kubernetes.Interface
	LeaderElectionClient kubernetes.Interface
	NewCableEngine       func(localCluster *types.SubmarinerCluster, localEndpoint *types.SubmarinerEndpoint) cableengine.Engine
	NewNATDiscovery      func(localEndpoint *types.SubmarinerEndpoint) (natdiscovery.Interface, error)
}

type Interface

type Interface interface {
	Run(ctx context.Context) error
}

func New

func New(config *Config) (Interface, error)

type LeaderElectionConfig

type LeaderElectionConfig struct {
	LeaseDuration time.Duration
	RenewDeadline time.Duration
	RetryPeriod   time.Duration
}

Jump to

Keyboard shortcuts

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