- Sort Score
- Result 10 results
- Languages All
Results 451 - 460 of 1,002 for Struct (0.04 sec)
-
cmd/bucket-handlers_test.go
func testGetBucketLocationHandler(obj ObjectLayer, instanceType, bucketName string, apiRouter http.Handler, credentials auth.Credentials, t *testing.T, ) { // test cases with sample input and expected output. testCases := []struct { bucketName string accessKey string secretKey string // expected Response. expectedRespStatus int locationResponse []byte errorResponse APIErrorResponse shouldPass bool }{
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 39.8K bytes - Viewed (0) -
cmd/storagemetric_string.go
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[storageMetricMakeVolBulk-0] _ = x[storageMetricMakeVol-1] _ = x[storageMetricListVols-2] _ = x[storageMetricStatVol-3] _ = x[storageMetricDeleteVol-4] _ = x[storageMetricWalkDir-5]
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Aug 12 08:38:15 UTC 2024 - 2.2K bytes - Viewed (0) -
internal/s3select/jstream/errors.go
ErrMaxDepth = DecoderError{msg: "maximum recursion depth exceeded"} ) type errPos [2]int // line number, byte offset where error occurred // DecoderError contains a detailed decoding error. type DecoderError struct { msg string // description of error context string // additional error context pos errPos atChar byte readerErr error // underlying reader error, if any }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 1.3K bytes - Viewed (0) -
cmd/api-errors_test.go
package cmd import ( "errors" "testing" "github.com/minio/minio/internal/crypto" "github.com/minio/minio/internal/hash" ) var toAPIErrorTests = []struct { err error errCode APIErrorCode }{ {err: hash.BadDigest{}, errCode: ErrBadDigest}, {err: hash.SHA256Mismatch{}, errCode: ErrContentSHA256Mismatch}, {err: IncompleteBody{}, errCode: ErrIncompleteBody},
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 3.4K bytes - Viewed (0) -
cmd/metrics-resource.go
latestDriveStatsMu sync.RWMutex lastDriveStatsRefresh time.Time ) // PeerResourceMetrics represents the resource metrics // retrieved from a peer, along with errors if any type PeerResourceMetrics struct { Metrics map[MetricSubsystem]ResourceMetrics Errors []string } // ResourceMetrics is a map of unique key identifying // a resource metric (e.g. reads_per_sec_{node}_{drive}) // to its dataRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 10 18:57:03 UTC 2025 - 17.2K bytes - Viewed (0) -
cmd/xl-storage-disk-id-check.go
atomic.StoreInt64(&d.lastSuccess, time.Now().UnixNano()) } func (d *diskHealthTracker) isFaulty() bool { return d.status.Load() == diskHealthFaulty } type ( healthDiskCtxKey struct{} healthDiskCtxValue struct { lastSuccess *int64 } ) // logSuccess will update the last successful operation time. func (h *healthDiskCtxValue) logSuccess() { atomic.StoreInt64(h.lastSuccess, time.Now().UnixNano())
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Apr 25 05:41:04 UTC 2025 - 34.5K bytes - Viewed (0) -
cmd/lock-rest-client.go
package cmd import ( "context" "errors" "github.com/minio/minio/internal/dsync" "github.com/minio/minio/internal/grid" ) // lockRESTClient is authenticable lock REST client type lockRESTClient struct { connection *grid.Connection } // IsOnline - returns whether REST client failed to connect or not. func (c *lockRESTClient) IsOnline() bool { return c.connection.State() == grid.StateConnected }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 3.3K bytes - Viewed (0) -
internal/config/identity/openid/jwks.go
import ( "crypto" "crypto/ecdsa" "crypto/ed25519" "crypto/elliptic" "crypto/rsa" "encoding/base64" "errors" "fmt" "math/big" ) // JWKS - https://tools.ietf.org/html/rfc7517 type JWKS struct { Keys []*JWKS `json:"keys,omitempty"` Kty string `json:"kty"` Use string `json:"use,omitempty"` Kid string `json:"kid,omitempty"` Alg string `json:"alg,omitempty"` Crv string `json:"crv,omitempty"`
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Apr 02 23:02:35 UTC 2024 - 3.1K bytes - Viewed (0) -
internal/handlers/proxy_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package handlers import ( "net/http" "testing" ) type headerTest struct { key string // header key val string // header val expected string // expected result } func TestGetScheme(t *testing.T) { headers := []headerTest{ {xForwardedProto, "https", "https"},
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Feb 26 19:25:49 UTC 2025 - 3.9K bytes - Viewed (0) -
cmd/last-minute.go
return "LESS_THAN_1_GiB" case sizeGreaterThan1GiB: return "GREATER_THAN_1_GiB" default: return "unknown" } } // AccElem holds information for calculating an average value type AccElem struct { Total int64 Size int64 N int64 } // Add a duration to a single element. func (a *AccElem) add(dur time.Duration) { if dur < 0 { dur = 0 } a.Total += int64(dur) a.N++ }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Jul 05 17:40:45 UTC 2023 - 4.8K bytes - Viewed (0)