Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for index (0.06 sec)

  1. cmd/bucket-listobjects-handlers.go

    	return subToken, false
    }
    
    func proxyRequestByNodeIndex(ctx context.Context, w http.ResponseWriter, r *http.Request, index int) (success bool) {
    	if len(globalProxyEndpoints) == 0 {
    		return false
    	}
    	if index < 0 || index >= len(globalProxyEndpoints) {
    		return false
    	}
    	ep := globalProxyEndpoints[index]
    	if ep.IsLocal {
    		return false
    	}
    	return proxyRequest(ctx, w, r, ep)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. pilot/pkg/model/endpointshards.go

    type EndpointIndexUpdater struct {
    	Index *EndpointIndex
    	// Optional; if set, we will trigger ConfigUpdates in response to EDS updates as appropriate
    	ConfigUpdateFunc func(req *PushRequest)
    }
    
    var _ XDSUpdater = &EndpointIndexUpdater{}
    
    func NewEndpointIndexUpdater(ei *EndpointIndex) *EndpointIndexUpdater {
    	return &EndpointIndexUpdater{Index: ei}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  3. scan.go

    			}
    
    			for initialized || rows.Next() {
    			BEGIN:
    				initialized = false
    
    				if update {
    					if int(db.RowsAffected) >= reflectValue.Len() {
    						return
    					}
    					elem = reflectValue.Index(int(db.RowsAffected))
    					if onConflictDonothing {
    						for _, field := range fields {
    							if _, ok := field.ValueOf(db.Statement.Context, elem); !ok {
    								db.RowsAffected++
    								goto BEGIN
    							}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. cmd/s3-zip-handlers.go

    //
    //	e.g  /path/to/archive.zip/backup-2021/myimage.png => /path/to/archive.zip, backup/myimage.png
    func splitZipExtensionPath(input string) (zipPath, object string, err error) {
    	idx := strings.Index(input, archivePattern)
    	if idx < 0 {
    		// Should never happen
    		return "", "", errors.New("unable to parse zip path")
    	}
    	return input[:idx+len(archivePattern)-1], input[idx+len(archivePattern):], nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. cmd/metacache-entries.go

    func (e metaCacheEntry) isInDir(dir, separator string) bool {
    	if len(dir) == 0 {
    		// Root
    		idx := strings.Index(e.name, separator)
    		return idx == -1 || idx == len(e.name)-len(separator)
    	}
    	ext := strings.TrimPrefix(e.name, dir)
    	if len(ext) != len(e.name) {
    		idx := strings.Index(ext, separator)
    		// If separator is not found or is last entry, ok.
    		return idx == -1 || idx == len(ext)-len(separator)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 04:34:26 UTC 2024
    - 24K bytes
    - Viewed (0)
  6. cmd/api-response.go

    	for index, commonPrefix := range multipartsInfo.CommonPrefixes {
    		listMultipartUploadsResponse.CommonPrefixes[index] = CommonPrefix{
    			Prefix: s3EncodeName(commonPrefix, encodingType),
    		}
    	}
    	listMultipartUploadsResponse.Uploads = make([]Upload, len(multipartsInfo.Uploads))
    	for index, upload := range multipartsInfo.Uploads {
    		newUpload := Upload{}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    				t.Errorf("%s: expecting rev = %d, but get %d", tt.name, tt.expectedRev, rev)
    			}
    		})
    	}
    }
    
    func BenchmarkStore_GetList(b *testing.B) {
    	generateBigPod := func(index int, total int, expect int) runtime.Object {
    		l := map[string]string{}
    		if index%(total/expect) == 0 {
    			l["foo"] = "bar"
    		}
    		terminationGracePeriodSeconds := int64(42)
    		activeDeadlineSeconds := int64(42)
    		pod := &examplev1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  8. schema/relationship.go

    			PkgPath: ownField.StructField.PkgPath,
    			Type:    ownField.StructField.Type,
    			Tag: removeSettingFromTag(appendSettingFromTag(ownField.StructField.Tag, "primaryKey"),
    				"column", "autoincrement", "index", "unique", "uniqueindex"),
    		})
    	}
    
    	for idx, relField := range refForeignFields {
    		joinFieldName := cases.Title(language.Und, cases.NoLower).String(relation.FieldSchema.Name) + relField.Name
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/ambient/workloads_test.go

    			wl := slices.Map(res, func(e model.WorkloadInfo) *workloadapi.Workload {
    				return e.Workload
    			})
    			assert.Equal(t, wl, tt.result)
    		})
    	}
    }
    
    func newAmbientUnitTest() *index {
    	return &index{
    		networkUpdateTrigger: krt.NewRecomputeTrigger(),
    		ClusterID:            testC,
    		Network: func(endpointIP string, labels labels.Instance) network.ID {
    			return testNW
    		},
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. cmd/apierrorcode_string.go

    // Code generated by "stringer -type=APIErrorCode -trimprefix=Err api-errors.go"; DO NOT EDIT.
    
    package cmd
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[ErrNone-0]
    	_ = x[ErrAccessDenied-1]
    	_ = x[ErrBadDigest-2]
    	_ = x[ErrEntityTooSmall-3]
    	_ = x[ErrEntityTooLarge-4]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
Back to top