network

package
v0.0.0-...-735b8cc Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	*manager.BaseManager
	// contains filtered or unexported fields
}

func NewManager

func NewManager(
	ctx context.Context,
	nodeName string,
	connectivityMgr connectivity.Manager,
	options *Options,
) *Manager

func (*Manager) AllowedCIDRs

func (m *Manager) AllowedCIDRs() []string

Retrieve allowed CIDRs including pod CIDRs

func (*Manager) Close

func (m *Manager) Close()

func (*Manager) GetPodCIDR

func (m *Manager) GetPodCIDR(ipv6 bool) string

func (*Manager) Initialized

func (m *Manager) Initialized() <-chan struct{}

func (*Manager) SetPodCIDRs

func (m *Manager) SetPodCIDRs(ipv4, ipv6 string)

func (*Manager) Start

func (m *Manager) Start() error

type Options

type Options struct {
	InterfaceName string
	MTU           int
	Provider      string
	Addresses     []string

	ExtraAllowedCIDRs []string
	PublicAddresses   []string

	WireguardOpts *mesh.WireguardOpts
}

Jump to

Keyboard shortcuts

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