Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for natsserver (0.16 sec)

  1. internal/event/target/nats_contrib_test.go

     * limitations under the License.
     */
    
    package target
    
    import (
    	"testing"
    
    	xnet "github.com/minio/pkg/v3/net"
    	natsserver "github.com/nats-io/nats-server/v2/test"
    )
    
    func TestNatsConnPlain(t *testing.T) {
    	opts := natsserver.DefaultTestOptions
    	opts.Port = 14222
    	s := natsserver.RunServer(&opts)
    	defer s.Shutdown()
    
    	clientConfig := &NATSArgs{
    		Enable: true,
    		Address: xnet.Host{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. internal/event/target/nats_tls_contrib_test.go

     */
    
    package target
    
    import (
    	"path"
    	"path/filepath"
    	"testing"
    
    	xnet "github.com/minio/pkg/v3/net"
    	natsserver "github.com/nats-io/nats-server/v2/test"
    )
    
    func TestNatsConnTLSCustomCA(t *testing.T) {
    	s, opts := natsserver.RunServerWithConfig(filepath.Join("testdata", "contrib", "nats_tls.conf"))
    	defer s.Shutdown()
    
    	clientConfig := &NATSArgs{
    		Enable: true,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/net_test.go

    	ztunnelServer := &fakeZtunnel{}
    
    	netServer := newNetServer(ztunnelServer, podNsMap, iptablesConfigurator, NewPodNetnsProcFinder(fakeFs()))
    
    	netServer.netnsRunner = func(fdable NetnsFd, toRun func() error) error {
    		return toRun()
    	}
    	netServer.Start(ctx)
    	return netTestFixture{
    		netServer:            netServer,
    		podNsMap:             podNsMap,
    		ztunnelServer:        ztunnelServer,
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jul 25 16:13:38 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/net.go

    	return &NetServer{
    		ztunnelServer:      ztunnelServer,
    		currentPodSnapshot: podNsMap,
    		podNs:              podNs,
    		podIptables:        podIptables,
    		netnsRunner:        NetnsDo,
    	}
    }
    
    func (s *NetServer) Start(ctx context.Context) {
    	log.Debug("starting ztunnel server")
    	go s.ztunnelServer.Run(ctx)
    }
    
    func (s *NetServer) Stop() {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 21 16:48:55 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/server.go

    	netServer := newNetServer(ztunnelServer, podNsMap, podIptables, podNetns)
    
    	// Set some defaults
    	s := &Server{
    		ctx:        ctx,
    		kubeClient: client,
    		isReady:    ready,
    		dataplane: &meshDataplane{
    			kubeClient:         client.Kube(),
    			netServer:          netServer,
    			hostIptables:       hostIptables,
    			hostsideProbeIPSet: set,
    		},
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Sep 25 20:54:34 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. internal/bucket/object/lock/lock.go

    const (
    	ntpServerEnv = "MINIO_NTP_SERVER"
    )
    
    var ntpServer = env.Get(ntpServerEnv, "")
    
    // UTCNowNTP - is similar in functionality to UTCNow()
    // but only used when we do not wish to rely on system
    // time.
    func UTCNowNTP() (time.Time, error) {
    	// ntp server is disabled
    	if ntpServer == "" {
    		return time.Now().UTC(), nil
    	}
    	return ntp.Time(ntpServer)
    }
    
    // Retention - bucket level retention configuration.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 29 01:20:27 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/server_test.go

    		).Return(nil)
    	}
    }
    
    func getFakeDPWithIPSet(fs *fakeServer, fakeClient kubernetes.Interface, fakeSet ipset.IPSet) *meshDataplane {
    	return &meshDataplane{
    		kubeClient:         fakeClient,
    		netServer:          fs,
    		hostsideProbeIPSet: fakeSet,
    	}
    }
    
    func getFakeDP(fs *fakeServer, fakeClient kubernetes.Interface) *meshDataplane {
    	fakeIPSetDeps := ipset.FakeNLDeps()
    
    	fakeIPSetDeps.On("addIP",
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 18.7K bytes
    - Viewed (0)
Back to top