Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 119 for loads (0.18 sec)

  1. cmd/metrics-v3-api.go

    		}
    
    		httpStats := globalBucketHTTPStats.load(bucket)
    		for k, v := range httpStats.currentS3Requests.Load(false) {
    			m.Set(apiRequestsInFlightTotal, float64(v), "bucket", bucket, "name", k, "type", "s3")
    		}
    
    		for k, v := range httpStats.totalS3Requests.Load(false) {
    			m.Set(apiRequestsTotal, float64(v), "bucket", bucket, "name", k, "type", "s3")
    		}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  2. docs/sts/web-identity.py

            allow_redirects=False, auth=(client_id, client_secret))
    
        print('body: ' + id_token_response.text)
    
        # we can now use the id_token as much as we want to access protected resources.
        tokens = json.loads(id_token_response.text)
        id_token = tokens['id_token']
    
        response = sts_client.assume_role_with_web_identity(
            RoleArn='arn:aws:iam::123456789012:user/svc-internal-api',
            RoleSessionName='test',
    Python
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jul 28 01:37:51 GMT 2021
    - 2.9K bytes
    - Viewed (1)
  3. cmd/metrics-v3-types.go

    	buckets     []string
    }
    
    // NewMetricsGroup creates a new MetricsGroup. To create a metrics group for
    // metrics with a `bucket` dimension (label), use `NewBucketMetricsGroup`.
    //
    // The `loader` function loads metrics from the cache and the system.
    func NewMetricsGroup(path collectorPath, descriptors []MetricDescriptor,
    	loader MetricsLoaderFn,
    ) *MetricsGroup {
    	mg := &MetricsGroup{
    		CollectorPath: path,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. cmd/bucket-metadata.go

    func (b *BucketMetadata) SetCreatedAt(createdAt time.Time) {
    	if b.Created.IsZero() {
    		b.Created = UTCNow()
    	}
    	if !createdAt.IsZero() {
    		b.Created = createdAt.UTC()
    	}
    }
    
    // Load - loads the metadata of bucket by name from ObjectLayer api.
    // If an error is returned the returned metadata will be default initialized.
    func readBucketMetadata(ctx context.Context, api ObjectLayer, name string) (BucketMetadata, error) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  5. cmd/event-notification.go

    			if onlyActive {
    				if _, err := target.IsActive(); err != nil {
    					continue
    				}
    			}
    			arns = append(arns, targetID.ToARN(region).String())
    		}
    	}
    
    	return arns
    }
    
    // Loads notification policies for all buckets into EventNotifier.
    func (evnot *EventNotifier) set(bucket BucketInfo, meta BucketMetadata) {
    	config := meta.notificationConfig
    	if config == nil {
    		return
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  6. cmd/bucket-metadata-sys.go

    func (sys *BucketMetadataSys) Initialized() bool {
    	sys.RLock()
    	defer sys.RUnlock()
    
    	return sys.initialized
    }
    
    // Loads bucket metadata for all buckets into BucketMetadataSys.
    func (sys *BucketMetadataSys) init(ctx context.Context, buckets []BucketInfo) {
    	count := 100 // load 100 bucket metadata at a time.
    	failedBuckets := make(map[string]struct{})
    	for {
    		if len(buckets) < count {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  7. cmd/iam-object-store.go

    	for _, item := range iamListing[stsListKey] {
    		userName := path.Dir(item)
    		// loadUser() will delete expired user during the load.
    		err := iamOS.loadUser(ctx, userName, stsUser, stsAccountsFromStore)
    		if err != nil && !errors.Is(err, errNoSuchUser) {
    			iamLogIf(GlobalContext,
    				fmt.Errorf("unable to load user during STS purge: %w (%s)", err, item))
    		}
    
    	}
    	// Loading the STS policy mappings from disk ensures that stale entries
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  8. cmd/notification.go

    	}
    
    	if pools, ok := objAPI.(*erasureServerPools); ok {
    		pools.StopRebalance()
    	}
    }
    
    // LoadRebalanceMeta notifies all peers to load rebalance.bin from object layer.
    // Note: Only peers participating in rebalance operation, namely the first node
    // in each pool will load rebalance.bin.
    func (sys *NotificationSys) LoadRebalanceMeta(ctx context.Context, startRebalance bool) {
    	ng := WithNPeers(len(sys.peerClients))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  9. internal/config/config.go

    // letter. At least 2 characters long.
    var validSiteNameRegex = regexp.MustCompile("^[a-z][a-z0-9-]+$")
    
    // LookupSite - get site related configuration. Loads configuration from legacy
    // region sub-system as well.
    func LookupSite(siteKV KVS, regionKV KVS) (s Site, err error) {
    	if err = CheckValidKeys(SiteSubSys, siteKV, DefaultSiteKVS); err != nil {
    		return
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  10. cmd/erasure-sets.go

    				return i, j, nil
    			}
    		}
    	}
    
    	return -1, -1, fmt.Errorf("DriveID: %s not found", format.Erasure.This)
    }
    
    // connectDisks - attempt to connect all the endpoints, loads format
    // and re-arranges the disks in proper position.
    func (s *erasureSets) connectDisks() {
    	defer func() {
    		s.lastConnectDisksOpTime = time.Now()
    	}()
    
    	var wg sync.WaitGroup
    	diskMap := s.getDiskMap()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 37.5K bytes
    - Viewed (5)
Back to top