Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 89 for strings (0.19 sec)

  1. cni/pkg/iptables/iptables_test.go

    		t.Fatal(err)
    	}
    
    	compareToGolden(t, false, tt.name, ext.ExecutedAll)
    }
    
    func ipstr(ipv6 bool) string {
    	if ipv6 {
    		return "ipv6"
    	}
    	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 {
    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)
  2. cni/pkg/config/config.go

    	// init container termination message and exit code.
    	SidecarAnnotation  string
    	InitContainerName  string
    	InitTerminationMsg string
    	InitExitCode       int
    
    	// Label and field selectors to select pods managed by race repair.
    	LabelSelectors string
    	FieldSelectors string
    }
    
    func (c InstallConfig) String() string {
    	var b strings.Builder
    	b.WriteString("CNINetDir: " + c.CNINetDir + "\n")
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. cni/pkg/cmd/root.go

    }
    
    func registerStringParameter(name, value, usage string) {
    	rootCmd.Flags().String(name, value, usage)
    	registerEnvironment(name, value, usage)
    }
    
    func registerIntegerParameter(name string, value int, usage string) {
    	rootCmd.Flags().Int(name, value, usage)
    	registerEnvironment(name, value, usage)
    }
    
    func registerBooleanParameter(name string, value bool, usage string) {
    	rootCmd.Flags().Bool(name, value, usage)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  4. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    	}
    	return string(result), nil
    }
    
    // getComponentPodName returns the pod name and namespace of the Istio component
    func getComponentPodName(ctx cli.Context, podflag string) (string, string, error) {
    	return getPodNameWithNamespace(ctx, podflag, ctx.IstioNamespace())
    }
    
    func getPodNameWithNamespace(ctx cli.Context, podflag, ns string) (string, string, error) {
    	var podName, podNamespace string
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  5. istioctl/pkg/waypoint/waypoint.go

    			return nil, fmt.Errorf("invalid traffic type: %s. Valid options are: %s", trafficType, validTrafficTypes.String())
    		}
    
    		if gw.Labels == nil {
    			gw.Labels = map[string]string{}
    		}
    		gw.Labels[constants.AmbientWaypointForTrafficType] = trafficType
    
    		if revision != "" {
    			gw.Labels = map[string]string{label.IoIstioRev.Name: revision}
    		}
    		return &gw, nil
    	}
    	waypointGenerateCmd := &cobra.Command{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 16:16:40 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  6. cmd/erasure-metadata.go

    func GetInternalReplicationState(m map[string][]byte) ReplicationState {
    	m1 := make(map[string]string, len(m))
    	for k, v := range m {
    		m1[k] = string(v)
    	}
    	return getInternalReplicationState(m1)
    }
    
    // getInternalReplicationState fetches internal replication state from the map m
    func getInternalReplicationState(m map[string]string) ReplicationState {
    	d := ReplicationState{}
    	for k, v := range m {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  7. cmd/erasure-multipart.go

    			crc := expPart.Checksums[checksumType.String()]
    			if crc == "" {
    				return oi, InvalidPart{
    					PartNumber: part.PartNumber,
    				}
    			}
    			wantCS := map[string]string{
    				hash.ChecksumCRC32.String():  part.ChecksumCRC32,
    				hash.ChecksumCRC32C.String(): part.ChecksumCRC32C,
    				hash.ChecksumSHA1.String():   part.ChecksumSHA1,
    				hash.ChecksumSHA256.String(): part.ChecksumSHA256,
    			}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  8. cmd/storage-rest-client.go

    // ReadXL - reads all contents of xl.meta of a file.
    func (client *storageRESTClient) ReadXL(ctx context.Context, volume string, path string, readData bool) (rf RawFileInfo, err error) {
    	// Use websocket when not reading data.
    	if !readData {
    		resp, err := storageReadXLRPC.Call(ctx, client.gridConn, grid.NewMSSWith(map[string]string{
    			storageRESTDiskID:   *client.diskID.Load(),
    			storageRESTVolume:   volume,
    			storageRESTFilePath: path,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    		}
    	}
    
    	return w, nil
    }
    
    func (s *xlStorage) openFileSync(filePath string, mode int, skipParent string) (f *os.File, err error) {
    	return s.openFile(filePath, mode|writeMode, skipParent)
    }
    
    func (s *xlStorage) openFile(filePath string, mode int, skipParent string) (f *os.File, err error) {
    	if skipParent == "" {
    		skipParent = s.drivePath
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  10. cni/pkg/iptables/iptables.go

    	cmd := iptablesconstants.IPTablesRestore
    	var data string
    
    	if isIpv4 {
    		data = iptablesBuilder.BuildV4Restore()
    	} else {
    		data = iptablesBuilder.BuildV6Restore()
    	}
    
    	log.Infof("Running %s with the following input:\n%v", iptVer.CmdToString(cmd), strings.TrimSpace(data))
    	// --noflush to prevent flushing/deleting previous contents from table
    	return cfg.ext.Run(cmd, iptVer, strings.NewReader(data), "--noflush", "-v")
    }
    
    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)
Back to top