Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for drag (2.27 sec)

  1. istioctl/pkg/precheck/precheck.go

    	}
    	minor, err := strconv.Atoi(minors)
    	if err != nil {
    		return nil, fmt.Errorf("minor version is not a number: %v", minors)
    	}
    
    	var messages diag.Messages = make([]diag.Message, 0)
    	if minor <= 21 {
    		// ENHANCED_RESOURCE_SCOPING
    		if err := checkPilot(cli, ctx.IstioNamespace(), &messages); err != nil {
    			return nil, err
    		}
    	}
    	if minor <= 20 {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  2. src/archive/zip/zip_test.go

    	for i := range chunk {
    		chunk[i] = '.'
    	}
    	for i := 0; i < chunks; i++ {
    		_, err := f.Write(chunk)
    		if err != nil {
    			t.Fatal("write chunk:", err)
    		}
    	}
    	if frag := int(size % chunkSize); frag > 0 {
    		_, err := f.Write(chunk[:frag])
    		if err != nil {
    			t.Fatal("write chunk:", err)
    		}
    	}
    	end := []byte("END\n")
    	_, err = f.Write(end)
    	if err != nil {
    		t.Fatal("write end:", err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  3. istioctl/pkg/analyze/analyze_test.go

    	"istio.io/istio/istioctl/pkg/util/testutil"
    	"istio.io/istio/pkg/config/analysis/diag"
    )
    
    func TestErrorOnIssuesFound(t *testing.T) {
    	g := NewWithT(t)
    
    	msgs := []diag.Message{
    		diag.NewMessage(
    			diag.NewMessageType(diag.Error, "B1", "Template: %q"),
    			nil,
    			"",
    		),
    		diag.NewMessage(
    			diag.NewMessageType(diag.Warning, "A1", "Template: %q"),
    			nil,
    			"",
    		),
    	}
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  4. istioctl/pkg/util/formatting/msg_threshold.go

    package formatting
    
    import (
    	"errors"
    	"strings"
    
    	"istio.io/istio/pkg/config/analysis/diag"
    )
    
    // MessageThreshold is a wrapper around Level to be used as a cobra command line argument.
    // It should satisfy the pflag.Value interface.
    type MessageThreshold struct {
    	diag.Level
    }
    
    // String is a function declared in the pflag.Value interface
    func (m *MessageThreshold) String() string {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Nov 17 12:28:05 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  5. istioctl/pkg/analyze/analyze.go

    	return FileParseString
    }
    
    var (
    	listAnalyzers     bool
    	useKube           bool
    	failureThreshold  = formatting.MessageThreshold{Level: diag.Error} // messages at least this level will generate an error exit code
    	outputThreshold   = formatting.MessageThreshold{Level: diag.Info}  // messages at least this level will be included in the output
    	colorize          bool
    	msgOutputFormat   string
    	meshCfgFile       string
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
  6. src/bufio/bufio.go

    	var frag []byte
    	// Use ReadSlice to look for delim, accumulating full buffers.
    	for {
    		var e error
    		frag, e = b.ReadSlice(delim)
    		if e == nil { // got final fragment
    			break
    		}
    		if e != ErrBufferFull { // unexpected error
    			err = e
    			break
    		}
    
    		// Make a copy of the buffer.
    		buf := bytes.Clone(frag)
    		fullBuffers = append(fullBuffers, buf)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  7. istioctl/pkg/util/formatting/formatter.go

    }
    
    func printYAML(ms diag.Messages) (string, error) {
    	yamlOutput, err := yaml.Marshal(ms)
    	return string(yamlOutput), err
    }
    
    // Formatting options for Message
    var (
    	colorPrefixes = map[diag.Level]string{
    		diag.Info:    "",           // no special color for info messages
    		diag.Warning: "\033[33m",   // yellow
    		diag.Error:   "\033[1;31m", // bold red
    	}
    )
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jul 11 02:41:45 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  8. misc/linkcheck/linkcheck.go

    func crawl(url string, sourceURL string) {
    	if strings.Contains(url, "/devel/release") {
    		return
    	}
    	mu.Lock()
    	defer mu.Unlock()
    	if u, frag, ok := strings.Cut(url, "#"); ok {
    		url = u
    		if frag != "" {
    			uf := urlFrag{url, frag}
    			neededFrags[uf] = append(neededFrags[uf], sourceURL)
    		}
    	}
    	if crawled[url] {
    		return
    	}
    	crawled[url] = true
    
    	wg.Add(1)
    	go func() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 06 15:53:04 GMT 2021
    - 3.9K bytes
    - Viewed (0)
  9. src/cmd/asm/main.go

    			flags.D = append(flags.D, "GOEXPERIMENT_"+exp)
    		}
    	}
    
    	var ok, diag bool
    	var failedFile string
    	for _, f := range flag.Args() {
    		lexer := lex.NewLexer(f)
    		parser := asm.NewParser(ctxt, architecture, lexer)
    		ctxt.DiagFunc = func(format string, args ...interface{}) {
    			diag = true
    			log.Printf(format, args...)
    		}
    		if *flags.SymABIs {
    			ok = parser.ParseSymABIs(buf)
    		} else {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  10. internal/config/cache/cache.go

    	// Etag and ModTime of an object + version
    	Endpoint string `json:"endpoint"`
    
    	// BlockSize indicates the maximum object size below which
    	// data is cached and fetched remotely from DRAM.
    	BlockSize int64
    
    	// Is the HTTP client used for communicating with mcache server
    	clnt *http.Client
    }
    
    var configLock sync.RWMutex
    
    // Enabled - indicates if cache is enabled or not
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.6K bytes
    - Viewed (0)
Back to top