network

package
v0.0.0-...-3e0e934 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: Apache-2.0, BSD-2-Clause Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const DBBucketNetwork = "network/v1"

Variables

View Source
var (
	ErrNotCubeTap = errors.New("NotCubeTap")

	ErrInvalidParams = errors.New("invalid network params")
)
View Source
var (
	Name2MvmNet sync.Map
)

Functions

This section is empty.

Types

type Config

type Config struct {
	EthName      string `toml:"eth_name"`
	TapInitNum   int    `toml:"tap_init_num"`
	CIDR         string `toml:"cidr"`
	ObjectDir    string `toml:"object_dir"`
	MVMInnerIP   string `toml:"mvm_inner_ip"`
	MVMMacAddr   string `toml:"mvm_mac_addr"`
	MvmGwDestIP  string `toml:"mvm_gw_dest_ip"`
	MvmGwMacAddr string `toml:"mvm_gw_mac_addr"`
	MvmMask      int    `toml:"mvm_mask"`
	MvmMtu       int    `toml:"mvm_mtu"`

	CheckIntervalTime      tomlext.Duration `toml:"check_interval_in_sec"`
	ReportStatIntervalTime tomlext.Duration `toml:"report_stat_interval_in_sec"`
	AppMark                string           `toml:"app_mark"`

	WatchStream      bool             `toml:"watch_stream"`
	RedisConfPath    string           `toml:"redis_conf_path"`
	StreamNamePrefix string           `toml:"stream_name_prefix"`
	StreamKey        string           `toml:"stream_key"`
	StreamBlockTime  tomlext.Duration `toml:"stream_block_time"`

	RootPath string `toml:"root_path"`

	EnableNetworkAgent        bool             `toml:"enable_network_agent"`
	NetworkAgentEndpoint      string           `toml:"network_agent_endpoint"`
	NetworkAgentTapSocket     string           `toml:"network_agent_tap_socket"`
	NetworkAgentInitTimeout   tomlext.Duration `toml:"network_agent_init_timeout"`
	NetworkAgentRetryInterval tomlext.Duration `toml:"network_agent_retry_interval"`
	NetworkAgentTapFDTimeout  tomlext.Duration `toml:"network_agent_tap_fd_timeout"`

	ReconcileInterval tomlext.Duration `toml:"reconcile_interval"`
}

type MetricCollector

type MetricCollector struct{}

func NewMetricCollector

func NewMetricCollector(_ string) *MetricCollector

func (*MetricCollector) AddAllMetricsToCollector

func (m *MetricCollector) AddAllMetricsToCollector()

Directories

Path Synopsis
package eventhandler
package eventhandler
tools
testarp command
testtap command

Jump to

Keyboard shortcuts

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