Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 342 for STDIN (2.06 sec)

  1. pkg/kubelet/container/testing/runtime_mock.go

    	m.ctrl.T.Helper()
    	ret := m.ctrl.Call(m, "GetAttach", ctx, id, stdin, stdout, stderr, tty)
    	ret0, _ := ret[0].(*url.URL)
    	ret1, _ := ret[1].(error)
    	return ret0, ret1
    }
    
    // GetAttach indicates an expected call of GetAttach.
    func (mr *MockStreamingRuntimeMockRecorder) GetAttach(ctx, id, stdin, stdout, stderr, tty any) *gomock.Call {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 27K bytes
    - Viewed (0)
  2. src/encoding/gob/dump.go

    // Need to compile package gob with debug.go to build this program.
    // See comments in debug.go for how to do this.
    
    import (
    	"encoding/gob"
    	"fmt"
    	"os"
    )
    
    func main() {
    	var err error
    	file := os.Stdin
    	if len(os.Args) > 1 {
    		file, err = os.Open(os.Args[1])
    		if err != nil {
    			fmt.Fprintf(os.Stderr, "dump: %s\n", err)
    			os.Exit(1)
    		}
    		defer file.Close()
    	}
    	gob.Debug(file)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:39:09 UTC 2024
    - 579 bytes
    - Viewed (0)
  3. src/cmd/go/internal/base/base.go

    	cmd.Stdout = os.Stdout
    	cmd.Stderr = os.Stderr
    	if err := cmd.Run(); err != nil {
    		Errorf("%v", err)
    	}
    }
    
    // RunStdin is like run but connects Stdin.
    func RunStdin(cmdline []string) {
    	cmd := exec.Command(cmdline[0], cmdline[1:]...)
    	cmd.Stdin = os.Stdin
    	cmd.Stdout = os.Stdout
    	cmd.Stderr = os.Stderr
    	cmd.Env = cfg.OrigEnv
    	StartSigHandlers()
    	if err := cmd.Run(); err != nil {
    		Errorf("%v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/proxy/websocket.go

    // along with the approximate duplex value. It also creates the error (3) and resize (4) channels.
    func createChannels(opts Options) []wsstream.ChannelType {
    	// open the requested channels, and always open the error channel
    	channels := make([]wsstream.ChannelType, 5)
    	channels[constants.StreamStdIn] = readChannel(opts.Stdin)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. 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
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Feb 28 07:02:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. src/internal/zstd/fuzz_test.go

    	for i := 0; i < 256; i++ {
    		buf.WriteByte(byte(i))
    	}
    	f.Add(bytes.Repeat(buf.Bytes(), 64))
    	f.Add(bigData(f))
    
    	f.Fuzz(func(t *testing.T, b []byte) {
    		cmd := exec.Command(zstd, "-z")
    		cmd.Stdin = bytes.NewReader(b)
    		var compressed bytes.Buffer
    		cmd.Stdout = &compressed
    		cmd.Stderr = os.Stderr
    		if err := cmd.Run(); err != nil {
    			t.Errorf("running zstd failed: %v", err)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 04:10:45 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. tools/istio-iptables/pkg/dependencies/implementation.go

    	return r.executeXTables(cmd, iptVer, false, stdin, args...)
    }
    
    // RunQuietlyAndIgnore runs a command quietly and ignores errors
    func (r *RealDependencies) RunQuietlyAndIgnore(cmd constants.IptablesCmd, iptVer *IptablesVersion, stdin io.ReadSeeker, args ...string) {
    	_ = r.executeXTables(cmd, iptVer, true, stdin, args...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 19:54:50 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. src/internal/trace/testdata/cmd/gotraceeventstats/main.go

    )
    
    func init() {
    	flag.Usage = func() {
    		fmt.Fprintf(flag.CommandLine.Output(), "Usage: %s [mode]\n", os.Args[0])
    		fmt.Fprintf(flag.CommandLine.Output(), "\n")
    		fmt.Fprintf(flag.CommandLine.Output(), "Accepts a trace at stdin.\n")
    		fmt.Fprintf(flag.CommandLine.Output(), "\n")
    		fmt.Fprintf(flag.CommandLine.Output(), "Supported modes:")
    		fmt.Fprintf(flag.CommandLine.Output(), "\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:29 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/client-go/applyconfigurations/core/v1/ephemeralcontainercommon.go

    	return b
    }
    
    // WithStdin sets the Stdin field in the declarative configuration to the given value
    // and returns the receiver, so that objects can be built by chaining "With" function invocations.
    // If called multiple times, the Stdin field is set to the value of the last call.
    func (b *EphemeralContainerCommonApplyConfiguration) WithStdin(value bool) *EphemeralContainerCommonApplyConfiguration {
    	b.Stdin = &value
    	return b
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 21:39:35 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/cache/prog.go

    )
    
    // ProgCache implements Cache via JSON messages over stdin/stdout to a child
    // helper process which can then implement whatever caching policy/mechanism it
    // wants.
    //
    // See https://github.com/golang/go/issues/59719
    type ProgCache struct {
    	cmd    *exec.Cmd
    	stdout io.ReadCloser  // from the child process
    	stdin  io.WriteCloser // to the child process
    	bw     *bufio.Writer  // to stdin
    	jenc   *json.Encoder  // to bw
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 19:23:25 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top