Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for Join (0.18 sec)

  1. cni/pkg/ipset/ipset.go

    		set.V6Name = fmt.Sprintf(V6Name, name)
    		v6err := deps.ipsetIPHashCreate(set.V6Name, true)
    		err = errors.Join(err, v6err)
    	}
    	return set, err
    }
    
    func (m *IPSet) DestroySet() error {
    	var err error
    	err = m.Deps.destroySet(m.V4Name)
    
    	if m.V6Name != "" {
    		v6err := m.Deps.destroySet(m.V6Name)
    		err = errors.Join(err, v6err)
    	}
    	return err
    }
    
    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)
  2. cni/pkg/iptables/iptables_test.go

    	}
    	return "ipv4"
    }
    
    func compareToGolden(t *testing.T, ipv6 bool, name string, actual []string) {
    	t.Helper()
    	gotBytes := []byte(strings.Join(actual, "\n"))
    	goldenFile := filepath.Join("testdata", name+".golden")
    	if ipv6 {
    		goldenFile = filepath.Join("testdata", name+"_ipv6.golden")
    	}
    	testutil.CompareContent(t, gotBytes, goldenFile)
    }
    
    func constructTestConfig() *Config {
    	return &Config{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  3. internal/logger/logger.go

    		trimStrings = append(trimStrings, filepath.Join(goRootString, "src")+string(filepath.Separator))
    	}
    
    	for _, defaultgoPathString := range defaultgoPathList {
    		trimStrings = append(trimStrings, filepath.Join(defaultgoPathString, "src")+string(filepath.Separator))
    	}
    
    	for _, defaultgoRootString := range defaultgoRootList {
    		trimStrings = append(trimStrings, filepath.Join(defaultgoRootString, "src")+string(filepath.Separator))
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  4. cmd/metrics-v3-handler.go

    }
    
    func (md metricDisplay) String() string {
    	return fmt.Sprintf("Name: %s\nType: %s\nHelp: %s\nLabels: {%s}\n", md.Name, md.Type, md.Help, strings.Join(md.Labels, ","))
    }
    
    func (md metricDisplay) TableRow() string {
    	labels := strings.Join(md.Labels, ",")
    	if labels == "" {
    		labels = ""
    	} else {
    		labels = "`" + labels + "`"
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  5. cmd/test-utils_test.go

    	// Fetch TLS key and pem files from test-data/ directory.
    	//	dir, _ := os.Getwd()
    	//	testDataDir := filepath.Join(filepath.Dir(dir), "test-data")
    	//
    	//	pemFile := filepath.Join(testDataDir, "server.pem")
    	//	keyFile := filepath.Join(testDataDir, "server.key")
    	cer, err := tls.X509KeyPair(cert, key)
    	if err != nil {
    		t.Fatalf("Failed to load certificate: %v", err)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  6. cmd/common-main.go

    		if file.Mode()&os.ModeSymlink == os.ModeSymlink {
    			file, err = Stat(filepath.Join(root.Name(), file.Name()))
    			if err != nil {
    				// not accessible ignore
    				continue
    			}
    			if !file.IsDir() {
    				continue
    			}
    		}
    
    		var (
    			certFile = filepath.Join(root.Name(), file.Name(), publicCertFile)
    			keyFile  = filepath.Join(root.Name(), file.Name(), privateKeyFile)
    		)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  7. cni/pkg/iptables/iptables.go

    		}
    	}
    	return errors.Join(execErrs...)
    }
    
    func (cfg *IptablesConfigurator) executeIptablesCommands(iptVer *dep.IptablesVersion, args [][]string) error {
    	var iptErrs []error
    	for _, argSet := range args {
    		iptErrs = append(iptErrs, cfg.ext.Run(iptablesconstants.IPTables, iptVer, nil, argSet...))
    	}
    	return errors.Join(iptErrs...)
    }
    
    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)
  8. cmd/endpoint-ellipses.go

    	if len(s.endpoints) != 0 {
    		return s.endpoints
    	}
    	for _, argPattern := range s.argPatterns {
    		for _, lbls := range argPattern.Expand() {
    			endpoints = append(endpoints, strings.Join(lbls, ""))
    		}
    	}
    	s.endpoints = endpoints
    	return endpoints
    }
    
    // Get returns the sets representation of the endpoints
    // this function also intelligently decides on what will
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  9. cni/pkg/ipset/nldeps_linux.go

    			err := netlink.IpsetDel(name, &entry)
    			if err != nil {
    				delErrs = append(delErrs, fmt.Errorf("failed to delete IP %s from ipset %s: %w", entry.IP, name, err))
    			}
    		}
    	}
    
    	return errors.Join(delErrs...)
    }
    
    func (m *realDeps) listEntriesByIP(name string) ([]netip.Addr, error) {
    	var ipList []netip.Addr
    
    	res, err := netlink.IpsetList(name)
    	if err != 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)
  10. cmd/sftp-server.go

    		}
    		if !found {
    			logger.Fatal(fmt.Errorf("unknown algorithm %q passed to --sftp=%s\nValid algorithms: %v", algo, arg, strings.Join(allowed, ", ")), "unable to start SFTP server")
    		}
    	}
    	if len(filteredAlgos) == 0 {
    		logger.Fatal(fmt.Errorf("no valid algorithms passed to --sftp=%s\nValid algorithms: %v", arg, strings.Join(allowed, ", ")), "unable to start SFTP server")
    	}
    	return filteredAlgos
    }
    
    func startSFTPServer(args []string) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
Back to top