Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for Wf (0.11 sec)

  1. src/cmd/go/internal/workcmd/init.go

    		base.Fatalf("go: %s already exists", gowork)
    	}
    
    	goV := gover.Local() // Use current Go version by default
    	wf := new(modfile.WorkFile)
    	wf.Syntax = new(modfile.FileSyntax)
    	wf.AddGoStmt(goV)
    	workUse(ctx, gowork, wf, args)
    	modload.WriteWorkFile(gowork, wf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/ztunnel/configdump/workload.go

    }
    
    // Verify returns true if the passed workload matches the filter fields
    func (wf *WorkloadFilter) Verify(workload *ZtunnelWorkload) bool {
    	if wf.Address == "" && wf.Node == "" && wf.Namespace == "" {
    		return true
    	}
    
    	if wf.Namespace != "" {
    		if !strings.EqualFold(workload.Namespace, wf.Namespace) {
    			return false
    		}
    	}
    
    	if wf.Address != "" {
    		var find bool
    		for _, ip := range workload.WorkloadIPs {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. src/cmd/go/internal/gover/version.go

    }
    
    // FromGoWork returns the go version from the go.mod file.
    // It returns DefaultGoWorkVersion if the go.mod file does not contain a go line or if wf is nil.
    func FromGoWork(wf *modfile.WorkFile) string {
    	if wf == nil || wf.Go == nil {
    		return DefaultGoWorkVersion
    	}
    	return wf.Go.Version
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/cmd/go/internal/workcmd/use.go

    	}
    	wf, err := modload.ReadWorkFile(gowork)
    	if err != nil {
    		base.Fatal(err)
    	}
    	workUse(ctx, gowork, wf, args)
    	modload.WriteWorkFile(gowork, wf)
    }
    
    func workUse(ctx context.Context, gowork string, wf *modfile.WorkFile, args []string) {
    	workDir := filepath.Dir(gowork) // absolute, since gowork itself is absolute
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 7K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/ztunnel/configdump/policies.go

    type PolicyFilter struct {
    	Namespace string
    }
    
    // Verify returns true if the passed workload matches the filter fields
    func (wf *PolicyFilter) Verify(pol *ZtunnelPolicy) bool {
    	if wf.Namespace != "" {
    		if !strings.EqualFold(pol.Namespace, wf.Namespace) {
    			return false
    		}
    	}
    
    	return true
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:11 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. src/cmd/go/internal/workcmd/sync.go

    		}
    		goV = gover.Max(goV, modload.MainModules.GoVersion())
    	}
    
    	wf, err := modload.ReadWorkFile(workFilePath)
    	if err != nil {
    		base.Fatal(err)
    	}
    	modload.UpdateWorkGoVersion(wf, goV)
    	modload.UpdateWorkFile(wf)
    	if err := modload.WriteWorkFile(workFilePath, wf); err != nil {
    		base.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/ztunnel/configdump/configdump_test.go

    				}
    				util.CompareContent(t, gotOut.Bytes(), tt.wantOutputSecret)
    			}
    			if tt.wantOutputWorkload != "" {
    				wf := WorkloadFilter{}
    				if tt.configNamespace != "" {
    					wf.Namespace = tt.configNamespace
    				}
    				err := cw.PrintWorkloadSummary(wf)
    				if err == nil && tt.wantErr {
    					t.Errorf("PrintWorkloadSummary (%v) did not produce expected err", tt.name)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/internal/coverage/slicewriter/slw_test.go

    		return off
    	}
    
    	wp1 := []byte{1, 2}
    	ws := &WriteSeeker{}
    
    	// write some stuff
    	wf(t, ws, wp1)
    	// check that BytesWritten returns what we wrote.
    	sleq(t, ws.BytesWritten(), wp1)
    	// offset is at end of slice, so reading should return zero bytes.
    	rf(t, ws, []byte{})
    
    	// write some more stuff
    	wp2 := []byte{7, 8, 9}
    	wf(t, ws, wp2)
    	// check that BytesWritten returns what we expect.
    	wpex := []byte{1, 2, 7, 8, 9}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 26 12:44:26 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/ztunnel/configdump/services.go

    type ServiceFilter struct {
    	Namespace string
    }
    
    // Verify returns true if the passed workload matches the filter fields
    func (wf *ServiceFilter) Verify(svc *ZtunnelService) bool {
    	if wf.Namespace != "" {
    		if !strings.EqualFold(svc.Namespace, wf.Namespace) {
    			return false
    		}
    	}
    
    	return true
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:11 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. src/internal/coverage/cfile/emitdata_test.go

    	rval := ""
    	for _, f := range want {
    		wf := "Func: " + f + "\n"
    		if strings.Contains(output, wf) {
    			continue
    		}
    		rval += fmt.Sprintf("error: output should contain %q but does not\n", wf)
    	}
    	for _, f := range avoid {
    		wf := "Func: " + f + "\n"
    		if strings.Contains(output, wf) {
    			rval += fmt.Sprintf("error: output should not contain %q but does\n", wf)
    		}
    	}
    	if rval != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top