Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 515 for New (0.15 sec)

  1. buildscripts/rewrite-old-new.sh

    Harshavardhana <******@****.***> 1708132557 -0800
    Shell Script
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Feb 17 01:15:57 GMT 2024
    - 3.4K bytes
    - Viewed (1)
  2. internal/grid/types.go

    	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()
    		}},
    	}
    }
    
    // New returns a new empty Array.
    func (p *ArrayOf[T]) New() *Array[T] {
    	return &Array[T]{
    		p: p,
    	}
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  3. internal/config/identity/openid/jwt.go

    	if err != nil {
    		return err
    	}
    	defer r.closeRespFn(resp.Body)
    	if resp.StatusCode != http.StatusOK {
    		return errors.New(resp.Status)
    	}
    
    	return r.pubKeys.parseAndAdd(resp.Body)
    }
    
    // ErrTokenExpired - error token expired
    var (
    	ErrTokenExpired = errors.New("token expired")
    )
    
    func updateClaimsExpiry(dsecs string, claims map[string]interface{}) error {
    	expStr := claims["exp"]
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Nov 16 04:42:31 GMT 2023
    - 8.3K bytes
    - Viewed (5)
  4. internal/s3select/sql/jsonpath.go

    )
    
    var (
    	errKeyLookup                  = errors.New("Cannot look up key in non-object value")
    	errIndexLookup                = errors.New("Cannot look up array index in non-array value")
    	errWildcardObjectLookup       = errors.New("Object wildcard used on non-object value")
    	errWildcardArrayLookup        = errors.New("Array wildcard used on non-array value")
    	errWildcardObjectUsageInvalid = errors.New("Invalid usage of object wildcard")
    )
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  5. internal/jwt/parser.go

    func init() {
    	base64BufPool = sync.Pool{
    		New: func() interface{} {
    			buf := make([]byte, base64BufferSize)
    			return &buf
    		},
    	}
    
    	hmacSigners = []*SigningMethodHMAC{
    		{Name: "HS256", Hash: crypto.SHA256},
    		{Name: "HS384", Hash: crypto.SHA384},
    		{Name: "HS512", Hash: crypto.SHA512},
    	}
    	for i := range hmacSigners {
    		h := hmacSigners[i].Hash
    		hmacSigners[i].HasherPool.New = func() interface{} {
    			return h.New()
    		}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  6. cmd/lock-rest-server-common.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"errors"
    )
    
    var (
    	errLockConflict       = errors.New("lock conflict")
    	errLockNotInitialized = errors.New("lock not initialized")
    	errLockNotFound       = errors.New("lock not found")
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 973 bytes
    - Viewed (0)
  7. internal/bucket/encryption/bucket-sse-config.go

    	// Only one rule is allowed on AWS S3
    	if len(config.Rules) != 1 {
    		return nil, errors.New("only one server-side encryption rule is allowed at a time")
    	}
    
    	for _, rule := range config.Rules {
    		switch rule.DefaultEncryptionAction.Algorithm {
    		case AES256:
    			if rule.DefaultEncryptionAction.MasterKeyID != "" {
    				return nil, errors.New("MasterKeyID is allowed with aws:kms only")
    			}
    		case AWSKms:
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 4.9K bytes
    - Viewed (0)
  8. internal/config/etcd/etcd.go

    	Enabled     bool   `json:"enabled"`
    	PathPrefix  string `json:"pathPrefix"`
    	CoreDNSPath string `json:"coreDNSPath"`
    	clientv3.Config
    }
    
    // New - initialize new etcd client.
    func New(cfg Config) (*clientv3.Client, error) {
    	if !cfg.Enabled {
    		return nil, nil
    	}
    	cli, err := clientv3.New(cfg.Config)
    	if err != nil {
    		return nil, err
    	}
    	cli.KV = namespace.NewKV(cli.KV, cfg.PathPrefix)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  9. internal/s3select/select.go

    	parquetSupport = env.Get("MINIO_API_SELECT_PARQUET", config.EnableOff) == config.EnableOn
    }
    
    var bufPool = sync.Pool{
    	New: func() interface{} {
    		// make a buffer with a reasonable capacity.
    		return bytes.NewBuffer(make([]byte, 0, maxRecordSize))
    	},
    }
    
    var bufioWriterPool = sync.Pool{
    	New: func() interface{} {
    		// io.Discard is just used to create the writer. Actual destination
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Nov 06 22:26:08 GMT 2023
    - 21K bytes
    - Viewed (0)
  10. internal/http/server.go

    			tmp, err := os.CreateTemp("", "minio-goroutines-*.txt")
    			if err == nil {
    				_ = pprof.Lookup("goroutine").WriteTo(tmp, 1)
    				tmp.Close()
    				return errors.New("timed out. some connections are still active. goroutines written to " + tmp.Name())
    			}
    			return errors.New("timed out. some connections are still active")
    		case <-timer.C:
    			if atomic.LoadInt32(&srv.requestCount) <= 0 {
    				return nil
    			}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 09 21:25:16 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top