Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 143 for init (0.16 sec)

  1. cmd/auth-handler.go

    }
    
    // Authorization type.
    //
    //go:generate stringer -type=authType -trimprefix=authType $GOFILE
    type authType int
    
    // List of all supported auth types.
    const (
    	authTypeUnknown authType = iota
    	authTypeAnonymous
    	authTypePresigned
    	authTypePresignedV2
    	authTypePostPolicy
    	authTypeStreamingSigned
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  2. cmd/metacache-set_gen.go

    				return
    			}
    		}
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z *listPathOptions) Msgsize() (s int) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 19 20:23:12 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  3. cmd/common-main.go

    var (
    	serverDebugLog     = env.Get("_MINIO_SERVER_DEBUG", config.EnableOff) == config.EnableOn
    	currentReleaseTime time.Time
    	orchestrated       = IsKubernetes() || IsDocker()
    )
    
    func init() {
    	if !term.IsTerminal(int(os.Stdout.Fd())) || !term.IsTerminal(int(os.Stderr.Fd())) {
    		color.TurnOff()
    	}
    	if env.Get("NO_COLOR", "") != "" || env.Get("TERM", "") == "dumb" {
    		color.TurnOff()
    	}
    
    	if runtime.GOOS == "windows" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  4. cmd/erasure-server-pool-decom.go

    	poolMetaName      = "pool.bin"
    	poolMetaFormat    = 1
    	poolMetaVersionV1 = 1
    	poolMetaVersion   = poolMetaVersionV1
    )
    
    // Init() initializes pools and saves additional information about them
    // in 'pool.bin', this is eventually used for decommissioning the pool.
    func (z *erasureServerPools) Init(ctx context.Context) error {
    	// Load rebalance metadata if present
    	err := z.loadRebalanceMeta(ctx)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 41.5K bytes
    - Viewed (1)
  5. cmd/metrics-resource.go

    	// cumulative value with previous one
    	Cumulative float64
    
    	Max   float64
    	Avg   float64
    	Sum   float64
    	Count uint64
    }
    
    func init() {
    	interval := fmt.Sprintf("%ds", int(resourceMetricsCollectionInterval.Seconds()))
    	resourceMetricsHelpMap = map[MetricName]string{
    		interfaceRxBytes:  "Bytes received on the interface in " + interval,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  6. cmd/signature-v4-utils_test.go

    	if err = newTestConfig(globalMinioDefaultRegion, objLayer); err != nil {
    		t.Fatalf("unable initialize config file, %s", err)
    	}
    
    	initAllSubsystems(ctx)
    	initConfigSubsystem(ctx, objLayer)
    
    	globalIAMSys.Init(ctx, objLayer, globalEtcdClient, 2*time.Second)
    
    	req, err := newTestRequest(http.MethodGet, "http://example.com:9000/bucket/object", 0, nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    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)
  7. cmd/config-current.go

    	case config.APISubSys:
    		apiConfig, err := api.LookupConfig(s[config.APISubSys][config.Default])
    		if err != nil {
    			configLogIf(ctx, fmt.Errorf("Invalid api configuration: %w", err))
    		}
    
    		globalAPIConfig.init(apiConfig, setDriveCounts, objAPI.Legacy())
    		autoGenerateRootCredentials() // Generate the KMS root credentials here since we don't know whether API root access is disabled until now.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  8. cmd/object-api-utils.go

    func getPartFile(entriesTrie *trie.Trie, partNumber int, etag string) (partFile string) {
    	for _, match := range entriesTrie.PrefixMatch(fmt.Sprintf("%.5d.%s.", partNumber, etag)) {
    		partFile = match
    		break
    	}
    	return partFile
    }
    
    func partNumberToRangeSpec(oi ObjectInfo, partNumber int) *HTTPRangeSpec {
    	if oi.Size == 0 || len(oi.Parts) == 0 {
    		return nil
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  9. internal/rest/client.go

    func exponentialBackoffWait(r *rand.Rand, unit, cap time.Duration) func(uint) time.Duration {
    	if unit > time.Hour {
    		// Protect against integer overflow
    		panic("unit cannot exceed one hour")
    	}
    	return func(attempt uint) time.Duration {
    		if attempt > 16 {
    			// Protect against integer overflow
    			attempt = 16
    		}
    		// sleep = random_between(unit, min(cap, base * 2 ** attempt))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  10. cmd/bucket-metadata-sys.go

    	sys.Unlock()
    
    	return meta, true, nil
    }
    
    // Init - initializes bucket metadata system for all buckets.
    func (sys *BucketMetadataSys) Init(ctx context.Context, buckets []BucketInfo, objAPI ObjectLayer) error {
    	if objAPI == nil {
    		return errServerNotInitialized
    	}
    
    	sys.objAPI = objAPI
    
    	// Load bucket metadata sys.
    	sys.init(ctx, buckets)
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 19.8K bytes
    - Viewed (0)
Back to top