network

package
Version: v0.0.0-...-4cca708 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 9 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
}

Source Files

Jump to

Keyboard shortcuts

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