- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for latencyBuckets (0.13 seconds)
-
internal/kms/kms.go
} // Metrics returns a current snapshot of the KMS metrics. func (k *KMS) Metrics(ctx context.Context) (*Metrics, error) { latency := make(map[time.Duration]uint64, len(k.latencyBuckets)) for i, b := range k.latencyBuckets { latency[b] = k.latency[i].Load() } return &Metrics{ ReqOK: k.reqOK.Load(), ReqErr: k.reqErr.Load(), ReqFail: k.reqFail.Load(), Latency: latency, }, nil
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Apr 24 15:33:57 GMT 2025 - 11.4K bytes - Click Count (0) -
internal/kms/stub.go
StubCreatedBy = "MinIO" ) // NewStub returns a stub of KMS for testing func NewStub(defaultKeyName string) *KMS { return &KMS{ Type: Builtin, DefaultKey: defaultKeyName, latencyBuckets: defaultLatencyBuckets, latency: make([]atomic.Uint64, len(defaultLatencyBuckets)), conn: &StubKMS{ KeyNames: []string{defaultKeyName}, }, } } // StubKMS is a KMS implementation for tests
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Aug 18 06:43:03 GMT 2024 - 3.6K bytes - Click Count (0) -
internal/kms/config.go
DefaultKey: env.Get(EnvKMSDefaultKey, ""), conn: &kmsConn{ enclave: env.Get(EnvKMSEnclave, ""), defaultKey: env.Get(EnvKMSDefaultKey, ""), client: client, }, latencyBuckets: defaultLatencyBuckets, latency: make([]atomic.Uint64, len(defaultLatencyBuckets)), }, nil case lookup(EnvKESEndpoint): rawEndpoint := env.Get(EnvKESEndpoint, "") if rawEndpoint == "" {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 15K bytes - Click Count (0) -
internal/kms/secret-key.go
return nil, errors.New("kms: invalid key length " + strconv.Itoa(len(key))) } return &KMS{ Type: Builtin, DefaultKey: keyID, conn: secretKey{ keyID: keyID, key: key, }, latencyBuckets: defaultLatencyBuckets, latency: make([]atomic.Uint64, len(defaultLatencyBuckets)), }, nil } // secretKey is a KMS implementation that derives new DEKs // from a single key. type secretKey struct {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Apr 21 16:23:51 GMT 2025 - 8.4K bytes - Click Count (0)