- Sort Score
- Result 10 results
- Languages All
Results 471 - 480 of 942 for errC (0.08 sec)
-
internal/etag/etag_test.go
} func TestEqual(t *testing.T) { for i, test := range equalTests { A, err := Parse(test.A) if err != nil { t.Fatalf("Test %d: %v", i, err) } B, err := Parse(test.B) if err != nil { t.Fatalf("Test %d: %v", i, err) } if equal := Equal(A, B); equal != test.Equal { t.Fatalf("Test %d: got %v - want %v", i, equal, test.Equal) } } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 18 17:00:54 UTC 2023 - 12.6K bytes - Viewed (0) -
tests/named_argument_test.go
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Dec 21 11:50:00 UTC 2021 - 2.7K bytes - Viewed (0) -
docs/debugging/s3-check-md5/main.go
} } u, err := url.Parse(endpoint) if err != nil { log.Fatalln(err) } secure := strings.EqualFold(u.Scheme, "https") transport, err := minio.DefaultTransport(secure) if err != nil { log.Fatalln(err) } if insecure { // skip TLS verification transport.TLSClientConfig.InsecureSkipVerify = true } s3Client, err := minio.New(u.Host, &minio.Options{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Feb 17 01:15:57 UTC 2024 - 6.3K bytes - Viewed (0) -
internal/disk/stat_linux_32bit.go
} return fsTypeString } // 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 := s.Bfree - s.Bavail info = Info{ Total: uint64(s.Frsize) * (s.Blocks - reservedBlocks), Free: uint64(s.Frsize) * s.Bavail,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 2.6K bytes - Viewed (0) -
internal/store/store.go
retryTicker := time.NewTicker(retryInterval) defer retryTicker.Stop() send := func(key Key) bool { for { err := target.SendFromStore(key) if err == nil { break } logger( context.Background(), fmt.Errorf("unable to send log entry to '%s' err '%w'", target.Name(), err), target.Name(), ) select { // Retrying after 3secs back-off case <-retryTicker.C:
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 4.2K bytes - Viewed (0) -
cmd/xl-storage-format-utils.go
var versions []FileInfo var err error if buf, _, e := isIndexedMetaV2(xlMetaBuf); e != nil { return FileInfoVersions{}, e } else if buf != nil { versions, err = buf.ListVersions(volume, path, allParts) } else { var xlMeta xlMetaV2 if err := xlMeta.LoadOrConvert(xlMetaBuf); err != nil { return FileInfoVersions{}, err } versions, err = xlMeta.ListVersions(volume, path, allParts) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 5.5K bytes - Viewed (0) -
internal/mountinfo/mountinfo_linux.go
} // Check cross device is an internal function. func checkCrossDevice(absPaths []string, mountsPath string) error { mounts, err := readProcMounts(mountsPath) if err != nil { return err } for _, path := range absPaths { if err := mounts.checkCrossMounts(path); err != nil { return err } } return nil } // CheckCrossDevice - check if given path has any sub-mounts in the input mounts list.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 4.7K bytes - Viewed (0) -
internal/disk/directio_unix.go
} // DisableDirectIO - disables directio mode. func DisableDirectIO(f *os.File) error { fd := f.Fd() flag, err := unix.FcntlInt(fd, unix.F_GETFL, 0) if err != nil { return err } flag &= ^(syscall.O_DIRECT) _, err = unix.FcntlInt(fd, unix.F_SETFL, flag) return err } // AlignedBlock - pass through to directio implementation. func AlignedBlock(blockSize int) []byte {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jun 17 14:31:36 UTC 2023 - 1.6K bytes - Viewed (0) -
cmd/batch-job-common-types_test.go
err := test.sizeFilter.Validate() if err != nil { gotErr := err.(BatchJobYamlErr) testErr := test.err.(BatchJobYamlErr) if gotErr.message() != testErr.message() { t.Fatalf("Expected %v but got %v", test.err, err) } } if err == nil && test.err != nil { t.Fatalf("Expected %v but got nil", test.err) } }) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jan 08 23:22:28 UTC 2024 - 3.3K bytes - Viewed (0) -
internal/bucket/replication/rule.go
if err := r.validateID(); err != nil { return err } if err := r.validateStatus(); err != nil { return err } if err := r.validateFilter(); err != nil { return err } if err := r.DeleteMarkerReplication.Validate(); err != nil { return err } if err := r.DeleteReplication.Validate(); err != nil { return err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jan 24 23:22:20 UTC 2022 - 8.3K bytes - Viewed (0)