Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for do (0.12 sec)

  1. cmd/erasure-object.go

    		if errors.Is(err, errFileNotFound) {
    			// An in-quorum errFileNotFound means that client stream
    			// prematurely closed and we do not find any xl.meta or
    			// part.1's - in such a scenario we must return as if client
    			// disconnected. This means that erasure.Encode() CreateFile()
    			// did not do anything.
    			return ObjectInfo{}, IncompleteBody{Bucket: bucket, Object: object}
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  2. cmd/iam.go

    	// Validate that policies associated with roles are defined. If
    	// authZ plugin is set, role policies are just claims sent to
    	// the plugin and they need not exist.
    	//
    	// If some mapped policies do not exist, we print some error
    	// messages but continue any way - they can be fixed in the
    	// running server by creating the policies after start up.
    	for arn, rolePolicies := range m {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  3. cmd/erasure-server-pool.go

    	// We aren't modifying p, only entries in it, so we don't need to receive a pointer.
    	if len(p) <= 1 {
    		// Nothing to do.
    		return
    	}
    	var ok bool
    	for _, z := range p {
    		if z.Available > 0 && z.MaxUsedPct < max {
    			ok = true
    			break
    		}
    	}
    	if !ok {
    		// All above limit.
    		// Do not modify
    		return
    	}
    
    	// Remove entries that are above.
    	for i, z := range p {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2_gen.go

    package cmd
    
    // Code generated by github.com/tinylib/msgp DO NOT EDIT.
    
    import (
    	"github.com/tinylib/msgp/msgp"
    )
    
    // DecodeMsg implements msgp.Decodable
    func (z *ChecksumAlgo) DecodeMsg(dc *msgp.Reader) (err error) {
    	{
    		var zb0001 uint8
    		zb0001, err = dc.ReadUint8()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		(*z) = ChecksumAlgo(zb0001)
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  5. cmd/sts-handlers_test.go

    	// 3.1 Validate that the client from STS creds cannot upload any object as
    	// it is denied by the plugin.
    	c.mustNotUpload(ctx, s.getUserClient(c, cr.AccessKey, cr.SecretKey, ""), bucket)
    
    	// Check that session policies do not apply - as policy enforcement is
    	// delegated to plugin.
    	{
    		svcAK, svcSK := mustGenerateCredentials(c)
    
    		// This policy does not allow listing objects.
    		policyBytes := []byte(fmt.Sprintf(`{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  6. cmd/xl-storage.go

    		delete(foundDirs, dir)
    	}
    
    	// Delete excessive directories.
    	// Do not abort on context errors.
    	for dir := range foundDirs {
    		toRemove := pathJoin(volumeDir, path, dir+SlashSeparator)
    		err = s.deleteFile(volumeDir, toRemove, true, true)
    		diskHealthCheckOK(ctx, err)
    		if err != nil {
    			return err
    		}
    	}
    
    	// Do the same for inline data
    	dirs, err := xl.data.list()
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  7. cmd/iam-store.go

    	}
    
    	cache := store.lock()
    	defer store.unlock()
    
    	if !isFromNotification {
    		// Check if policy is mapped to any existing user or group. If so, we do not
    		// allow deletion of the policy. If the policy is mapped to an STS account,
    		// we do allow deletion.
    		users := []string{}
    		groups := []string{}
    		cache.iamUserPolicyMap.Range(func(u string, mp MappedPolicy) bool {
    			pset := mp.policySet()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  8. cmd/object-api-multipart_test.go

    		{"---", "", "", "", "", 0, ListMultipartsInfo{}, BucketNameInvalid{Bucket: "---"}, false},
    		{"ad", "", "", "", "", 0, ListMultipartsInfo{}, BucketNameInvalid{Bucket: "ad"}, false},
    		// Valid bucket names, but they do not exist (Test number 5-7).
    		{"volatile-bucket-1", "", "", "", "", 0, ListMultipartsInfo{}, BucketNotFound{Bucket: "volatile-bucket-1"}, false},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  9. cmd/object-api-listobjects_test.go

    		{"---", "", "", "", 0, ListObjectsInfo{}, BucketNameInvalid{Bucket: "---"}, false},
    		{"ad", "", "", "", 0, ListObjectsInfo{}, BucketNameInvalid{Bucket: "ad"}, false},
    		// Valid bucket names, but they do not exist (6-8).
    		{"volatile-bucket-1", "", "", "", 1000, ListObjectsInfo{}, BucketNotFound{Bucket: "volatile-bucket-1"}, false},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  10. cmd/bucket-stats_gen.go

    package cmd
    
    // Code generated by github.com/tinylib/msgp DO NOT EDIT.
    
    import (
    	"github.com/tinylib/msgp/msgp"
    )
    
    // DecodeMsg implements msgp.Decodable
    func (z *BucketReplicationStat) DecodeMsg(dc *msgp.Reader) (err error) {
    	var field []byte
    	_ = field
    	var zb0001 uint32
    	zb0001, err = dc.ReadMapHeader()
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	for zb0001 > 0 {
    		zb0001--
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 57.5K bytes
    - Viewed (0)
Back to top