Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 140 for _new (0.03 sec)

  1. internal/config/notify/parse.go

    	logger.LogOnceIf(ctx, logSubsys, err, id, errKind...)
    }
    
    // ErrTargetsOffline - Indicates single/multiple target failures.
    var ErrTargetsOffline = errors.New("one or more targets are offline. Please use `mc admin info --json` to check the offline targets")
    
    // TestSubSysNotificationTargets - tests notification targets of given subsystem
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 46.4K bytes
    - Viewed (0)
  2. cmd/object-api-datatypes_gen.go

    			if msgp.IsNil(bts) {
    				bts, err = msgp.ReadNilBytes(bts)
    				if err != nil {
    					return
    				}
    				z.ActualSize = nil
    			} else {
    				if z.ActualSize == nil {
    					z.ActualSize = new(int64)
    				}
    				*z.ActualSize, bts, err = msgp.ReadInt64Bytes(bts)
    				if err != nil {
    					err = msgp.WrapError(err, "ActualSize")
    					return
    				}
    			}
    		case "IsDir":
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  3. cmd/warm-backend-s3.go

    		return nil, errors.New("AWS Role cannot be activated with static credentials or the web identity token file")
    	case conf.Bucket == "":
    		return nil, errors.New("no bucket name was provided")
    	}
    
    	// Credentials initialization
    	var creds *credentials.Credentials
    	switch {
    	case conf.AWSRole:
    		creds = credentials.New(&credentials.IAM{
    			Client: &http.Client{
    				Transport: NewHTTPTransport(),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Apr 21 11:43:18 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. cmd/jwt.go

    )
    
    var (
    	errInvalidAccessKeyID = errors.New("The access key ID you provided does not exist in our records")
    	errAccessKeyDisabled  = errors.New("The access key you provided is disabled")
    	errAuthentication     = errors.New("Authentication failed, check your access credentials")
    	errNoAuthToken        = errors.New("JWT token missing")
    	errSkewedAuthTime     = errors.New("Skewed authentication date/time")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. 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)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. 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
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 21K bytes
    - Viewed (0)
  7. internal/ringbuffer/ring_buffer.go

    	writeCond *sync.Cond // Signaled when data has been written.
    }
    
    // New returns a new RingBuffer whose buffer has the given size.
    func New(size int) *RingBuffer {
    	return &RingBuffer{
    		buf:  make([]byte, size),
    		size: size,
    	}
    }
    
    // NewBuffer returns a new RingBuffer whose buffer is provided.
    func NewBuffer(b []byte) *RingBuffer {
    	return &RingBuffer{
    		buf:  b,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. internal/logger/target/http/http.go

    					if !ok {
    						break drain
    					}
    					logChBuffers[newTgt.Name()] <- v
    				default:
    					break drain
    				}
    			}
    		}
    	}
    }
    
    // New initializes a new logger target which
    // sends log over http to the specified endpoint
    func New(config Config) (*Target, error) {
    	maxWorkers := maxWorkers
    	if config.BatchSize > 100 {
    		maxWorkers = maxWorkersWithBatchEvents
    	} else if config.BatchSize <= 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  9. cmd/sts-handlers.go

    	// certificate that we can map to a policy.
    	if len(r.TLS.PeerCertificates) == 0 {
    		writeSTSErrorResponse(ctx, w, ErrSTSMissingParameter, errors.New("No client certificate provided"))
    		return
    	}
    	if len(r.TLS.PeerCertificates) > 1 {
    		writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, errors.New("More than one client certificate provided"))
    		return
    	}
    
    	certificate := r.TLS.PeerCertificates[0]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  10. cmd/storage-errors.go

    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")
    
    var errIgnoreFileContrib = errors.New("ignore this file's contribution toward data-usage")
    
    // errXLBackend XL drive mode requires fresh deployment.
    var errXLBackend = errors.New("XL backend requires fresh drive")
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top