Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for rebear (0.16 sec)

  1. cmd/erasure-object_test.go

    		object    string
    		content   []byte
    	}{
    		{"bucket1", false, "object1", []byte("aaaaaaaaaaaaaaaa")},
    		{"bucket2", false, "object2", bytes.Repeat([]byte{'a'}, smallFileThreshold*2)},
    		{"bucket3", true, "version1", []byte("aaaaaaaaaaaaaaaa")},
    		{"bucket4", true, "version2", bytes.Repeat([]byte{'a'}, smallFileThreshold*2)},
    	}
    
    	for i, testCase := range testCases {
    		// Step 1: create a bucket
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 36.8K bytes
    - Viewed (0)
  2. cmd/encryption-v1_test.go

    		esum = func(oi ObjectInfo) int64 {
    			sum := int64(0)
    			for _, i := range oi.Parts {
    				sum += i.Size
    			}
    			return sum
    		}
    	)
    
    	s1 := []int64{5487701, 5487799, 3}
    	s2 := repeat(5487701, 5)
    	s3 := repeat(maxPartSz, 10000)
    	testMPs := []struct {
    		decSizes []int64
    		oi       ObjectInfo
    	}{
    		{s1, mkMPObj(s1)},
    		{s2, mkMPObj(s2)},
    		{s3, mkMPObj(s3)},
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Sep 24 04:17:08 GMT 2022
    - 19.9K bytes
    - Viewed (0)
  3. internal/logger/console.go

    	f.pretty(msg, args...)
    }
    
    var (
    	logTag      = "ERROR"
    	logBanner   = color.BgRed(color.FgWhite(color.Bold(logTag))) + " "
    	emptyBanner = color.BgRed(strings.Repeat(" ", len(logTag))) + " "
    	bannerWidth = len(logTag) + 1
    )
    
    func (f fatalMsg) pretty(msg string, args ...interface{}) {
    	// Build the passed error message
    	errMsg := fmt.Sprintf(msg, args...)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  4. internal/s3select/message.go

    	buf.Write(header)
    	if payload != nil {
    		buf.Write(payload)
    	}
    	message := buf.Bytes()
    	binary.Write(buf, binary.BigEndian, crc32.ChecksumIEEE(message))
    
    	return buf.Bytes()
    }
    
    // Refer genRecordsHeader().
    var recordsHeader = []byte{
    	13, ':', 'm', 'e', 's', 's', 'a', 'g', 'e', '-', 't', 'y', 'p', 'e', 7, 0, 5, 'e', 'v', 'e', 'n', 't',
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 30 15:26:43 GMT 2022
    - 15.2K bytes
    - Viewed (0)
  5. internal/event/target/kafka.go

    func (target *KafkaTarget) IsActive() (bool, error) {
    	if err := target.init(); err != nil {
    		return false, err
    	}
    	return target.isActive()
    }
    
    func (target *KafkaTarget) isActive() (bool, error) {
    	// Refer https://github.com/IBM/sarama/issues/1341
    	brokers := target.client.Brokers()
    	if len(brokers) == 0 {
    		return false, store.ErrNotConnected
    	}
    	return true, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 20 08:16:35 GMT 2024
    - 13K bytes
    - Viewed (0)
  6. internal/disk/stat_linux.go

    	stats, err := readStat(statsFile)
    	if err != nil {
    		return IOStats{}, err
    	}
    	if len(stats) < 11 {
    		return IOStats{}, fmt.Errorf("found invalid format while reading %v", statsFile)
    	}
    	// refer https://www.kernel.org/doc/Documentation/block/stat.txt
    	iostats = IOStats{
    		ReadIOs:      stats[0],
    		ReadMerges:   stats[1],
    		ReadSectors:  stats[2],
    		ReadTicks:    stats[3],
    		WriteIOs:     stats[4],
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  7. internal/event/name.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package event
    
    import (
    	"encoding/json"
    	"encoding/xml"
    )
    
    // Name - event type enum.
    // Refer http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations
    // for most basic values we have since extend this and its not really much applicable other than a reference point.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-rebalance.go

    	}
    	rs.Bytes += uint64(onDiskSz)
    	rs.Bucket = bucket
    	rs.Object = fi.Name
    }
    
    type rstats []*rebalanceStats
    
    //go:generate stringer -type=rebalStatus -trimprefix=rebal $GOFILE
    type rebalStatus uint8
    
    const (
    	rebalNone rebalStatus = iota
    	rebalStarted
    	rebalCompleted
    	rebalStopped
    	rebalFailed
    )
    
    type rebalanceInfo struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  9. internal/config/identity/openid/openid.go

    			var scopes []string
    			for _, scope := range strings.Split(scopeList, ",") {
    				scope = strings.TrimSpace(scope)
    				if scope == "" {
    					return c, config.Errorf("empty scope value is not allowed '%s', please refer to our documentation", scopeList)
    				}
    				scopes = append(scopes, scope)
    			}
    			// Replace the discovery document scopes by client customized scopes.
    			p.DiscoveryDoc.ScopesSupported = scopes
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 16 04:42:31 GMT 2023
    - 16.5K bytes
    - Viewed (0)
  10. cmd/server_test.go

    	response, err := s.client.Do(req)
    	c.Assert(err, nil)
    	// assert the http response status code.
    	c.Assert(response.StatusCode, http.StatusOK)
    
    	invalidBucket := "Invalid\\Bucket"
    	tooByte := bytes.Repeat([]byte("a"), 1025)
    	tooBigPrefix := string(tooByte)
    	validEvents := []string{"s3:ObjectCreated:*", "s3:ObjectRemoved:*"}
    	invalidEvents := []string{"invalidEvent"}
    
    	req, err = newTestSignedRequest(http.MethodGet,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
Back to top