Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for fn (0.13 sec)

  1. docs/debugging/xl-meta/main.go

    					fn := fmt.Sprintf("%s-%s.data", file, name)
    					if c.Bool("combine") {
    						if name == "null" {
    							name = v0
    						}
    
    						f := filemap[file][name]
    						if f != "" {
    							fn = f + ".data"
    							err = os.MkdirAll(filepath.Dir(fn), os.ModePerm)
    							if err != nil {
    								fmt.Println("MkdirAll:", filepath.Dir(fn), err)
    							}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  2. cmd/os-instrumented.go

    	return os.Create(name)
    }
    
    // Fdatasync captures time taken to call Fdatasync
    func Fdatasync(f *os.File) (err error) {
    	fn := ""
    	if f != nil {
    		fn = f.Name()
    	}
    	defer updateOSMetrics(osMetricFdatasync, fn)(err)
    	return disk.Fdatasync(f)
    }
    
    // report returns all os metrics.
    func (o *osMetrics) report() madmin.OSMetrics {
    	var m madmin.OSMetrics
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 15 01:09:38 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  3. cmd/xl-storage-disk-id-check.go

    	t := time.NewTicker(5 * time.Second)
    	defer t.Stop()
    
    	for range t.C {
    		if contextCanceled(p.diskCtx) {
    			return
    		}
    
    		err := p.storage.WriteAll(context.Background(), minioMetaTmpBucket, fn, toWrite)
    		if err != nil {
    			continue
    		}
    
    		b, err := p.storage.ReadAll(context.Background(), minioMetaTmpBucket, fn)
    		if err != nil || len(b) != len(toWrite) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  4. cmd/storage-errors.go

    var errMoreData = StorageErr("more data was sent than what was advertised")
    
    // indicates readDirFn to return without further applying the fn()
    var errDoneForNow = errors.New("done for now")
    
    // errSkipFile returned by the fn() for readDirFn() when it needs
    // to proceed to next entry.
    var errSkipFile = errors.New("skip this file")
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  5. cmd/tier-journal.go

    }
    
    func (jd *tierDiskJournal) JournalPath() string {
    	return filepath.Join(jd.diskPath, minioMetaBucket, "ilm", "deletion-journal.bin")
    }
    
    func (jd *tierDiskJournal) WalkEntries(ctx context.Context, fn walkFn) {
    	if err := jd.rotate(); err != nil {
    		logger.LogIf(ctx, fmt.Errorf("tier-journal: failed to rotate pending deletes journal %s", err))
    		return
    	}
    
    	ro, err := jd.OpenRO()
    	switch {
    Go
    - Registered: Sun Feb 25 19:28:16 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  6. internal/jwt/parser.go

    		jwtgo.ValidationErrorUnverifiable)
    }
    
    // ParseWithClaims - parse the token string, valid methods.
    func ParseWithClaims(tokenStr string, claims *MapClaims, fn func(*MapClaims) ([]byte, error)) error {
    	// Key lookup function has to be provided.
    	if fn == nil {
    		// keyFunc was not provided, return error.
    		return jwtgo.NewValidationError("no Keyfunc was provided.", jwtgo.ValidationErrorUnverifiable)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  7. cmd/object_api_suite_test.go

    	GlobalKMS = nil
    }
    
    func execExtended(t *testing.T, fn func(t *testing.T)) {
    	// Exec with default settings...
    	resetCompressEncryption()
    	t.Run("default", func(t *testing.T) {
    		fn(t)
    	})
    
    	if testing.Short() {
    		return
    	}
    
    	t.Run("compressed", func(t *testing.T) {
    		resetCompressEncryption()
    		enableCompression(t, false)
    		fn(t)
    	})
    
    	t.Run("encrypted", func(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-rebalance.go

    		bucket:         bucketName,
    		recursive:      true,
    		forwardTo:      "",
    		minDisks:       listingQuorum,
    		reportNotFound: false,
    		agreed:         fn,
    		partial: func(entries metaCacheEntries, _ []error) {
    			entry, ok := entries.resolve(&resolver)
    			if ok {
    				fn(*entry)
    			}
    		},
    		finished: nil,
    	})
    	return err
    }
    
    // rebalanceBucket rebalances objects under bucket in poolIdx pool
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  9. cmd/jwt_test.go

    	creds := globalActiveCred
    	b.Run("uncached", func(b *testing.B) {
    		fn := authenticateNode
    		b.ResetTimer()
    		b.ReportAllocs()
    		for i := 0; i < b.N; i++ {
    			fn(creds.AccessKey, creds.SecretKey, "aud")
    		}
    	})
    	b.Run("cached", func(b *testing.B) {
    		fn := newCachedAuthToken()
    		b.ResetTimer()
    		b.ReportAllocs()
    		for i := 0; i < b.N; i++ {
    			fn("aud")
    		}
    	})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  10. cmd/os_unix.go

    		return consumed, nil, typ, err
    	}
    
    	return consumed, nameBuf[:nameLen], typ, nil
    }
    
    // readDirFn applies the fn() function on each entries at dirPath, doesn't recurse into
    // the directory itself, if the dirPath doesn't exist this function doesn't return
    // an error.
    func readDirFn(dirPath string, fn func(name string, typ os.FileMode) error) error {
    	fd, err := openFileWithFD(dirPath, readMode, 0o666)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
Back to top