Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for HasPrefix (0.27 sec)

  1. cmd/batch-rotate.go

    }
    
    // Validate validates input key rotation encryption options.
    func (e BatchJobKeyRotateEncryption) Validate() error {
    	if e.Type != sses3 && e.Type != ssekms {
    		return errInvalidArgument
    	}
    	spaces := strings.HasPrefix(e.Key, " ") || strings.HasSuffix(e.Key, " ")
    	if e.Type == ssekms && spaces {
    		return crypto.ErrInvalidEncryptionKeyID
    	}
    	if e.Type == ssekms && GlobalKMS != nil {
    		ctx := kms.Context{}
    		if e.Context != "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
Back to top