Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 2,464 for retorno (0.07 sec)

  1. cmd/hasher.go

    )
    
    // getSHA256Hash returns SHA-256 hash in hex encoding of given data.
    func getSHA256Hash(data []byte) string {
    	return hex.EncodeToString(getSHA256Sum(data))
    }
    
    // getSHA256Hash returns SHA-256 sum of given data.
    func getSHA256Sum(data []byte) []byte {
    	hash := sha256.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    // getMD5Sum returns MD5 sum of given data.
    func getMD5Sum(data []byte) []byte {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri May 27 13:00:19 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  2. internal/crypto/header.go

    		return true
    	}
    	return false
    }
    
    // ParseHTTP parses the SSE-C copy headers and returns the SSE-C client key
    // on success. Regular SSE-C headers are ignored.
    func (ssecCopy) ParseHTTP(h http.Header) (key [32]byte, err error) {
    	if h.Get(xhttp.AmzServerSideEncryptionCopyCustomerAlgorithm) != xhttp.AmzEncryptionAES {
    		return key, ErrInvalidCustomerAlgorithm
    	}
    	if h.Get(xhttp.AmzServerSideEncryptionCopyCustomerKey) == "" {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. cmd/site-replication-utils.go

    	if !globalSiteReplicationSys.isEnabled() {
    		return
    	}
    	sm.Lock()
    	defer sm.Unlock()
    	for _, rs := range sm.peerResyncMap {
    		st, ok := sm.resyncStatus[rs.resyncID]
    		if !ok {
    			return
    		}
    		switch st.Status {
    		case ResyncCompleted, ResyncFailed:
    			return
    		default:
    			delete(st.BucketStatuses, b)
    		}
    	}
    }
    
    // returns overall resync status from individual bucket resync status map
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 8.9K bytes
    - Viewed (1)
  4. cmd/xl-storage-format-v2.go

    		return j.ObjectV1.Signature()
    	}
    	return signatureErr
    }
    
    // getModTime will return the ModTime of the underlying version.
    func (j xlMetaV2Version) getModTime() time.Time {
    	switch j.Type {
    	case ObjectType:
    		return time.Unix(0, j.ObjectV2.ModTime)
    	case DeleteType:
    		return time.Unix(0, j.DeleteMarker.ModTime)
    	case LegacyType:
    		return j.ObjectV1.Stat.ModTime
    	}
    	return time.Time{}
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (0)
  5. internal/logger/target/kafka/kafka_scram_client_contrib.go

    // conversation forward.  It returns a string to be sent to the server or an
    // error if the server message is invalid.  Calling Step after a conversation
    // completes is also an error.
    func (x *XDGSCRAMClient) Step(challenge string) (response string, err error) {
    	response, err = x.ClientConversation.Step(challenge)
    	return
    }
    
    // Done returns true if the conversation is completed or has errored.
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Nov 09 04:04:01 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/lex/input.go

    		in.Error("wrong arg count for macro", macro.name)
    	}
    	argMap := make(map[string][]Token)
    	for i, arg := range args {
    		argMap[macro.args[i]] = arg
    	}
    	return argMap
    }
    
    // collectArgument returns the actual tokens for a single argument of a macro.
    // It also returns the token that terminated the argument, which will always
    // be either ',' or ')'. The starting '(' has been scanned.
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Fri Sep 06 13:17:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. cmd/bucket-replication-metrics_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteFloat64(z.Max.Count)
    	if err != nil {
    		err = msgp.WrapError(err, "Max", "Count")
    		return
    	}
    	// write "Bytes"
    	err = en.Append(0xa5, 0x42, 0x79, 0x74, 0x65, 0x73)
    	if err != nil {
    		return
    	}
    	err = en.WriteFloat64(z.Max.Bytes)
    	if err != nil {
    		err = msgp.WrapError(err, "Max", "Bytes")
    		return
    	}
    	return
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  8. internal/config/errors-utils.go

    	hint   string
    }
    
    // Clone returns a new Err struct with the same information
    func (u Err) Clone() Err {
    	return Err{
    		msg:    u.msg,
    		detail: u.detail,
    		action: u.action,
    		hint:   u.hint,
    	}
    }
    
    // Error returns the error message
    func (u Err) Error() string {
    	if u.detail == "" {
    		if u.msg != "" {
    			return u.msg
    		}
    		return "<nil>"
    	}
    	return u.detail
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. internal/event/target/redis.go

    // Name - returns the Name of the target.
    func (target *RedisTarget) Name() string {
    	return target.ID().String()
    }
    
    // Store returns any underlying store if set.
    func (target *RedisTarget) Store() event.TargetStore {
    	return target.store
    }
    
    // IsActive - Return true if target is up and active
    func (target *RedisTarget) IsActive() (bool, error) {
    	if err := target.init(); err != nil {
    		return false, err
    	}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. cmd/object-api-errors.go

    	return "Object name invalid: " + e.Bucket + "/" + e.Object
    }
    
    // Error returns string an error formatted as the given text.
    func (e ObjectNameTooLong) Error() string {
    	return "Object name too long: " + e.Bucket + "/" + e.Object
    }
    
    // Error returns string an error formatted as the given text.
    func (e ObjectNamePrefixAsSlash) Error() string {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Aug 09 02:05:14 UTC 2024
    - 22.1K bytes
    - Viewed (0)
Back to top