controllers

package
v0.0.0-...-74587f1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultDeviceName specifies name of WireGuard network device.
	DefaultDeviceName = "wg0"

	UDPPort = 31820
)

Variables

This section is empty.

Functions

func NewTunnel

func NewTunnel(octopusClient *versioned.Clientset, spec *Specification, done <-chan struct{}) (*wireguard, error)

Types

type PeerController

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

func NewPeerController

func NewPeerController(spec Specification, w *wireguard, octopusFactory octopusinformers.SharedInformerFactory) (*PeerController, error)

func (*PeerController) Handle

func (c *PeerController) Handle(obj interface{}) (requeueAfter *time.Duration, err error)

func (*PeerController) Run

func (c *PeerController) Run(ctx context.Context) error

func (*PeerController) Start

func (p *PeerController) Start(ctx context.Context)

type Specification

type Specification struct {
	ClusterID      string
	LocalNamespace string
	ShareNamespace string
	HubURL         string
	CIDR           []string
	IsHub          bool
	Endpoint       string
}

Jump to

Keyboard shortcuts

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