Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 7,014 for rreturn (0.1 sec)

  1. internal/bucket/lifecycle/lifecycle.go

    					DeleteAction, DeleteVersionAction:
    					return -1
    				}
    				switch b.Action {
    				case DeleteAllVersionsAction, DelMarkerDeleteAllVersionsAction,
    					DeleteAction, DeleteVersionAction:
    					return 1
    				}
    				return -1
    			}
    
    			// Prefer earlier occurring event
    			if a.Due.Before(b.Due) {
    				return -1
    			}
    			return 1
    		})
    		return events[0]
    	}
    
    	return Event{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ObjectArrays.java

        arraycopy(second, 0, result, first.length, second.length);
        return result;
      }
    
      /**
       * Returns a new array that prepends {@code element} to {@code array}.
       *
       * @param element the element to prepend to the front of {@code array}
       * @param array the array of elements to append
       * @return an array whose size is one larger than {@code array}, with {@code element} occupying
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/VersionConstraint.java

     */
    @Experimental
    public interface VersionConstraint {
        /**
         * Returns the range of this constraint, or {@code null} if none.
         * <p>
         * Note: only one, this method or {@link #getRecommendedVersion()} method must return non-{@code null} value.
         */
        @Nullable
        VersionRange getVersionRange();
    
        /**
         * Returns the recommended version of this constraint, or {@code null} if none.
         * <p>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. internal/kms/config.go

    			return false, fmt.Errorf("kms: incomplete configuration for MinIO KMS: missing '%s'", EnvKMSDefaultKey)
    		}
    		if !isPresent(EnvKMSAPIKey) {
    			return false, fmt.Errorf("kms: incomplete configuration for MinIO KMS: missing '%s'", EnvKMSAPIKey)
    		}
    		return true, nil
    	case staticKeyPresent:
    		if isPresent(EnvKMSSecretKey) && isPresent(EnvKMSSecretKeyFile) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 11:46:39 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  5. cmd/metrics-v3-types.go

    	switch mt {
    	case CounterMT:
    		return "counter"
    	case GaugeMT:
    		return "gauge"
    	case HistogramMT:
    		return "histogram"
    	default:
    		return "*unknown*"
    	}
    }
    
    func (mt MetricType) toProm() prometheus.ValueType {
    	switch mt {
    	case CounterMT:
    		return prometheus.CounterValue
    	case GaugeMT:
    		return prometheus.GaugeValue
    	case HistogramMT:
    		return prometheus.CounterValue
    	default:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 30 22:28:46 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  6. internal/event/target/mqtt.go

    	return target.id
    }
    
    // Name - returns the Name of the target.
    func (target *MQTTTarget) Name() string {
    	return target.ID().String()
    }
    
    // Store returns any underlying store if set.
    func (target *MQTTTarget) Store() event.TargetStore {
    	return target.store
    }
    
    // IsActive - Return true if target is up and active
    func (target *MQTTTarget) IsActive() (bool, error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. internal/crypto/sse-s3.go

    	if h.Get(xhttp.AmzServerSideEncryption) != xhttp.AmzEncryptionAES {
    		return ErrInvalidEncryptionMethod
    	}
    	return nil
    }
    
    // IsEncrypted returns true if the object metadata indicates
    // that the object was uploaded using SSE-S3.
    func (sses3) IsEncrypted(metadata map[string]string) bool {
    	if _, ok := metadata[MetaSealedKeyS3]; ok {
    		return true
    	}
    	return false
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. cmd/metacache-entries.go

    	if e == nil && other == nil {
    		return nil, true
    	}
    	if e == nil {
    		return other, false
    	}
    	if other == nil {
    		return e, false
    	}
    
    	// Name should match...
    	if e.name != other.name {
    		if e.name < other.name {
    			return e, false
    		}
    		return other, false
    	}
    
    	if other.isDir() || e.isDir() {
    		if e.isDir() {
    			return e, other.isDir() == e.isDir()
    		}
    		return other, other.isDir() == e.isDir()
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  9. internal/hash/reader.go

    			return n, BadDigest{
    				ExpectedMD5:   v.Expected.String(),
    				CalculatedMD5: v.Computed.String(),
    			}
    		}
    	}
    	return n, err
    }
    
    // Size returns the absolute number of bytes the Reader
    // will return during reading. It returns -1 for unlimited
    // data.
    func (r *Reader) Size() int64 { return r.size }
    
    // ActualSize returns the pre-modified size of the object.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 19 12:59:07 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. internal/s3select/csv/record.go

    			if err != nil {
    				return nil, fmt.Errorf("column %v not found", name)
    			}
    			// The position count starts at 1.
    			idx--
    			if idx >= len(r.csvRecord) || idx < 0 {
    				// If field index > number of columns, return null
    				return sql.FromNull(), nil
    			}
    			return sql.FromBytes([]byte(r.csvRecord[idx])), nil
    		}
    		// TODO: Return Missing?
    		return nil, fmt.Errorf("column %v not found", name)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top