Documentation
¶
Overview ¶
Package fake is a fake datapath implementation. It does not implement any datapath specific concepts and is useful for mocking and testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cell = cell.Module( "fake-datapath", "Fake Datapath", cell.Provide( func(lifecycle cell.Lifecycle, na node.Addressing, nodeManager manager.NodeManager) (node.IDHandler, node.Handler, *fakenode.Handler) { fakeNodeHandler := fakenode.NewHandler() nodeManager.Subscribe(fakeNodeHandler) return fakeNodeHandler, fakeNodeHandler, fakeNodeHandler }, func() signalmap.Map { return fakesignalmap.NewFakeSignalMap([][]byte{}, time.Second) }, func() authmap.Map { return fakeauthmap.NewFakeAuthMap() }, func() encrypt.EncryptMap { return fakeencrypt.NewFakeEncryptMap() }, func() *egressmap.PolicyMap4 { return nil }, func() *egressmap.PolicyMap6 { return nil }, func() lxcmap.Map { return nil }, func() bigtcp.Config { return &fakebigtcp.Config{} }, func() iptables.Manager { return fakeiptables.NewManager() }, func() ipset.Manager { return &fakeipset.IPSet{} }, func() bandwidth.Manager { return &fakebandwidth.Manager{} }, func() ipsec.Agent { return &fakeipsec.Agent{} }, func() ipsec.Config { return &fakeipsec.Config{} }, func() mtu.MTU { return &fakemtu.MTU{} }, func() wireguard.Agent { return &fakewireguard.Agent{} }, func() wireguard.Config { return &fakewireguard.Config{} }, func() loaderTypes.Loader { return &fakeloader.Loader{} }, func() endpoint.Orchestrator { return &fakeendpoint.FakeOrchestrator{} }, loader.NewCompilationLock, func() sysctl.Sysctl { return &fakesyctl.Sysctl{} }, func() (nat.NatMap4, nat.NatMap6) { return nil, nil }, tables.NewDeviceTable, tables.NewL2AnnounceTable, statedb.RWTable[*tables.L2AnnounceEntry].ToTable, tables.NewRouteTable, statedb.RWTable[*tables.Route].ToTable, func() bigtcp.Features { return &fakebigtcp.UserConfig{} }, func() gneigh.L2PodAnnouncementConfig { return &fakegneigh.Config{} }, func() connector.Config { return fakeconnector.NewVeth() }, ), tables.NodeAddressCell, dpnode.AddressingCell, tables.DirectRoutingDeviceCell, tunnel.Cell, cell.Provide(fakeDevices), link.Cell, )
Cell provides a fake version of the datapath cell.
Used in integration tests in daemon/cmd and test/controlplane.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.