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{})
Click to show internal directories.
Click to hide internal directories.