Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 243 for isset (0.05 sec)

  1. pkg/proxy/ipvs/ipset/testing/fake.go

    	"k8s.io/kubernetes/pkg/proxy/ipvs/ipset"
    )
    
    // FakeIPSet is a no-op implementation of ipset Interface
    type FakeIPSet struct {
    	// version of ipset util
    	Version string
    	// The key of Sets map is the ip set name
    	Sets map[string]*ipset.IPSet
    	// The key of Entries map is the ip set name where the entries exists
    	Entries map[string]sets.String
    }
    
    // NewFake create a new fake ipset interface - it initialize the FakeIPSet.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. pkg/proxy/ipvs/ipset/ipset_test.go

    	testCases := []struct {
    		ipset     *IPSet
    		expectErr bool
    		desc      string
    	}{
    		{ // case[0]
    			ipset: &IPSet{
    				Name:       "test",
    				SetType:    HashIPPort,
    				HashFamily: ProtocolFamilyIPV4,
    				HashSize:   1024,
    				MaxElem:    1024,
    			},
    			expectErr: false,
    			desc:      "No Port range",
    		},
    		{ // case[1]
    			ipset: &IPSet{
    				Name:       "SET",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 41.5K bytes
    - Viewed (0)
  3. tensorflow/cc/saved_model/testdata/generate_saved_models.py

    
    class AssetModule(module.Module):
    
      def __init__(self):
        self.asset = asset.Asset(
            test.test_src_dir_path("cc/saved_model/testdata/test_asset.txt"))
    
      @def_function.function(input_signature=[])
      def read_file(self):
        return io_ops.read_file(self.asset)
    
    
    class StaticHashTableModule(module.Module):
      """A module with an Asset, StaticHashTable, and a lookup function."""
    
      def __init__(self):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 18:06:18 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/net.go

    	// allow overriding for tests
    	netnsRunner        func(fdable NetnsFd, toRun func() error) error
    	hostsideProbeIPSet ipset.IPSet
    }
    
    var _ MeshDataplane = &NetServer{}
    
    func newNetServer(ztunnelServer ZtunnelServer, podNsMap *podNetnsCache,
    	iptablesConfigurator *iptables.IptablesConfigurator, podNs PodNetnsFinder,
    	probeSet ipset.IPSet,
    ) *NetServer {
    	return &NetServer{
    		ztunnelServer:        ztunnelServer,
    		currentPodSnapshot:   podNsMap,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. pkg/proxy/ipvs/ipset/types.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package ipset
    
    // Type represents the ipset type
    type Type string
    
    const (
    	// HashIPPort represents the `hash:ip,port` type ipset.  The hash:ip,port is similar to hash:ip but
    	// you can store IP address and protocol-port pairs in it.  TCP, SCTP, UDP, UDPLITE, ICMP and ICMPv6 are supported
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. pkg/proxy/ipvs/ipset/testing/fake_test.go

    		t.Errorf("Unexpected version mismatch, expected: %s, got: %s", testVersion, version)
    	}
    	// create a set
    	set := &ipset.IPSet{
    		Name:       "foo",
    		SetType:    ipset.HashIPPort,
    		HashFamily: ipset.ProtocolFamilyIPV4,
    	}
    	if err := fake.CreateSet(set, true); err != nil {
    		t.Errorf("Unexpected error: %v", err)
    	}
    
    	// add two entries
    	err = fake.AddEntry("192.168.1.1,tcp:8080", set, true)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. cni/pkg/ipset/nldeps_linux.go

    	err := netlink.IpsetFlush(name)
    	if err != nil {
    		return fmt.Errorf("failed to flush ipset %s: %w", name, err)
    	}
    	return nil
    }
    
    // Alpine and some distros struggles with this - ipset CLI utilities support this, but
    // the kernel can be out of sync with the CLI utility, leading to errors like:
    //
    // ipset v7.10: Argument `comment' is supported in the kernel module of the set type hash:ip
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 30 18:07:05 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. pkg/proxy/ipvs/ipset_test.go

    		},
    		{
    			name: "ipset sync, remove old and add new",
    			set: &utilipset.IPSet{
    				Name: "c-c-c",
    			},
    			setType:         utilipset.BitmapPort,
    			activeEntries:   []string{"8080", "9090"},
    			currentEntries:  []string{"80"},
    			expectedEntries: []string{"8080", "9090"},
    		},
    		{
    			name: "ipset sync, remove many stale ports",
    			set: &utilipset.IPSet{
    				Name: "NODE-PORT",
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/net_test.go

    	ipsetDeps            *ipset.MockedIpsetDeps
    }
    
    func getTestFixure(ctx context.Context) netTestFixture {
    	podNsMap := newPodNetnsCache(openNsTestOverride)
    	nlDeps := &fakeIptablesDeps{}
    	iptablesConfigurator, _ := iptables.NewIptablesConfigurator(nil, &dependencies.DependenciesStub{}, nlDeps)
    
    	ztunnelServer := &fakeZtunnel{}
    
    	fakeIPSetDeps := ipset.FakeNLDeps()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_asset_sinking.mlir

    // RUN: tf-opt %s -split-input-file -tf-saved-model-asset-sinking='saved-model-dir=foo/bar' | FileCheck %s
    
    // CHECK-LABEL: module @asset
    module @asset attributes {tf_saved_model.semantics} {
      "tf_saved_model.session_initializer"() {initializers = [@init]} : () -> ()
    
      // CHECK-NOT: "tf_saved_model.asset"
      "tf_saved_model.asset"() {filename = "assets/test0.txt", sym_name = "asset0"} : () -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top