- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for addr (0.15 sec)
-
cni/pkg/ipset/nldeps_unspecified.go
return errors.New("not implemented on this platform") } func (m *realDeps) clearEntriesWithIP(name string, ip netip.Addr) error { return errors.New("not implemented on this platform") } func (m *realDeps) listEntriesByIP(name string) ([]netip.Addr, error) { return []netip.Addr{}, errors.New("not implemented on this platform")
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 1.8K bytes - Viewed (0) -
cni/pkg/ipset/nldeps_mock.go
return args.Error(0) } func (m *MockedIpsetDeps) clearEntriesWithIP(name string, ip netip.Addr) error { args := m.Called(name, ip) return args.Error(0) } func (m *MockedIpsetDeps) listEntriesByIP(name string) ([]netip.Addr, error) { args := m.Called(name) return args.Get(0).([]netip.Addr), args.Error(1)
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 1.8K bytes - Viewed (0) -
cni/pkg/ipset/ipset.go
destroySet(name string) error addIP(name string, ip netip.Addr, ipProto uint8, comment string, replace bool) error deleteIP(name string, ip netip.Addr, ipProto uint8) error flush(name string) error clearEntriesWithComment(name string, comment string) error clearEntriesWithIP(name string, ip netip.Addr) error listEntriesByIP(name string) ([]netip.Addr, error) }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 3.9K bytes - Viewed (0) -
cni/pkg/nodeagent/net_test.go
ObjectMeta: metav1.ObjectMeta{ Name: "foo", Namespace: "bar", UID: "123", }, Spec: corev1.PodSpec{ServiceAccountName: "sa"}, } // this is usually called after add. so manually add the pod uid for now fakens := newFakeNs(123) closed := fakens.closed workload := WorkloadInfo{ Workload: podToWorkload(pod), Netns: fakens, }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 16.4K bytes - Viewed (0) -
cni/pkg/ipset/nldeps_linux.go
} func (m *realDeps) listEntriesByIP(name string) ([]netip.Addr, error) { var ipList []netip.Addr res, err := netlink.IpsetList(name) if err != nil { return ipList, fmt.Errorf("failed to list ipset %s: %w", name, err) } for _, entry := range res.Entries { addr, _ := netip.AddrFromSlice(entry.IP) ipList = append(ipList, addr) } return ipList, nil
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 3.9K bytes - Viewed (0) -
cni/pkg/nodeagent/net.go
func addPodToHostNSIpset(pod *corev1.Pod, podIPs []netip.Addr, hostsideProbeSet *ipset.IPSet) error { // Add the pod UID as an ipset entry comment, so we can (more) easily find and delete // all relevant entries for a pod later. podUID := string(pod.ObjectMeta.UID) ipProto := uint8(unix.IPPROTO_TCP) var ipsetAddrErrs []error // For each pod IP for _, pip := range podIPs { // Add to host ipset
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 12.2K bytes - Viewed (1) -
callbacks/preload.go
reflectValue.SetLen(rv.Len()) for i := 0; i < rv.Len(); i++ { frv := rel.Field.ReflectValueOf(db.Statement.Context, rv.Index(i)) if frv.Kind() != reflect.Ptr { reflectValue.Index(i).Set(frv.Addr()) } else { reflectValue.Index(i).Set(frv) } } tx := preloadDB(db, reflectValue, reflectValue.Interface())
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Thu Apr 25 12:21:03 GMT 2024 - 11.6K bytes - Viewed (0) -
cni/pkg/util/podutil.go
// K8S may not have received the pod IPs yet, and may not report the pod as having any. func GetPodIPsIfPresent(pod *corev1.Pod) []netip.Addr { var podIPs []netip.Addr if len(pod.Status.PodIPs) != 0 { for _, pip := range pod.Status.PodIPs { ip := netip.MustParseAddr(pip.IP) podIPs = append(podIPs, ip) } } else if len(pod.Status.PodIP) != 0 {
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Wed May 01 18:04:40 GMT 2024 - 4.1K bytes - Viewed (0) -
cni/pkg/iptables/iptables.go
func (cfg *IptablesConfigurator) CreateHostRulesForHealthChecks(hostSNATIP, hostSNATIPV6 *netip.Addr) error { // Append our rules here builder := cfg.appendHostRules(hostSNATIP, hostSNATIPV6) log.Info("Adding host netnamespace iptables rules") if err := cfg.executeCommands(builder); err != nil { log.Errorf("failed to add host netnamespace iptables rules: %v", err) return err } return nil }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 19.6K bytes - Viewed (0) -
cni/pkg/nodeagent/server.go
return s.netServer.ConstructInitialSnapshot(ambientPods) } func (s *meshDataplane) AddPodToMesh(ctx context.Context, pod *corev1.Pod, podIPs []netip.Addr, netNs string) error { var retErr error err := s.netServer.AddPodToMesh(ctx, pod, podIPs, netNs) if err != nil { log.Errorf("failed to add pod to ztunnel: %v", err) if !errors.Is(err, ErrPartialAdd) { return err } retErr = err }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 7.2K bytes - Viewed (0)