- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 321 for errs (0.19 sec)
-
internal/event/config_test.go
</QueueConfiguration>`) queue3 := &Queue{} if err := xml.Unmarshal(data, queue3); err != nil { panic(err) } targetList1 := NewTargetList(context.Background()) targetList2 := NewTargetList(context.Background()) if err := targetList2.Add(&ExampleTarget{TargetID{"1", "webhook"}, false, false}); err != nil { panic(err) } testCases := []struct { queue *Queue
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Dec 05 10:16:33 UTC 2023 - 29K bytes - Viewed (0) -
internal/kms/errors.go
Err: "failed to create KMS key", Cause: err, } } func errKeyDeletionFailed(err error) Error { return Error{ Code: http.StatusInternalServerError, APICode: "kms:KeyDeletionFailed", Err: "failed to delete KMS key", Cause: err, } } func errListingKeysFailed(err error) Error { return Error{ Code: http.StatusInternalServerError,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jul 16 14:03:03 UTC 2024 - 3.6K bytes - Viewed (0) -
cmd/admin-handlers_test.go
func initTestErasureObjLayer(ctx context.Context) (ObjectLayer, []string, error) { erasureDirs, err := getRandomDisks(16) if err != nil { return nil, nil, err } endpoints := mustGetPoolEndpoints(0, erasureDirs...) globalPolicySys = NewPolicySys() objLayer, err := newErasureServerPools(ctx, endpoints) if err != nil { return nil, nil, err } // Make objLayer available to all internal services via globalObjectAPI.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jul 24 10:24:01 UTC 2024 - 13.9K bytes - Viewed (0) -
src/archive/zip/example_test.go
} for _, file := range files { f, err := w.Create(file.Name) if err != nil { log.Fatal(err) } _, err = f.Write([]byte(file.Body)) if err != nil { log.Fatal(err) } } // Make sure to check the error on Close. err := w.Close() if err != nil { log.Fatal(err) } } func ExampleReader() { // Open a zip archive for reading. r, err := zip.OpenReader("testdata/readme.zip")
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Jan 27 00:22:03 UTC 2016 - 2K bytes - Viewed (0) -
internal/event/errors.go
type ErrUnknownRegion struct { Region string } func (err ErrUnknownRegion) Error() string { return fmt.Sprintf("unknown region '%v'", err.Region) } // ErrARNNotFound - ARN not found error. type ErrARNNotFound struct { ARN ARN } func (err ErrARNNotFound) Error() string { return fmt.Sprintf("ARN '%v' not found", err.ARN) } // ErrInvalidARN - invalid ARN error.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 4.1K bytes - Viewed (0) -
internal/config/identity/openid/openid.go
pCfg, ok := r.arnProviderCfgsMap[arnVal] if ok { user, err := pCfg.provider.LookupUser(userid) if err != nil && err != provider.ErrAccessTokenExpired { return user, err } if err == provider.ErrAccessTokenExpired { if err = pCfg.provider.LoginWithClientID(pCfg.ClientID, pCfg.ClientSecret); err != nil { return user, err } user, err = pCfg.provider.LookupUser(userid) } return user, err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jul 10 20:16:44 UTC 2024 - 16.6K bytes - Viewed (0) -
internal/grid/types.go
} } for zb0002 > 0 { var za0001 string var za0002 string zb0002-- za0001, bts, err = msgp.ReadStringBytes(bts) if err != nil { err = msgp.WrapError(err, "Values") return } za0002, bts, err = msgp.ReadStringBytes(bts) if err != nil { err = msgp.WrapError(err, "Values", za0001) return } dst[za0001] = za0002 } *m = dst return bts, nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 15.5K bytes - Viewed (0) -
internal/ioutil/read_file.go
// A successful call returns err == nil, not err == EOF. // Because ReadFile reads the whole file, it does not treat an EOF from Read // as an error to be reported. func ReadFileWithFileInfo(name string) ([]byte, fs.FileInfo, error) { f, err := OsOpenFile(name, readMode, 0o666) if err != nil { return nil, nil, err } defer f.Close() st, err := f.Stat() if err != nil { return nil, nil, err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Dec 09 18:17:51 UTC 2023 - 2.3K bytes - Viewed (0) -
cmd/untar.go
switch f := detect(bf); f { case formatGzip: gz, err := gzip.NewReader(bf) if err != nil { return err } defer gz.Close() r = gz case formatS2: r = s2.NewReader(bf) case formatZstd: // Limit to 16 MiB per stream. dec, err := zstd.NewReader(bf, zstd.WithDecoderMaxWindow(16<<20)) if err != nil { return err } defer dec.Close() r = dec case formatBZ2:
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Sep 22 00:33:43 UTC 2024 - 6K bytes - Viewed (2) -
istioctl/pkg/describe/describe.go
} podName, ns := handlers.InferPodInfo(args[0], ctx.NamespaceOrDefault("")) client, err := ctx.CLIClient() if err != nil { return err } pod, err := client.Kube().CoreV1().Pods(ns).Get(context.TODO(), podName, metav1.GetOptions{}) if err != nil { return err } writer := cmd.OutOrStdout() podLabels := klabels.Set(pod.ObjectMeta.Labels)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 50.6K bytes - Viewed (0)