Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for Nash (0.21 sec)

  1. cmd/server-main_test.go

    	for _, testcase := range []struct {
    		config      string
    		expectedErr bool
    		hash        string
    	}{
    		{
    			config:      "testdata/config/1.yaml",
    			expectedErr: false,
    			hash:        "hash:02bf70285dc71f76",
    		},
    		{
    			config:      "testdata/config/2.yaml",
    			expectedErr: false,
    			hash:        "hash:676d2da00f71f205",
    		},
    		{
    			config:      "testdata/config/invalid.yaml",
    			expectedErr: true,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Dec 07 09:33:56 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. cmd/format-erasure_test.go

    	}
    
    	formatCountMap := make(map[string]int)
    	for _, hash := range formatHashes {
    		if hash == "" {
    			continue
    		}
    		formatCountMap[hash]++
    	}
    
    	maxHash := ""
    	maxCount := 0
    	for hash, count := range formatCountMap {
    		if count > maxCount {
    			maxCount = count
    			maxHash = hash
    		}
    	}
    
    	if maxCount < len(formats)/2 {
    		return nil, errErasureReadQuorum
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  3. cmd/erasure-metadata.go

    			h.Reset()
    		}
    	}
    
    	metaHashCountMap := make(map[string]int)
    	for _, hash := range metaHashes {
    		if hash == "" {
    			continue
    		}
    		metaHashCountMap[hash]++
    	}
    
    	maxHash := ""
    	maxCount := 0
    	for hash, count := range metaHashCountMap {
    		if count > maxCount {
    			maxCount = count
    			maxHash = hash
    		}
    	}
    
    	if maxCount < quorum {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  4. cmd/object-api-utils.go

    // md5sum
    type SealMD5CurrFn func([]byte) []byte
    
    // PutObjReader is a type that wraps sio.EncryptReader and
    // underlying hash.Reader in a struct
    type PutObjReader struct {
    	*hash.Reader              // actual data stream
    	rawReader    *hash.Reader // original data stream
    	sealMD5Fn    SealMD5CurrFn
    }
    
    // Size returns the absolute number of bytes the Reader
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  5. docs/debugging/inspect/decrypt-v1.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package main
    
    import (
    	"encoding/binary"
    	"encoding/hex"
    	"fmt"
    	"hash/crc32"
    	"io"
    
    	"github.com/secure-io/sio-go"
    )
    
    func extractInspectV1(keyHex string, r io.Reader, w io.Writer, okMsg string) error {
    	id, err := hex.DecodeString(keyHex[:8])
    	if err != nil {
    		return err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  6. lib/time/mkzip.go

    // external zip tool is used or the ordering of file names in a directory
    // or the current time.
    package main
    
    import (
    	"archive/zip"
    	"bytes"
    	"flag"
    	"fmt"
    	"hash/crc32"
    	"io/fs"
    	"log"
    	"os"
    	"path/filepath"
    	"strings"
    )
    
    func usage() {
    	fmt.Fprintf(os.Stderr, "usage: go run mkzip.go zoneinfo.zip\n")
    	os.Exit(2)
    }
    
    func main() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  7. cmd/erasure-healing-common_test.go

    			t.Errorf("Drive erroneously filtered, driveIndex: %d", diskIndex)
    		}
    	}
    	partsMetadata[1] = partsMetadataBackup // Revert before going to the next test
    
    	// Test 4: key = disk index, value = part name with hash mismatch
    	diskFailures := make(map[int]string)
    	diskFailures[0] = "part.1"
    	diskFailures[3] = "part.1"
    	diskFailures[15] = "part.1"
    
    	for diskIndex, partName := range diskFailures {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 23K bytes
    - Viewed (1)
  8. internal/event/target/elasticsearch.go

    		return
    	}
    
    	switch {
    	case majorVersion <= 6:
    		res = ESSUnsupported
    	default:
    		res = ESSSupported
    	}
    	return
    }
    
    // magic HH-256 key as HH-256 hash of the first 100 decimals of π as utf-8 string with a zero key.
    var magicHighwayHash256Key = []byte("\x4b\xe7\x34\xfa\x8e\x23\x8a\xcd\x26\x3e\x83\xe6\xbb\x96\x85\x52\x04\x0f\x93\x5d\xa3\x9f\x44\x14\x97\xe0\x9d\x13\x22\xde\x36\xa0")
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 15K bytes
    - Viewed (0)
  9. internal/crypto/key.go

    package crypto
    
    import (
    	"bytes"
    	"context"
    	"crypto/hmac"
    	"crypto/rand"
    	"encoding/binary"
    	"errors"
    	"io"
    	"path"
    
    	"github.com/minio/minio/internal/fips"
    	"github.com/minio/minio/internal/hash/sha256"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/sio"
    )
    
    // ObjectKey is a 256 bit secret key used to encrypt the object.
    // It must never be stored in plaintext.
    type ObjectKey [32]byte
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 19 20:28:10 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  10. cmd/object-api-datatypes.go

    package cmd
    
    import (
    	"io"
    	"math"
    	"net/http"
    	"time"
    
    	"github.com/dustin/go-humanize"
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio/internal/bucket/replication"
    	"github.com/minio/minio/internal/hash"
    )
    
    //go:generate msgp -file $GOFILE -io=false -tests=false -unexported=false
    
    // BackendType - represents different backend types.
    type BackendType int
    
    // Enum for different backend types.
    const (
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.8K bytes
    - Viewed (0)
Back to top