Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pkg/proxy/util/localdetector_test.go

    */
    
    package util
    
    import (
    	"reflect"
    	"testing"
    )
    
    func TestNoOpLocalDetector(t *testing.T) {
    	localDetector := NewNoOpLocalDetector()
    	if localDetector.IsImplemented() {
    		t.Error("NoOpLocalDetector returns true for IsImplemented")
    	}
    
    	ifLocal := localDetector.IfLocal()
    	if len(ifLocal) != 0 {
    		t.Errorf("NoOpLocalDetector returns %v for IsLocal (expected nil)", ifLocal)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 15:34:37 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. pkg/proxy/util/localdetector.go

    )
    
    // LocalTrafficDetector generates iptables or nftables rules to detect traffic from local pods.
    type LocalTrafficDetector interface {
    	// IsImplemented returns true if the implementation does something, false
    	// otherwise. You should not call the other methods if IsImplemented() returns
    	// false.
    	IsImplemented() bool
    
    	// IfLocal returns iptables arguments that will match traffic from a local pod.
    	IfLocal() []string
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 15:34:37 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top