gateway

package
v0.18.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 33 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 *endpoint.Local) cableengine.Engine
	NewNATDiscovery      func(localEndpoint *endpoint.Local) (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