Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for stdin (0.18 sec)

  1. docs/debugging/inspect/main.go

    	"os"
    	"strings"
    	"time"
    )
    
    var (
    	keyHex      = flag.String("key", "", "decryption key")
    	privKeyPath = flag.String("private-key", "support_private.pem", "private key")
    	stdin       = flag.Bool("stdin", false, "expect 'mc support inspect' json output from stdin")
    	export      = flag.Bool("export", false, "export xl.meta")
    	djson       = flag.Bool("djson", false, "expect djson format for xl.meta")
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/cmd/addr2line/main.go

    		log.Fatal(err)
    	}
    	defer f.Close()
    
    	tab, err := f.PCLineTable()
    	if err != nil {
    		log.Fatalf("reading %s: %v", flag.Arg(0), err)
    	}
    
    	stdin := bufio.NewScanner(os.Stdin)
    	stdout := bufio.NewWriter(os.Stdout)
    
    	for stdin.Scan() {
    		p := stdin.Text()
    		if strings.Contains(p, ":") {
    			// Reverse translate file:line to pc.
    			// This was an extension in the old C version of 'go tool addr2line'
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  3. cni/pkg/plugin/plugin.go

    	K8S_POD_INFRA_CONTAINER_ID types.UnmarshallableString // nolint: revive, stylecheck
    }
    
    // parseConfig parses the supplied configuration (and prevResult) from stdin.
    func parseConfig(stdin []byte) (*Config, error) {
    	conf := Config{}
    
    	if err := json.Unmarshal(stdin, &conf); err != nil {
    		return nil, fmt.Errorf("failed to parse network configuration: %v", err)
    	}
    
    	log.Debugf("istio-cni: Config is: %+v", conf)
    Go
    - Registered: Wed Apr 17 22:53:10 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. cmd/service.go

    // process when successful.
    func restartProcess() error {
    	if runtime.GOOS == globalWindowsOSName {
    		cmd := exec.Command(os.Args[0], os.Args[1:]...)
    		cmd.Stdout = os.Stdout
    		cmd.Stderr = os.Stderr
    		cmd.Stdin = os.Stdin
    		cmd.Env = os.Environ()
    		err := cmd.Run()
    		if err == nil {
    			os.Exit(0)
    		}
    		return err
    	}
    
    	// Use the original binary location. This works with symlinks such that if
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Feb 28 07:02:14 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  5. istioctl/pkg/analyze/analyze.go

    	var readers []local.ReaderSource
    	for _, f := range args {
    		var r *os.File
    
    		// Handle "-" as stdin as a special case.
    		if f == "-" {
    			if isatty.IsTerminal(os.Stdin.Fd()) && !isJSONorYAMLOutputFormat() {
    				fmt.Fprint(cmd.OutOrStdout(), "Reading from stdin:\n")
    			}
    			r = os.Stdin
    			readers = append(readers, local.ReaderSource{Name: f, Reader: r})
    			continue
    		}
    
    		fi, err := os.Stat(f)
    Go
    - Registered: Wed Apr 17 22:53:10 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/core/v1/generated.proto

      // Whether this container should allocate a buffer for stdin in the container runtime. If this
      // is not set, reads from stdin in the container will always result in EOF.
      // Default is false.
      // +optional
      optional bool stdin = 16;
    
      // Whether the container runtime should close the stdin channel after it has been opened by
      // a single attach. When stdin is true the stdin stream will remain open across multiple attach
    Plain Text
    - Registered: Wed Apr 17 22:53:10 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 255.8K bytes
    - Viewed (0)
  7. src/cmd/addr2line/addr2line_test.go

    		t.Fatalf("error reading symbols: %v", err)
    	}
    	return syms
    }
    
    func runAddr2Line(t *testing.T, dbgExePath, addr string) (funcname, path, lineno string) {
    	cmd := testenv.Command(t, addr2linePath(t), dbgExePath)
    	cmd.Stdin = strings.NewReader(addr)
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Fatalf("go tool addr2line %v: %v\n%s", os.Args[0], err, string(out))
    	}
    	f := strings.Split(string(out), "\n")
    	if len(f) < 3 && f[2] == "" {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  8. src/bufio/example_test.go

    		b = append(b, ' ')
    		w.Write(b)
    	}
    	w.Flush()
    	// Output: 1 2 3 4
    }
    
    // The simplest use of a Scanner, to read standard input as a set of lines.
    func ExampleScanner_lines() {
    	scanner := bufio.NewScanner(os.Stdin)
    	for scanner.Scan() {
    		fmt.Println(scanner.Text()) // Println will add back the final '\n'
    	}
    	if err := scanner.Err(); err != nil {
    		fmt.Fprintln(os.Stderr, "reading standard input:", err)
    	}
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  9. istioctl/pkg/proxystatus/proxystatus.go

    	"istio.io/istio/istioctl/pkg/writer/pilot"
    	pilotxds "istio.io/istio/pilot/pkg/xds"
    	"istio.io/istio/pkg/log"
    )
    
    var configDumpFile string
    
    func readConfigFile(filename string) ([]byte, error) {
    	file := os.Stdin
    	if filename != "-" {
    		var err error
    		file, err = os.Open(filename)
    		if err != nil {
    			return nil, err
    		}
    	}
    	defer func() {
    		if err := file.Close(); err != nil {
    Go
    - Registered: Wed Apr 17 22:53:10 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  10. src/cmd/cgo/gcc.go

    	return c
    }
    
    // gccDebug runs gcc -gdwarf-2 over the C program stdin and
    // returns the corresponding DWARF data and, if present, debug data block.
    func (p *Package) gccDebug(stdin []byte, nnames int) (d *dwarf.Data, ints []int64, floats []float64, strs []string) {
    	runGcc(stdin, p.gccCmd())
    
    	isDebugInts := func(s string) bool {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top