Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 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 May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  2. 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 May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  3. 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 May 05 19:28:20 GMT 2024
    - Last Modified: Wed Feb 28 07:02:14 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. 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 May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
  5. 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 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  6. 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 May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. 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 May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 255.8K bytes
    - Viewed (0)
  8. istioctl/pkg/validate/validate.go

    	var errs error
    	var reader io.ReadCloser
    	warningsByFilename := map[string]validation.Warning{}
    
    	processFile := func(path string) {
    		var err error
    		if path == "-" {
    			reader = io.NopCloser(os.Stdin)
    		} else {
    			reader, err = os.Open(path)
    			if err != nil {
    				errs = multierror.Append(errs, fmt.Errorf("cannot read file %q: %v", path, err))
    				return
    			}
    		}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  9. istioctl/pkg/kubeinject/kubeinject.go

    `,
    		RunE: func(c *cobra.Command, _ []string) (err error) {
    			if err = validateFlags(); err != nil {
    				return err
    			}
    			var reader io.Reader
    
    			if inFilename == "-" {
    				reader = os.Stdin
    			} else {
    				var in *os.File
    				if in, err = os.Open(inFilename); err != nil {
    					return err
    				}
    				reader = in
    				defer func() {
    					if errClose := in.Close(); errClose != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  10. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    	if err != nil {
    		return nil, err
    	}
    	return setupConfigdumpZtunnelConfigWriter(debug, out)
    }
    
    func readFile(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 May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
Back to top