- Sort Score
- Result 10 results
- Languages All
Results 721 - 730 of 943 for errC (0.04 sec)
-
internal/etag/reader.go
func (r *Reader) Read(p []byte) (int, error) { n, err := r.src.Read(p) r.readN += int64(n) r.md5.Write(p[:n]) if err == io.EOF && len(r.checksum) != 0 { if etag := r.ETag(); !Equal(etag, r.checksum) { return n, VerifyError{ Expected: r.checksum, Computed: etag, } } } return n, err } // ETag returns the ETag of all the content read
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 4.8K bytes - Viewed (0) -
internal/s3select/sql/stringfuncs_contrib_test.go
{"", 999, 999, "", nil}, {"测试abc", 1, 1, "测", nil}, {"测试abc", 5, 5, "c", nil}, } for i, tc := range evalCases { res, err := evalSQLSubstring(tc.s, tc.startIdx, tc.length) if res != tc.resExpected || err != tc.errExpected { t.Errorf("Eval Case %d failed: %v %v", i, res, err) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 1.2K bytes - Viewed (0) -
internal/config/config.go
continue } dynamic, err := c.SetKVS(text, DefaultKVS) if err != nil { return false, err } dynOnly = dynOnly && dynamic n += len(text) } if err := scanner.Err(); err != nil { return false, err } return dynOnly, nil } // RedactSensitiveInfo - removes sensitive information // like urls and credentials from the configuration
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 03 18:23:41 UTC 2024 - 37.7K bytes - Viewed (0) -
internal/disk/stat_openbsd.go
import ( "errors" "fmt" "syscall" ) // GetInfo returns total and free bytes available in a directory, e.g. `/`. func GetInfo(path string, _ bool) (info Info, err error) { s := syscall.Statfs_t{} err = syscall.Statfs(path, &s) if err != nil { return Info{}, err } reservedBlocks := uint64(s.F_bfree) - uint64(s.F_bavail) info = Info{ Total: uint64(s.F_bsize) * (uint64(s.F_blocks) - reservedBlocks),
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 1.8K bytes - Viewed (0) -
soft_delete.go
} return json.Marshal(nil) } func (n *DeletedAt) UnmarshalJSON(b []byte) error { if string(b) == "null" { n.Valid = false return nil } err := json.Unmarshal(b, &n.Time) if err == nil { n.Valid = true } return err } func (DeletedAt) QueryClauses(f *schema.Field) []clause.Interface { return []clause.Interface{SoftDeleteQueryClause{Field: f, ZeroValue: parseZeroValueTag(f)}} }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Feb 01 06:40:55 UTC 2023 - 4.5K bytes - Viewed (0) -
cmd/signature-v4_test.go
ctx, cancel := context.WithCancel(context.Background()) defer cancel() obj, fsDir, err := prepareFS(ctx) if err != nil { t.Fatal(err) } defer os.RemoveAll(fsDir) if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil { t.Fatal(err) } // sha256 hash of "payload" payloadSHA256 := "239f59ed55e737c77147cf55ad0c1b030b6d7ee748a7426952f9b852d5a935e5"
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 10.5K bytes - Viewed (0) -
internal/grid/README.md
conn := manager.Connection(host).Subroute("asubroute") payload := []byte("request") stream, err := conn.NewStream(ctx, grid.HandlerDiskInfo, payload) if err != nil { return err } // Read results from the stream err = stream.Results(func(result []byte) error { fmt.Println("Got result", string(result)) // Return the response for reuse
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.4K bytes - Viewed (0) -
cmd/batch-expire_test.go
retry: attempts: 10 # number of retries for the job before giving up delay: 500ms # least amount of delay between each retry ` var job BatchJobRequest err := yaml.Unmarshal([]byte(expireYaml), &job) if err != nil { t.Fatal("Failed to parse batch-job-expire yaml", err) } if !slices.Equal(job.Expire.Prefix.F(), []string{"myprefix"}) { t.Fatal("Failed to parse batch-job-expire yaml") } multiPrefixExpireYaml := `
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 01 12:53:30 UTC 2024 - 5.5K bytes - Viewed (0) -
cmd/consolelogger.go
func (sys *HTTPConsoleLoggerSys) SetNodeName(nodeName string) { if !globalIsDistErasure { sys.nodeName = "" return } host, err := xnet.ParseHost(globalLocalNodeName) if err != nil { logger.FatalIf(err, "Unable to start console logging subsystem") } sys.nodeName = host.Name } // HasLogListeners returns true if console log listeners are registered // for this node or peers
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.5K bytes - Viewed (0) -
internal/s3select/sql/stringfuncs_test.go
{`a%__%\`, `a?%?_?_?%\`, '?', true, nil}, } for i, tc := range evalCases { // fmt.Println("Case:", i) res, err := evalSQLLike(tc.iText, tc.iPat, tc.iEsc) if res != tc.matchExpected || err != tc.errExpected { t.Errorf("Eval Case %d failed: %v %v", i, res, err) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 3.1K bytes - Viewed (0)