Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 40 for samples (0.39 sec)

  1. internal/bucket/lifecycle/lifecycle.go

    				// once delete markers are old enough to satisfy the age criteria.
    				// https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configuration-examples.html
    				if expectedExpiry := ExpectedExpiryTime(obj.ModTime, int(rule.Expiration.Days)); now.IsZero() || now.After(expectedExpiry) {
    					events = append(events, Event{
    						Action: DeleteVersionAction,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  2. cni/pkg/plugin/plugin.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    // This is a sample chained plugin that supports multiple CNI versions. It
    // parses prevResult according to the cniVersion
    package plugin
    
    import (
    	"context"
    	"encoding/json"
    	"fmt"
    	"runtime/debug"
    	"strconv"
    	"time"
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. cmd/bucket-policy-handlers_test.go

    	// test cases with sample input and expected output.
    	testCases := []struct {
    		bucketName string
    		// bucket policy to be set,
    		// set as request body.
    		bucketPolicyReader io.ReadSeeker
    		// length in bytes of the bucket policy being set.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  4. cmd/xl-storage-format_test.go

    func getXLMetaBytes(totalParts int) []byte {
    	xlSampleMeta := getSampleXLMeta(totalParts)
    	xlMetaBytes, err := json.Marshal(xlSampleMeta)
    	if err != nil {
    		panic(err)
    	}
    	return xlMetaBytes
    }
    
    // Returns sample xlMetaV1Object{} for number of parts.
    func getSampleXLMeta(totalParts int) xlMetaV1Object {
    	xlMeta := newTestXLMetaV1()
    	// Number of checksum info == total parts.
    	xlMeta.Erasure.Checksums = make([]ChecksumInfo, totalParts)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  5. cmd/admin-handlers.go

    	duration, err := time.ParseDuration(durationStr)
    	if err != nil {
    		duration = globalNetPerfMinDuration
    	}
    
    	if duration < globalNetPerfMinDuration {
    		// We need sample size of minimum 10 secs.
    		duration = globalNetPerfMinDuration
    	}
    
    	duration = duration.Round(time.Second)
    
    	results, err := globalSiteReplicationSys.Netperf(ctx, duration)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  6. cmd/admin-handlers-idp-ldap.go

    		// However, for now, we only support using the short username.
    
    		isDN := globalIAMSys.LDAPConfig.ParsesAsDN(targetUser)
    		opts.claims[ldapUserN] = targetUser // simple username
    		targetUser, targetGroups, err = globalIAMSys.LDAPConfig.LookupUserDN(targetUser)
    		if err != nil {
    			// if not found, check if DN
    			if strings.Contains(err.Error(), "User DN not found for:") {
    				if isDN {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  7. cmd/bucket-replication-metrics.go

    	// Bytes of unreplicated entries that were dropped after MRF retry limit reached since cluster start.
    	TotalDroppedBytes uint64 `json:"droppedBytes_since_uptime"`
    }
    
    // SMA struct for calculating simple moving average
    type SMA struct {
    	buf       []float64
    	window    int     // len of buf
    	idx       int     // current index in buf
    	CAvg      float64 // cumulative average
    	prevSMA   float64
    	filledBuf bool
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  8. internal/etag/etag.go

    // inside AWS S3.
    // Therefore, S3 clients must not make any assumption about ETags
    // in case of SSE-C or SSE-KMS except that the ETag is well-formed.
    //
    // To put all of this into a simple rule:
    //
    //	SSE-S3 : ETag == MD5
    //	SSE-C  : ETag != MD5
    //	SSE-KMS: ETag != MD5
    //
    // # Encrypted ETags
    //
    // An S3 implementation has to remember the content MD5 of objects
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  9. cmd/server-main.go

      to abbreviate the directory arguments. Remote directories in a
      distributed setup are encoded as HTTP(s) URIs.
    {{if .VisibleFlags}}
    FLAGS:
      {{range .VisibleFlags}}{{.}}
      {{end}}{{end}}
    EXAMPLES:
      1. Start MinIO server on "/home/shared" directory.
         {{.Prompt}} {{.HelpName}} /home/shared
    
      2. Start single node server with 64 local drives "/mnt/data1" to "/mnt/data64".
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 34.9K bytes
    - Viewed (2)
  10. internal/bucket/lifecycle/lifecycle_test.go

    			expectedValidationErr: errLifecycleDuplicateID,
    		},
    		// Missing <Tag> in <And>
    		{
    			inputConfig:           `<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Rule><ID>sample-rule-2</ID><Filter><And><Prefix>/a/b/c</Prefix></And></Filter><Status>Enabled</Status><Expiration><Days>1</Days></Expiration></Rule></LifecycleConfiguration>`,
    			expectedParsingErr:    nil,
    			expectedValidationErr: errXMLNotWellFormed,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
Back to top