- Sort Score
- Result 10 results
- Languages All
Results 661 - 670 of 1,069 for Err (0.02 sec)
-
internal/ioutil/ioutil.go
return w.WriteCloser.Write(buf) }) w.err = err return n, err } // Close closer interface to close the underlying closer func (w *DeadlineWriter) Close() error { err := w.WriteCloser.Close() w.err = err if err == nil { w.err = errors.New("we are closed") // Avoids any reuse on the Write() side. } return err } // LimitWriter implements io.WriteCloser. //
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 26 12:55:01 UTC 2024 - 10.9K bytes - Viewed (0) -
cmd/speedtest.go
} localPaths := globalEndpoints.LocalDisksPaths() var ignoredPaths []string paths := func() (tmpPaths []string) { for _, lp := range localPaths { if _, err := Lstat(pathJoin(lp, minioMetaBucket, formatConfigFile)); err == nil { tmpPaths = append(tmpPaths, pathJoin(lp, minioMetaTmpBucket)) } else { // Use dperf on only formatted drives. ignoredPaths = append(ignoredPaths, lp) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon May 06 09:45:10 UTC 2024 - 9.2K bytes - Viewed (0) -
internal/kms/config_test.go
) func TestIsPresent(t *testing.T) { for i, test := range isPresentTests { os.Clearenv() for k, v := range test.Env { os.Setenv(k, v) } ok, err := IsPresent() if err != nil && !test.ShouldFail { t.Fatalf("Test %d: %v", i, err) } if err == nil && test.ShouldFail { t.Fatalf("Test %d: should have failed but succeeded", i) } if !test.ShouldFail && ok != test.IsPresent {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 2.7K bytes - Viewed (0) -
internal/bucket/lifecycle/tag.go
var keyAlreadyParsed, valueAlreadyParsed bool for { // Read tokens from the XML document in a stream. t, err := d.Token() if err != nil { if err == io.EOF { break } return err } if se, ok := t.(xml.StartElement); ok { var s string if err = d.DecodeElement(&s, &se); err != nil { return err } switch se.Name.Local {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Mar 06 16:56:10 UTC 2023 - 2.4K bytes - Viewed (0) -
tests/scan_test.go
rows, err := DB.Table("users").Where("name = ? or name = ?", user2.Name, user3.Name).Select("name, age").Rows() if err != nil { t.Errorf("No error should happen, got %v", err) } type Result struct { Name string Age int } var results []Result for rows.Next() { var result Result if err := DB.ScanRows(rows, &result); err != nil {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:57:36 UTC 2024 - 10.9K bytes - Viewed (0) -
istioctl/pkg/util/configdump/bootstrap.go
func (w *Wrapper) GetBootstrapConfigDump() (*admin.BootstrapConfigDump, error) { bootstrapDumpAny, err := w.getSection(bootstrap) if err != nil { return nil, err } bootstrapDump := &admin.BootstrapConfigDump{} err = bootstrapDumpAny.UnmarshalTo(bootstrapDump) if err != nil { return nil, err } return bootstrapDump, nil
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Nov 03 08:41:32 UTC 2022 - 1.1K bytes - Viewed (0) -
src/archive/zip/reader_test.go
// log.Fatal(err) // } // } // // func makeZip(name string, r io.Reader) []byte { // var buf bytes.Buffer // w := zip.NewWriter(&buf) // wf, err := w.Create(name) // if err != nil { // log.Fatal(err) // } // if _, err = io.Copy(wf, r); err != nil { // log.Fatal(err) // } // if err := w.Close(); err != nil { // log.Fatal(err) // } // return buf.Bytes() // } //
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 55.6K bytes - Viewed (0) -
cmd/server-startup-msg_test.go
func TestPrintServerCommonMessage(t *testing.T) { 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) } apiEndpoints := []string{"http://127.0.0.1:9000"} printServerCommonMsg(apiEndpoints) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 12 20:51:54 UTC 2024 - 3K bytes - Viewed (0) -
tests/multi_primary_keys_test.go
DB.Migrator().DropTable(&Label{}, &Book{}) if err := DB.AutoMigrate(&Label{}, &Book{}); err != nil { t.Fatalf("failed to migrate, got %v", err) } book := Book{ Name: "my book", Labels: []Label{ {Name: "region", Value: "emea"}, }, } DB.Create(&book) var result Book if err := DB.Preload("Labels").First(&result, book.ID).Error; err != nil {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 12.8K bytes - Viewed (0) -
cmd/erasure-sets_test.go
_, _, err := waitForFormatErasure(true, endpoints, 1, 0, 16, "") if err != errInvalidArgument { t.Fatalf("Expecting error, got %s", err) } _, _, err = waitForFormatErasure(true, nil, 1, 1, 16, "") if err != errInvalidArgument { t.Fatalf("Expecting error, got %s", err) } // Initializes all erasure disks
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Feb 12 07:21:56 UTC 2024 - 6.9K bytes - Viewed (0)