Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsWriteCmd (0.11 sec)

  1. tools/istio-iptables/pkg/dependencies/implementation.go

    		return v.DetectedSaveBinary
    	case constants.IPTablesRestore:
    		return v.DetectedRestoreBinary
    	default:
    		return ""
    	}
    }
    
    // IsWriteCmd returns true for all command types that do write actions (and thus need a lock)
    func (v IptablesVersion) IsWriteCmd(cmd constants.IptablesCmd) bool {
    	switch cmd {
    	case constants.IPTables:
    		return true
    	case constants.IPTablesRestore:
    		return true
    	default:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 19:54:50 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. tools/istio-iptables/pkg/dependencies/implementation_linux.go

    	mode := "without lock"
    	cmdBin := iptVer.CmdToString(cmd)
    	if cmdBin == "" {
    		return fmt.Errorf("called without iptables binary, cannot execute!: %+v", iptVer)
    	}
    	var c *exec.Cmd
    	needLock := iptVer.IsWriteCmd(cmd) && !iptVer.NoLocks()
    	run := func(c *exec.Cmd) error {
    		return c.Run()
    	}
    	if r.CNIMode {
    		c = exec.Command(cmdBin, args...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 12 20:49:10 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top