Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetQuotaConfig (0.11 sec)

  1. cmd/bucket-metadata-sys.go

    1. return nil, time.Time{}, BucketPolicyNotFound{Bucket: bucket}
    2. }
    3. return meta.policyConfig, meta.PolicyConfigUpdatedAt, nil
    4. }
    5.  
    6. // GetQuotaConfig returns configured bucket quota
    7. // The returned object may not be modified.
    8. func (sys *BucketMetadataSys) GetQuotaConfig(ctx context.Context, bucket string) (*madmin.BucketQuota, time.Time, error) {
    9. meta, _, err := sys.GetConfig(ctx, bucket)
    10. if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. cmd/bucket-quota.go

    1. type BucketQuotaSys struct{}
    2.  
    3. // Get - Get quota configuration.
    4. func (sys *BucketQuotaSys) Get(ctx context.Context, bucketName string) (*madmin.BucketQuota, error) {
    5. cfg, _, err := globalBucketMetadataSys.GetQuotaConfig(ctx, bucketName)
    6. return cfg, err
    7. }
    8.  
    9. // NewBucketQuotaSys returns initialized BucketQuotaSys
    10. func NewBucketQuotaSys() *BucketQuotaSys {
    11. return &BucketQuotaSys{}
    12. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 00:34:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. cmd/admin-bucket-handlers.go

    1. if _, err := objectAPI.GetBucketInfo(ctx, bucket, BucketOptions{}); err != nil {
    2. writeErrorResponseJSON(ctx, w, toAPIError(ctx, err), r.URL)
    3. return
    4. }
    5.  
    6. config, _, err := globalBucketMetadataSys.GetQuotaConfig(ctx, bucket)
    7. if err != nil {
    8. writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    9. return
    10. }
    11.  
    12. configData, err := json.Marshal(config)
    13. if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  4. cmd/site-replication.go

    1. // skip overwrite if local update is newer than peer update.
    2. if !updatedAt.IsZero() {
    3. if _, updateTm, err := globalBucketMetadataSys.GetQuotaConfig(ctx, bucket); err == nil && updateTm.After(updatedAt) {
    4. return nil
    5. }
    6. }
    7.  
    8. if quota != nil {
    9. quotaData, err := json.Marshal(quota)
    10. if err != nil {
    11. return wrapSRErr(err)
    12. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
Back to top