Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for restoreFail (0.2 sec)

  1. src/cmd/gofmt/gofmt.go

    		if erro != nil {
    			// That failed too.
    			restoreFail(erro)
    			return err
    		}
    
    		if no < n {
    			// Original file is shorter. Truncate.
    			if erro = fout.Truncate(int64(no)); erro != nil {
    				restoreFail(erro)
    				return err
    			}
    		}
    
    		if erro := fout.Close(); erro != nil {
    			restoreFail(erro)
    			return err
    		}
    
    		// Original contents restored.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  2. pkg/util/iptables/testing/fake_test.go

    		-A KUBE-NEW-CHAIN -d 172.30.0.3 -j DNAT --to-destination 10.0.0.3
    		COMMIT
    		`, "\n"))
    	err = fake.RestoreAll([]byte(rules), iptables.FlushTables, iptables.NoRestoreCounters)
    	if err != nil {
    		t.Fatalf("unexpected error from RestoreAll: %v", err)
    	}
    
    	buf.Reset()
    	err = fake.SaveInto("", buf)
    	if err != nil {
    		t.Fatalf("unexpected error from SaveInto: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  3. pkg/util/iptables/iptables_test.go

    		},
    	}
    	lockPath14x, lockPath16x := getLockPaths()
    	runner := newInternal(fexec, ProtocolIPv4, lockPath14x, lockPath16x)
    
    	err := runner.RestoreAll([]byte{}, NoFlushTables, RestoreCounters)
    	if err != nil {
    		t.Fatalf("expected success, got %v", err)
    	}
    
    	commandSet := sets.New(fcmd.CombinedOutputLog[1]...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:21:59 UTC 2023
    - 46.3K bytes
    - Viewed (0)
  4. pkg/util/iptables/testing/fake.go

    		return err
    	}
    
    	newTable, err := dump.GetTable(table)
    	if err != nil {
    		return err
    	}
    
    	return f.restoreTable(dump, newTable, flush, counters)
    }
    
    // RestoreAll is part of iptables.Interface
    func (f *FakeIPTables) RestoreAll(data []byte, flush iptables.FlushFlag, counters iptables.RestoreCountersFlag) error {
    	dump, err := ParseIPTablesDump(string(data))
    	if err != nil {
    		return err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  5. pkg/util/iptables/iptables.go

    	// counters sets the "--counters" flag. see: RestoreCountersFlag
    	Restore(table Table, data []byte, flush FlushFlag, counters RestoreCountersFlag) error
    	// RestoreAll is the same as Restore except that no table is specified.
    	RestoreAll(data []byte, flush FlushFlag, counters RestoreCountersFlag) error
    	// Monitor detects when the given iptables tables have been flushed by an external
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 28.6K bytes
    - Viewed (0)
  6. tensorflow/cc/saved_model/testdata/half_plus_two_pbtxt/00000123/saved_model.pbtxt

          input: "^save/Assign_2"
        }
        node {
          name: "save/restore_all"
          op: "NoOp"
          input: "^save/restore_shard"
        }
        versions {
          producer: 23
        }
      }
      saver_def {
        filename_tensor_name: "save/Const:0"
        save_tensor_name: "save/Identity:0"
        restore_op_name: "save/restore_all"
        max_to_keep: 5
        sharded: true
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 01:10:27 UTC 2017
    - 46.9K bytes
    - Viewed (0)
  7. pkg/proxy/iptables/proxier.go

    	)
    	proxier.logger.V(9).Info("Restoring iptables", "rules", proxier.iptablesData.Bytes())
    
    	// NOTE: NoFlushTables is used so we don't flush non-kubernetes chains in the table
    	err := proxier.iptables.RestoreAll(proxier.iptablesData.Bytes(), utiliptables.NoFlushTables, utiliptables.RestoreCounters)
    	if err != nil {
    		if pErr, ok := err.(utiliptables.ParseError); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 65.1K bytes
    - Viewed (0)
  8. pkg/proxy/ipvs/proxier.go

    	proxier.logger.V(5).Info(
    		"Restoring iptables", "natChains", proxier.natChains,
    		"natRules", proxier.natRules, "filterChains", proxier.filterChains,
    		"filterRules", proxier.filterRules)
    	err = proxier.iptables.RestoreAll(proxier.iptablesData.Bytes(), utiliptables.NoFlushTables, utiliptables.RestoreCounters)
    	if err != nil {
    		if pErr, ok := err.(utiliptables.ParseError); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 77.7K bytes
    - Viewed (0)
  9. pkg/proxy/iptables/proxier_test.go

    		-A KUBE-SVC-XPGD46QRK7WJZT7O -m comment --comment "ns1/svc1:p80 -> 10.180.0.1:80" -j KUBE-SEP-SXIVWICOYRO3J4NJ
    		COMMIT
    		`)
    
    	ipt := iptablestest.NewFake()
    	err := ipt.RestoreAll([]byte(rules), utiliptables.NoFlushTables, utiliptables.RestoreCounters)
    	if err != nil {
    		t.Fatalf("Restore of test data failed: %v", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 249.9K bytes
    - Viewed (0)
Back to top