mesh

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	GenerateEnsureRequest(

		os string,

		meshCIDRs []string,

		peerCIDRs map[string][]string,

		cloudMembers, edgeMembers [][]*abbotgopb.HostNetworkInterface,
	) *abbotgopb.HostNetworkConfigEnsureRequest
}

func NewWireguardMeshDriver

func NewWireguardMeshDriver(
	logger log.Interface,
	ifname string,
	mtu int,
	provider string,
	addresses []string,
	publicAddresses []string,
	options *WireguardOpts,
) Driver

type WireguardMeshDriver

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

func (*WireguardMeshDriver) GenerateEnsureRequest

func (d *WireguardMeshDriver) GenerateEnsureRequest(

	os string,

	meshCIDRs []string,

	peerCIDRs map[string][]string,

	cloudMembers, edgeMembers [][]*abbotgopb.HostNetworkInterface,
) *abbotgopb.HostNetworkConfigEnsureRequest

nolint:gocyclo

type WireguardOpts

type WireguardOpts struct {
	PrivateKey   string
	LogLevel     string
	PreSharedKey string

	KeepaliveSeconds int32
	ListenPort       int32
	RoutingTable     int32
	FirewallMark     int32
}

Jump to

Keyboard shortcuts

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