- Sort Score
- Result 10 results
- Languages All
Results 401 - 410 of 1,124 for Nil (0.04 sec)
-
internal/event/config.go
- if err := xml.NewDecoder(reader).Decode(&config); err != nil {
- return nil, err
- }
- if err := config.Validate(region, targetList); err != nil {
- return nil, err
- }
- config.SetRegion(region)
- // If xml namespace is empty, set a default value before returning.
- if config.XMLNS == "" {
- config.XMLNS = "http://s3.amazonaws.com/doc/2006-03-01/"
- }
- return &config, nil
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Nov 16 17:28:29 UTC 2021 - 8.4K bytes - Viewed (0) -
cmd/admin-handlers-pools.go
- if err := z.Decommission(r.Context(), poolIndices...); err != nil {
- writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
- return
- }
- }
- }
- func (a adminAPIHandlers) CancelDecommission(w http.ResponseWriter, r *http.Request) {
- ctx := r.Context()
- objectAPI, _ := validateAdminReq(ctx, w, r, policy.DecommissionAdminAction)
- if objectAPI == nil {
- return
- }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jun 28 00:22:30 UTC 2024 - 10.9K bytes - Viewed (0) -
cni/pkg/repair/netns.go
- var err error
- res, err = f()
- return err
- })
- if err != nil {
- return res, fmt.Errorf("in network namespace %v: %v", ns, err)
- }
- return res, nil
- }
- func checkInterfacesForMatchingAddr(targetAddr net.IP) (match bool, err error) {
- var interfaces []net.Interface
- if interfaces, err = net.Interfaces(); err != nil {
- return false, fmt.Errorf("failed to get interfaces")
- }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 28 19:12:54 UTC 2024 - 4.3K bytes - Viewed (0) -
src/cmd/addr2line/addr2line_test.go
- out, err := cmd.CombinedOutput()
- if err != nil {
- t.Fatalf("%v: %v\n%s", cmd, err, string(out))
- }
- syms := make(map[string]string)
- scanner := bufio.NewScanner(bytes.NewReader(out))
- for scanner.Scan() {
- f := strings.Fields(scanner.Text())
- if len(f) < 3 {
- continue
- }
- syms[f[2]] = f[0]
- }
- if err := scanner.Err(); err != nil {
- t.Fatalf("error reading symbols: %v", err)
- }
- return syms
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 06 13:23:48 UTC 2024 - 3.2K bytes - Viewed (0) -
buildscripts/heal-manual.go
- }
- start, _, err := madmClnt.Heal(context.Background(), "healing-rewrite-bucket", "", opts, "", false, false)
- if err != nil {
- log.Fatalln(err)
- }
- fmt.Println("Healstart sequence ===")
- enc := json.NewEncoder(os.Stdout)
- if err = enc.Encode(&start); err != nil {
- log.Fatalln(err)
- }
- fmt.Println()
- for {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Feb 27 09:47:58 UTC 2024 - 2.3K bytes - Viewed (0) -
cmd/xl-storage-format-utils.go
- for i := range fivs.Versions {
- fivs.Versions[i].NumVersions = n
- }
- return fivs, nil
- }
- func getAllFileInfoVersions(xlMetaBuf []byte, volume, path string, allParts bool) (FileInfoVersions, error) {
- 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 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 5.5K bytes - Viewed (0) -
docs/sts/ldap.go
- if err != nil {
- log.Fatalf("Error initializing LDAP Identity: %v", err)
- }
- stsEndpointURL, err := url.Parse(stsEndpoint)
- if err != nil {
- log.Fatalf("Error parsing sts endpoint: %v", err)
- }
- opts := &minio.Options{
- Creds: li,
- Secure: stsEndpointURL.Scheme == "https",
- }
- v, err := li.Get()
- if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 07 12:59:47 UTC 2024 - 4K bytes - Viewed (0) -
cmd/bootstrap-peer-server_gen_test.go
- v := ServerSystemConfig{}
- bts, err := v.MarshalMsg(nil)
- if err != nil {
- t.Fatal(err)
- }
- left, err := v.UnmarshalMsg(bts)
- if err != nil {
- t.Fatal(err)
- }
- if len(left) > 0 {
- t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
- }
- left, err = msgp.Skip(bts)
- if err != nil {
- t.Fatal(err)
- }
- if len(left) > 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jan 24 21:36:44 UTC 2024 - 2.4K bytes - Viewed (0) -
cmd/bucket-metadata_gen_test.go
- v := BucketMetadata{}
- bts, err := v.MarshalMsg(nil)
- if err != nil {
- t.Fatal(err)
- }
- left, err := v.UnmarshalMsg(bts)
- if err != nil {
- t.Fatal(err)
- }
- if len(left) > 0 {
- t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
- }
- left, err = msgp.Skip(bts)
- if err != nil {
- t.Fatal(err)
- }
- if len(left) > 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 2.3K bytes - Viewed (0) -
tests/count_test.go
- t.Errorf(fmt.Sprintf("Count should work, but got err %v", err))
- }
- if count1 != 1 {
- t.Errorf("Count with group should be 1, but got count: %v", count1)
- }
- var count2 int64
- if err := DB.Model(&Company{}).Where("name in ?", []string{"company_count_group_b", "company_count_group_c"}).Group("name").Count(&count2).Error; err != nil {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 6.9K bytes - Viewed (0)