Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DeleteChain (0.1 sec)

  1. pkg/util/iptables/iptables_test.go

    			func(cmd string, args ...string) exec.Cmd { return fakeexec.InitFakeCmd(&fcmd, cmd, args...) },
    		},
    	}
    	runner := New(fexec, ProtocolIPv4)
    	// Success.
    	err := runner.DeleteChain(TableNAT, Chain("FOOBAR"))
    	if err != nil {
    		t.Errorf("expected success, got %v", err)
    	}
    	if fcmd.CombinedOutputCalls != 2 {
    		t.Errorf("expected 2 CombinedOutput() calls, got %d", fcmd.CombinedOutputCalls)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:21:59 UTC 2023
    - 46.3K bytes
    - Viewed (0)
  2. pkg/util/iptables/iptables.go

    	EnsureChain(table Table, chain Chain) (bool, error)
    	// FlushChain clears the specified chain.  If the chain did not exist, return error.
    	FlushChain(table Table, chain Chain) error
    	// DeleteChain deletes the specified chain.  If the chain did not exist, return error.
    	DeleteChain(table Table, chain Chain) error
    	// ChainExists tests whether the specified chain exists, returning an error if it
    	// does not, or if it is unable to check.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 28.6K bytes
    - Viewed (0)
Back to top