- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 614 for const (0.02 seconds)
-
cmd/dummy-handlers.go
// Validate if bucket exists, before proceeding further... _, err := objAPI.GetBucketInfo(ctx, bucket, BucketOptions{}) if err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } const accelerateDefaultConfig = `<?xml version="1.0" encoding="UTF-8"?><AccelerateConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>` writeSuccessResponseXML(w, []byte(accelerateDefaultConfig)) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Aug 13 15:25:16 GMT 2024 - 8.8K bytes - Click Count (0) -
internal/grid/grid_test.go
})) // local to remote remoteConn := local.Connection(remoteHost) remoteConn.WaitForConnect(t.Context()) defer testlogger.T.SetErrorTB(t)() t.Run("localToRemote", func(t *testing.T) { const testPayload = "Hello Grid World!" start := time.Now() resp, err := remoteConn.Request(t.Context(), handlerTest, []byte(testPayload)) errFatal(err) if string(resp) != testPayload {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 36.1K bytes - Click Count (0) -
internal/lsync/lrwmutex.go
// blocks until the mutex is available. func (lm *LRWMutex) Lock() { const isWriteLock = true lm.lockLoop(context.Background(), lm.id, lm.source, math.MaxInt64, isWriteLock) } // GetLock tries to get a write lock on lm before the timeout occurs. func (lm *LRWMutex) GetLock(ctx context.Context, id string, source string, timeout time.Duration) (locked bool) { const isWriteLock = true return lm.lockLoop(ctx, id, source, timeout, isWriteLock) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 4.8K bytes - Click Count (0) -
internal/http/headers.go
Authorization = "Authorization" Action = "Action" Range = "Range" ) // Non standard S3 HTTP response constants const ( XCache = "X-Cache" XCacheLookup = "X-Cache-Lookup" ) // Standard S3 HTTP request constants const ( IfModifiedSince = "If-Modified-Since" IfUnmodifiedSince = "If-Unmodified-Since" IfMatch = "If-Match" IfNoneMatch = "If-None-Match"
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed May 07 15:37:12 GMT 2025 - 10.8K bytes - Click Count (0) -
cmd/xl-storage-format-v2_string.go
// Re-run the stringer command to generate them again. var x [1]struct{} _ = x[invalidVersionType-0] _ = x[ObjectType-1] _ = x[DeleteType-2] _ = x[LegacyType-3] _ = x[lastVersionType-4] } const _VersionType_name = "invalidVersionTypeObjectTypeDeleteTypeLegacyTypelastVersionType" var _VersionType_index = [...]uint8{0, 18, 28, 38, 48, 63} func (i VersionType) String() string {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Dec 02 19:29:16 GMT 2021 - 1.4K bytes - Click Count (0) -
cmd/xl-storage-format-v1.go
package cmd import ( "encoding/binary" "encoding/hex" "encoding/json" "fmt" "time" "github.com/cespare/xxhash/v2" jsoniter "github.com/json-iterator/go" ) // XL constants. const ( // XL metadata file carries per object metadata. xlStorageFormatFileV1 = "xl.json" ) // Valid - tells us if the format is sane by validating // format version and erasure coding information.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Oct 22 15:30:50 GMT 2024 - 8.4K bytes - Click Count (0) -
internal/grid/benchmark_test.go
errFatal := func(err error) { b.Helper() if err != nil { b.Fatal(err) } } grid, err := SetupTestGrid(n) errFatal(err) b.Cleanup(grid.Cleanup) const messages = 10 // Create n managers. const payloadSize = 512 rng := rand.New(rand.NewSource(time.Now().UnixNano())) payload := make([]byte, payloadSize) _, err = rng.Read(payload) errFatal(err)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 15.5K bytes - Click Count (0) -
cmd/metacache-bucket_test.go
package cmd import ( "fmt" "testing" ) func Benchmark_bucketMetacache_findCache(b *testing.B) { bm := newBucketMetacache("", false) const elements = 50000 const paths = 100 if elements%paths != 0 { b.Fatal("elements must be divisible by the number of paths") } var pathNames [paths]string for i := range pathNames[:] { pathNames[i] = fmt.Sprintf("prefix/%d", i)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 1.8K bytes - Click Count (0) -
cmd/bucket-lifecycle-audit.go
) //go:generate stringer -type lcEventSrc -trimprefix lcEventSrc_ $GOFILE type lcEventSrc uint8 //nolint:staticcheck,revive // Underscores are used here to indicate where common prefix ends and the enumeration name begins const ( lcEventSrc_None lcEventSrc = iota lcEventSrc_Heal lcEventSrc_Scanner lcEventSrc_Decom lcEventSrc_Rebal lcEventSrc_s3HeadObject lcEventSrc_s3GetObject lcEventSrc_s3ListObjects lcEventSrc_s3PutObject
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Mar 30 00:56:02 GMT 2025 - 2.6K bytes - Click Count (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/ide/AndroidStudioProvisioningPlugin.kt
// Android Studio Narwhal 3 | 2025.1.3 // Find all references here https://developer.android.com/studio/archive // Update verification-metadata.xml const val DEFAULT_ANDROID_STUDIO_VERSION = "2025.1.3.7" const val UNPACK_ANDROID_STUDIO_TASK_NAME = "unpackAndroidStudio" const val ANDROID_STUDIO_INSTALL_PATH = "android-studio" private fun determineExtension(version: String): String {
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Sep 19 16:20:44 GMT 2025 - 4.4K bytes - Click Count (0)