Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 585 for Jake (0.15 sec)

  1. finisher_api.go

    //	db.Where(User{Name: "non_existing"}).Attrs(User{Email: "fake@fake.org"}).FirstOrInit(&user)
    //	// user -> User{Name: "non_existing", Email: "fake@fake.org"}
    //
    //	// assign email regardless of if record is found
    //	db.Where(User{Name: "jinzhu"}).Assign(User{Email: "fake@fake.org"}).FirstOrInit(&user)
    //	// user -> User{Name: "jinzhu", Age: 20, Email: "fake@fake.org"}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  2. istioctl/pkg/cli/context.go

    }
    
    type NewFakeContextOption struct {
    	Namespace      string
    	IstioNamespace string
    	Results        map[string][]byte
    	// Objects are the objects to be applied to the fake client
    	Objects []runtime.Object
    	// Version is the version of the fake client
    	Version string
    }
    
    func NewFakeContext(opts *NewFakeContextOption) Context {
    	if opts == nil {
    		opts = &NewFakeContextOption{}
    	}
    	ns := opts.Namespace
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  3. cmd/listen-notification-handlers.go

    	// Listen Publisher and peer-listen-client uses nonblocking send and hence does not wait for slow receivers.
    	// Use buffered channel to take care of burst sends or slow w.Write()
    	mergeCh := make(chan []byte, globalAPIConfig.getRequestsPoolCapacity()*len(globalEndpoints.Hostnames()))
    	localCh := make(chan event.Event, globalAPIConfig.getRequestsPoolCapacity())
    
    	// Convert local messages to JSON and send to mergeCh
    	go func() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool-rebalance.go

    	r := &rebalanceMeta{
    		ID:        shortuuid.New(),
    		PoolStats: make([]*rebalanceStats, len(z.serverPools)),
    	}
    
    	// Fetch disk capacity and available space.
    	si := z.StorageInfo(ctx, true)
    	diskStats := make([]struct {
    		AvailableSpace uint64
    		TotalSpace     uint64
    	}, len(z.serverPools))
    	var totalCap, totalFree uint64
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  5. cmd/license-update.go

    		// reason, the lock will be released and another node will acquire it and
    		// take over because of this loop.
    		for {
    			licenceUpdaterLoop(ctx, objAPI)
    
    			// license update stopped for some reason.
    			// sleep for some time and try again.
    			duration := time.Duration(r.Float64() * float64(time.Hour))
    			if duration < time.Second {
    				// Make sure to sleep at least a second to avoid high CPU ticks.
    				duration = time.Second
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  6. cmd/untar.go

    		f:      formatBZ2,
    	},
    }
    
    type untarOptions struct {
    	ignoreDirs bool
    	ignoreErrs bool
    	prefixAll  string
    }
    
    // disconnectReader will ensure that no reads can take place on
    // the upstream reader after close has been called.
    type disconnectReader struct {
    	r  io.Reader
    	mu sync.Mutex
    }
    
    func (d *disconnectReader) Read(p []byte) (n int, err error) {
    	d.mu.Lock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  7. tests/migrate_test.go

    	}
    
    	err = db.Table("objects").Take(&Object2{}).Error
    	if err != nil {
    		t.Errorf("take err:%v", err)
    	}
    
    	// AlterColumn
    	err = db.Table("objects").AutoMigrate(&Object3{})
    	if err != nil {
    		t.Errorf("AutoMigrate err:%v", err)
    	}
    
    	err = db.Table("objects").Take(&Object3{}).Error
    	if err != nil {
    		t.Errorf("take err:%v", err)
    	}
    
    	// AddColumn
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  8. istioctl/pkg/precheck/precheck.go

    	}
    	minor, err := strconv.Atoi(minors)
    	if err != nil {
    		return nil, fmt.Errorf("minor version is not a number: %v", minors)
    	}
    
    	var messages diag.Messages = make([]diag.Message, 0)
    	if minor <= 21 {
    		// ENHANCED_RESOURCE_SCOPING
    		if err := checkPilot(cli, ctx.IstioNamespace(), &messages); err != nil {
    			return nil, err
    		}
    	}
    	if minor <= 20 {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  9. internal/event/rules_test.go

    	rulesCase1 := make(Rules)
    	rules2Case1 := make(Rules)
    	expectedResultCase1 := make(Rules)
    
    	rulesCase2 := make(Rules)
    	rules2Case2 := make(Rules)
    	rules2Case2.Add(NewPattern("*", "*"), TargetID{"1", "webhook"})
    	expectedResultCase2 := make(Rules)
    
    	rulesCase3 := make(Rules)
    	rulesCase3.Add(NewPattern("*", "*"), TargetID{"1", "webhook"})
    	rules2Case3 := make(Rules)
    	expectedResultCase3 := make(Rules)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 8.8K bytes
    - Viewed (0)
  10. istioctl/pkg/workload/workload.go

    	out := make(map[string]uint32, len(s))
    	for _, l := range s {
    		k, v := splitEqual(l)
    		u64, err := strconv.ParseUint(v, 10, 32)
    		if err != nil {
    			log.Errorf("failed to convert to uint32: %v", err)
    		}
    		out[k] = uint32(u64)
    	}
    	return out
    }
    
    func convertToStringMap(s []string) map[string]string {
    	out := make(map[string]string, len(s))
    	for _, l := range s {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
Back to top