- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 81 for zeros (0.14 sec)
-
cmd/notification.go
Err error // Error returned by the remote peer for an rpc call } // A NotificationGroup is a collection of goroutines working on subtasks that are part of // the same overall task. // // A zero NotificationGroup is valid and does not cancel on error. type NotificationGroup struct { workers *workers.Workers errs []NotificationPeerErr retryCount int }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 12 18:13:36 GMT 2024 - 44.5K bytes - Viewed (0) -
internal/ioutil/ioutil.go
c := make(chan ioret[V], 1) go func() { v, err := work(ctx) c <- ioret[V]{val: v, err: err} }() select { case v := <-c: return v.val, v.err case <-ctx.Done(): var zero V return zero, ctx.Err() } } // DeadlineWorker implements the deadline/timeout resiliency pattern. type DeadlineWorker struct { timeout time.Duration }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 19 11:26:59 GMT 2024 - 10.3K bytes - Viewed (0) -
internal/crypto/key_test.go
i, test := i, test func() { defer recoverTest(i, test.ShouldPass, t) key := GenerateKey(test.ExtKey[:], test.Random) if [32]byte(key) == [32]byte{} { t.Errorf("Test %d: generated key is zero key", i) // check that we generate random and unique key } }() } } var generateIVTests = []struct { Random io.Reader ShouldPass bool }{ {Random: nil, ShouldPass: true}, // 0
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Feb 02 00:13:57 GMT 2024 - 6.8K bytes - Viewed (0) -
cmd/streaming-v4-unsigned.go
if err == io.EOF && size != 0 { err = io.ErrUnexpectedEOF } if err != nil && err != io.EOF { cr.err = err return n, cr.err } // If the chunk size is zero we return io.EOF. As specified by AWS, // only the last chunk is zero-sized. if len(cr.buffer) == 0 { if cr.debug { fmt.Println("EOF") } if cr.trailers != nil { err = cr.readTrailers() if cr.debug {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat May 06 02:53:12 GMT 2023 - 6.1K bytes - Viewed (1) -
cmd/admin-handlers.go
if publicKey == nil { w.Write([]byte{1}) w.Write(key[:]) } stream, err := sio.AES_256_GCM.Stream(key[:]) if err != nil { bugLogIf(ctx, err) return } // Zero nonce, we only use each key once, and 32 bytes is plenty. nonce := make([]byte, stream.NonceSize()) encw := stream.EncryptWriter(w, nonce, nil) defer encw.Close()
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Apr 29 17:39:04 GMT 2024 - 97.8K bytes - Viewed (2) -
cmd/erasure-metadata-utils.go
} // Return shuffled partsMetadata depending on fi.Distribution. // additional validation is attempted and invalid metadata is // automatically skipped only when fi.ModTime is non-zero // indicating that this is called during read-phase func shuffleDisksAndPartsMetadata(disks []StorageAPI, partsMetadata []FileInfo, fi FileInfo) (shuffledDisks []StorageAPI, shuffledPartsMetadata []FileInfo) {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Apr 23 17:15:52 GMT 2024 - 11.3K bytes - Viewed (0) -
internal/bucket/lifecycle/expiration_test.go
"fmt" "testing" ) // appropriate errors on validation func TestInvalidExpiration(t *testing.T) { testCases := []struct { inputXML string expectedErr error }{ { // Expiration with zero days inputXML: ` <Expiration> <Days>0</Days> </Expiration>`, expectedErr: errLifecycleInvalidDays, }, { // Expiration with invalid date
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Feb 21 20:28:34 GMT 2024 - 4.1K bytes - Viewed (0) -
internal/crypto/header_test.go
} if err != nil && key != zeroKey { t.Errorf("Test %d: parsing failed and client key is not zero key", i) } if err == nil && key == zeroKey { t.Errorf("Test %d: parsed client key is zero key", i) } } } var ssecCopyParseTests = []struct { Header http.Header ExpectedErr error }{ { Header: http.Header{
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Jul 13 14:52:15 GMT 2022 - 21.4K bytes - Viewed (0) -
cmd/metrics-v3-types.go
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Apr 30 15:05:22 GMT 2024 - 14.7K bytes - Viewed (0) -
cmd/batch-job-common-types.go
func (b BatchJobSnowball) Validate() error { if *b.Batch <= 0 { return BatchJobYamlErr{ line: b.line, col: b.col, msg: "batch number should be non positive zero", } } _, err := humanize.ParseBytes(*b.SmallerThan) if err != nil { return BatchJobYamlErr{ line: b.line, col: b.col, msg: err.Error(), } } return nil }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Feb 01 21:53:26 GMT 2024 - 7.9K bytes - Viewed (0)