Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 858 for err (0.02 sec)

  1. cmd/batch-rotate.go

    	if err := r.Encryption.Validate(); err != nil {
    		return err
    	}
    
    	for _, tag := range r.Flags.Filter.Tags {
    		if err := tag.Validate(); err != nil {
    			return err
    		}
    	}
    
    	for _, meta := range r.Flags.Filter.Metadata {
    		if err := meta.Validate(); err != nil {
    			return err
    		}
    	}
    
    	return r.Flags.Retry.Validate()
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. cmd/server-main.go

    	return errors.Is(err, errDiskNotFound) ||
    		errors.Is(err, errConfigNotFound) ||
    		errors.Is(err, context.DeadlineExceeded) ||
    		errors.Is(err, errErasureWriteQuorum) ||
    		errors.Is(err, errErasureReadQuorum) ||
    		errors.Is(err, io.ErrUnexpectedEOF) ||
    		errors.As(err, &rquorum) ||
    		errors.As(err, &wquorum) ||
    		isErrObjectNotFound(err) ||
    		isErrBucketNotFound(err) ||
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 35.2K bytes
    - Viewed (3)
  3. internal/event/target/nats.go

    func (target *NATSTarget) Save(eventData event.Event) error {
    	if target.store != nil {
    		_, err := target.store.Put(eventData)
    		return err
    	}
    
    	if err := target.init(); err != nil {
    		return err
    	}
    
    	_, err := target.isActive()
    	if err != nil {
    		return err
    	}
    	return target.send(eventData)
    }
    
    // send - sends an event to the Nats.
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. cmd/os-instrumented.go

    	}
    }
    
    // RemoveAll captures time taken to call the underlying os.RemoveAll
    func RemoveAll(dirPath string) (err error) {
    	defer updateOSMetrics(osMetricRemoveAll, dirPath)(err)
    	return os.RemoveAll(dirPath)
    }
    
    // Mkdir captures time taken to call os.Mkdir
    func Mkdir(dirPath string, mode os.FileMode) (err error) {
    	defer updateOSMetrics(osMetricMkdir, dirPath)(err)
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Feb 15 01:09:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v2_test.go

    func TestReadXLMetaNoData(t *testing.T) {
    	f, err := os.Open("testdata/xl.meta-corrupt.gz")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer f.Close()
    
    	gz, err := gzip.NewReader(bufio.NewReader(f))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	buf, err := io.ReadAll(gz)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	_, err = readXLMetaNoData(bytes.NewReader(buf), int64(len(buf)))
    	if err == nil {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  6. docs/sts/client-grants.go

    	}
    
    	clnt, err := minio.New(u.Host, opts)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	d := bytes.NewReader([]byte("Hello, World"))
    	n, err := clnt.PutObject(context.Background(), "my-bucketname", "my-objectname", d, d.Size(), minio.PutObjectOptions{})
    	if err != nil {
    		log.Fatalln(err)
    	}
    
    	log.Println("Uploaded", "my-objectname", " of size: ", n, "Successfully.")
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  7. misc/ios/detect.go

    	for _, mp := range mps {
    		fmt.Println()
    		f, err := os.CreateTemp("", "go_ios_detect_")
    		check(err)
    		fname := f.Name()
    		defer os.Remove(fname)
    
    		out := output(parseMobileProvision(mp))
    		_, err = f.Write(out)
    		check(err)
    		check(f.Close())
    
    		cert, err := plistExtract(fname, "DeveloperCertificates:0")
    		check(err)
    		pcert, err := x509.ParseCertificate(cert)
    		check(err)
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Thu Oct 19 23:33:30 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. cmd/storage-datatypes_gen.go

    			z.Volume, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Volume")
    				return
    			}
    		case "fp":
    			z.FilePath, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "FilePath")
    				return
    			}
    		case "fi":
    			err = z.FI.DecodeMsg(dc)
    			if err != nil {
    				err = msgp.WrapError(err, "FI")
    				return
    			}
    		default:
    			err = dc.Skip()
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 150.2K bytes
    - Viewed (0)
  9. cmd/batch-replicate_gen.go

    			err = z.Filter.DecodeMsg(dc)
    			if err != nil {
    				err = msgp.WrapError(err, "Filter")
    				return
    			}
    		case "Notify":
    			err = z.Notify.DecodeMsg(dc)
    			if err != nil {
    				err = msgp.WrapError(err, "Notify")
    				return
    			}
    		case "Retry":
    			err = z.Retry.DecodeMsg(dc)
    			if err != nil {
    				err = msgp.WrapError(err, "Retry")
    				return
    			}
    		default:
    			err = dc.Skip()
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 40.7K bytes
    - Viewed (0)
  10. cmd/site-replication-metrics_gen.go

    	// map header, size 2
    	// write "Count"
    	err = en.Append(0x82, 0xa5, 0x43, 0x6f, 0x75, 0x6e, 0x74)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt64(z.Count)
    	if err != nil {
    		err = msgp.WrapError(err, "Count")
    		return
    	}
    	// write "Bytes"
    	err = en.Append(0xa5, 0x42, 0x79, 0x74, 0x65, 0x73)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt64(z.Bytes)
    	if err != nil {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 40.6K bytes
    - Viewed (0)
Back to top