Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for Chan (0.28 sec)

  1. cni/pkg/nodeagent/ztunnelserver.go

    }
    
    type updateRequest struct {
    	Update []byte
    	Fd     *int
    
    	Resp chan updateResponse
    }
    
    type ZtunnelConnection struct {
    	u       *net.UnixConn
    	Updates chan updateRequest
    }
    
    func newZtunnelConnection(u *net.UnixConn) *ZtunnelConnection {
    	return &ZtunnelConnection{u: u, Updates: make(chan updateRequest, 100)}
    }
    
    func (z *ZtunnelConnection) Close() {
    	z.u.Close()
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  2. istioctl/pkg/cli/mock_client.go

    	return nil
    }
    
    func (m MockPortForwarder) Address() string {
    	return "localhost:3456"
    }
    
    func (m MockPortForwarder) Close() {
    }
    
    func (m MockPortForwarder) ErrChan() <-chan error {
    	return make(chan error)
    }
    
    func (m MockPortForwarder) WaitForStop() {
    }
    
    var _ kube.PortForwarder = MockPortForwarder{}
    
    type MockClient struct {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  3. istioctl/pkg/dashboard/dashboard.go

    				}
    
    				if len(pl.Items) < 1 {
    					return errors.New("no pods found")
    				}
    
    				if len(pl.Items) > 1 {
    					log.Warnf("more than 1 pods fits selector: %s; will use pod: %s", labelSelector, pl.Items[0].Name)
    				}
    
    				// only use the first pod in the list
    				podName = pl.Items[0].Name
    				ns = pl.Items[0].Namespace
    			} else {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/ztunnelserver_test.go

    	if sent == nil {
    		panic("expected snapshot sent")
    	}
    	sendAck(ztunClient)
    
    	// now remove the pod
    	ztunnelServer := fixture.ztunServer
    	errChan := make(chan error)
    	go func() {
    		errChan <- ztunnelServer.PodDeleted(ctx, uid)
    	}()
    	// read the msg to delete from ztunnel
    	m, fds = readRequest(t, ztunClient)
    	assert.Equal(t, len(fds), 0)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  5. istioctl/pkg/wait/wait.go

    	})
    	return g
    }
    
    type watcher struct {
    	resultsChan chan string
    	errorChan   chan error
    	ctx         context.Context
    }
    
    func withContext(ctx context.Context) *watcher {
    	return &watcher{
    		resultsChan: make(chan string, 1),
    		errorChan:   make(chan error, 1),
    		ctx:         ctx,
    	}
    }
    
    func (w *watcher) Go(f func(chan string) error) {
    	go func() {
    		if err := f(w.resultsChan); err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Feb 17 12:24:17 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/discovery/v1/generated.proto

      // according to the corresponding EndpointSlice addressType field. Consumers
      // must handle different types of addresses in the context of their own
      // capabilities. This must contain at least one address but no more than
      // 100. These are all assumed to be fungible and clients may choose to only
      // use the first element. Refer to: https://issue.k8s.io/106267
      // +listType=set
      repeated string addresses = 1;
    
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 8K bytes
    - Viewed (0)
  7. common-protos/k8s.io/api/autoscaling/v2beta2/generated.proto

      optional string type = 1;
    
      // value contains the amount of change which is permitted by the policy.
      // It must be greater than zero
      optional int32 value = 2;
    
      // periodSeconds specifies the window of time for which the policy should hold true.
      // PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
      optional int32 periodSeconds = 3;
    }
    
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 21K bytes
    - Viewed (0)
  8. common-protos/k8s.io/apimachinery/pkg/api/resource/generated.proto

    //
    // <decimalExponent> ::= "e" <signedNumber> | "E" <signedNumber>
    // ```
    //
    // No matter which of the three exponent forms is used, no quantity may represent
    // a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal
    // places. Numbers larger or more precise will be capped or rounded up.
    // (E.g.: 0.1m will rounded up to 1m.)
    // This may be extended in the future if we require larger or smaller quantities.
    //
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/scheduling/v1alpha1/generated.proto

      // globalDefault specifies whether this PriorityClass should be considered as
      // the default priority for pods that do not have any priority class.
      // Only one PriorityClass can be marked as `globalDefault`. However, if more than
      // one PriorityClasses exists with their `globalDefault` field set to true,
      // the smallest value of such global default PriorityClasses will be used as the default priority.
      // +optional
      optional bool globalDefault = 3;
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/core/v1/generated.proto

      // Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed.
      // And when the number of eligible domains with matching topology keys equals or greater than minDomains,
      // this value has no effect on scheduling.
      // As a result, when the number of eligible domains is less than minDomains,
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 255.8K bytes
    - Viewed (0)
Back to top