Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for WithTransportCredentials (0.2 sec)

  1. cni/pkg/pluginlistener/listener_test.go

    	if err != nil {
    		t.Fatalf("failed to connect %v", err)
    	}
    	conn.Close()
    }
    
    func connect(socket string) (*grpc.ClientConn, error) {
    	var opts []grpc.DialOption
    
    	opts = append(opts, grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithContextDialer(func(ctx context.Context, addr string) (net.Conn, error) {
    		var d net.Dialer
    		return d.DialContext(ctx, "unix", socket)
    	}))
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 21:58:32 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  2. istioctl/pkg/xds/client.go

    	}
    	return []grpc.DialOption{
    		// nolint: gosec
    		// Only runs over istioctl experimental
    		// TODO: https://github.com/istio/istio/issues/41937
    		grpc.WithTransportCredentials(credentials.NewTLS(
    			&tls.Config{
    				// Always skip verifying, because without it we always get "certificate signed by unknown authority".
    				// We don't set the XDSSAN for the same reason.
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Dec 19 22:42:42 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  3. istioctl/pkg/xds/google.go

    	}
    	gcpCreds, err := oauth.NewApplicationDefault(ctx)
    	if err != nil {
    		return nil, fmt.Errorf("failed to get application default credentials: %w", err)
    	}
    
    	return []grpc.DialOption{
    		grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{
    			RootCAs:    systemRoots,
    			MinVersion: tls.VersionTLS12,
    		})),
    		grpc.WithPerRPCCredentials(&meshAuthCredentials{
    			k8sCreds: k8sCreds,
    			gcpCreds: gcpCreds,
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Nov 14 20:23:34 GMT 2022
    - 3.4K bytes
    - Viewed (0)
Back to top