Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for function (0.26 sec)

  1. cmd/update.go

    //
    // Any change here should be discussed by opening an issue at
    // https://github.com/minio/minio/issues.
    func getUserAgent(mode string) string {
    	userAgentParts := []string{}
    	// Helper function to concisely append a pair of strings to a
    	// the user-agent slice.
    	uaAppend := func(p, q string) {
    		userAgentParts = append(userAgentParts, p, q)
    	}
    	uaAppend(MinioUAName, " (")
    	uaAppend("", runtime.GOOS)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  2. internal/s3select/select.go

    		Closer:        r,
    	}
    }
    
    // ObjectSegmentReaderFn is a function that returns a reader for a contiguous
    // suffix segment of an object starting at the given (non-negative) offset.
    type ObjectSegmentReaderFn func(offset int64) (io.ReadCloser, error)
    
    // ObjectReadSeekCloser implements ReadSeekCloser interface for reading objects.
    // It uses a function that returns a io.ReadCloser for the object.
    type ObjectReadSeekCloser struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (0)
  3. 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)
  4. internal/grid/types.go

    type ArrayOf[T RoundTripper] struct {
    	aPool sync.Pool // Arrays
    	ePool sync.Pool // Elements
    }
    
    // NewArrayOf returns a new ArrayOf.
    // You must provide a function that returns a new instance of T.
    func NewArrayOf[T RoundTripper](newFn func() T) *ArrayOf[T] {
    	return &ArrayOf[T]{
    		ePool: sync.Pool{New: func() any {
    			return newFn()
    		}},
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  5. cmd/encryption-v1_test.go

    	s3 := repeat(maxPartSz, 10000)
    	testMPs := []struct {
    		decSizes []int64
    		oi       ObjectInfo
    	}{
    		{s1, mkMPObj(s1)},
    		{s2, mkMPObj(s2)},
    		{s3, mkMPObj(s3)},
    	}
    
    	// This function is a reference (re-)implementation of
    	// decrypted range computation, written solely for the purpose
    	// of the unit tests.
    	//
    	// `s` gives the decrypted part sizes, and the other
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Sep 24 04:17:08 GMT 2022
    - 19.9K bytes
    - Viewed (0)
  6. cmd/object-api-errors.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"io"
    )
    
    // Converts underlying storage error. Convenience function written to
    // handle all cases where we have known types of errors returned by
    // underlying storage layer.
    func toObjectErr(oerr error, params ...string) error {
    	if oerr == nil {
    		return nil
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool-rebalance.go

    	z.rebalMu.Unlock()
    
    	return nil
    }
    
    // updates rebalance.bin from let's say 2 pool setup in the middle
    // of a rebalance, was expanded can cause z.rebalMeta to be outdated
    // due to a missing new pool. This function tries to handle this
    // scenario, albeit rare it seems to have occurred in the wild.
    //
    // since we do not explicitly disallow it, but it is okay for them
    // expand and then we continue to rebalance.
    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)
  8. cmd/signature-v4-utils_test.go

    	inputHeader.Set("X-Amz-Meta-Name", expectedMetaName)
    	// calling the function being tested.
    	errCode := checkMetaHeaders(signedHeadersMap, r)
    	if errCode != ErrNone {
    		t.Fatalf("Expected the APIErrorCode to be %d, but got %d", ErrNone, errCode)
    	}
    
    	// Add new metadata in inputHeader
    	inputHeader.Set("X-Amz-Meta-Clone", "fail")
    	// calling the function being tested.
    	errCode = checkMetaHeaders(signedHeadersMap, r)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  9. cmd/xl-storage-disk-id-check.go

    	}
    	defer func() {
    		if err == nil && !skipAccessChecks(dstVolume) {
    			p.storage.setWriteAttribute(p.totalWrites.Add(1))
    		}
    		done(&err)
    	}()
    
    	// Copy inline data to a new buffer to function with deadlines.
    	if len(fi.Data) > 0 {
    		fi.Data = append(grid.GetByteBufferCap(len(fi.Data))[:0], fi.Data...)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  10. cmd/admin-router.go

    // name of the function handler passed (this handler must be a method of
    // `adminAPIHandlers`).
    //
    // - sets up call to send AuditLog
    //
    // While this is a middleware function (i.e. it takes a handler function and
    // returns one), due to flags being passed based on required conditions, it is
    // done per-"handler function registration" in the router.
    //
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 25.5K bytes
    - Viewed (0)
Back to top