network

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyncNetworkPeriod = 60
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyInterfaceController

type DummyInterfaceController interface {
	EnsureDummyInterface(ifName string, ifIP net.IP) error
	DeleteDummyInterface(ifName string) error
	ListDummyInterface(ifName string) ([]net.IP, error)
}

func NewDummyInterfaceController

func NewDummyInterfaceController() DummyInterfaceController

NewDummyInterfaceManager returns an instance for create/delete dummy net interface

type IptablesManager

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

func NewIptablesManager

func NewIptablesManager(dummyIfIP, dummyIfPort string) *IptablesManager

func (*IptablesManager) CleanUpIptablesRules added in v0.6.0

func (im *IptablesManager) CleanUpIptablesRules() error

func (*IptablesManager) EnsureIptablesRules

func (im *IptablesManager) EnsureIptablesRules() error

type NetworkManager

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

func NewNetworkManager

func NewNetworkManager(options *options.YurtHubOptions) (*NetworkManager, error)

func (*NetworkManager) Run

func (m *NetworkManager) Run(stopCh <-chan struct{})

Jump to

Keyboard shortcuts

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