Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for UTCNow (0.07 sec)

  1. cmd/iam-store.go

    	return MappedPolicy{Version: 1, Policies: policy, UpdatedAt: UTCNow()}
    }
    
    // PolicyDoc represents an IAM policy with some metadata.
    type PolicyDoc struct {
    	Version    int `json:",omitempty"`
    	Policy     policy.Policy
    	CreateDate time.Time `json:",omitempty"`
    	UpdateDate time.Time `json:",omitempty"`
    }
    
    func newPolicyDoc(p policy.Policy) PolicyDoc {
    	now := UTCNow().Round(time.Millisecond)
    	return PolicyDoc{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    	req, err := newTestStreamingRequest(method, urlStr, contentLength, chunkSize, body)
    	if err != nil {
    		return nil, err
    	}
    
    	currTime := UTCNow()
    	signature, err := signStreamingRequest(req, accessKey, secretKey, currTime)
    	if err != nil {
    		return nil, err
    	}
    
    	// skew the time between the chunk signature calculation and seed signature.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  3. cmd/erasure-object.go

    		// preserve destination versionId if specified.
    		if versionID == "" {
    			versionID = mustGetUUID()
    			fi.IsLatest = true // we are creating a new version so this is latest.
    		}
    	}
    
    	modTime = UTCNow() // We only preserve modTime if dstOpts.MTime is true.
    	// in all other cases mtime is latest.
    
    	fi.VersionID = versionID // set any new versionID we might have created
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  4. cmd/admin-handlers-users.go

    	}
    
    	replLogIf(ctx, globalSiteReplicationSys.IAMChangeHook(ctx, madmin.SRIAMItem{
    		Type: madmin.SRIAMItemIAMUser,
    		IAMUser: &madmin.SRIAMUser{
    			AccessKey:   accessKey,
    			IsDeleteReq: true,
    		},
    		UpdatedAt: UTCNow(),
    	}))
    }
    
    // ListBucketUsers - GET /minio/admin/v3/list-users?bucket={bucket}
    func (a adminAPIHandlers) ListBucketUsers(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  5. cmd/iam.go

    	case <-sys.configLoaded:
    		cleanQuery := sys.createCleanEntitiesQuery(q, true)
    		pe := sys.store.ListPolicyMappings(cleanQuery, sys.LDAPConfig.IsLDAPUserDN, sys.LDAPConfig.IsLDAPGroupDN, sys.LDAPConfig.DecodeDN)
    		pe.Timestamp = UTCNow()
    		return &pe, nil
    	case <-ctx.Done():
    		return nil, ctx.Err()
    	}
    }
    
    // IsTempUser - returns if given key is a temporary user and parent user.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  6. cmd/batch-handlers.go

    		}
    	}
    }
    
    func (ri *batchJobInfo) updateAfter(ctx context.Context, api ObjectLayer, duration time.Duration, job BatchJobRequest) error {
    	if ri == nil {
    		return errInvalidArgument
    	}
    	now := UTCNow()
    	ri.mu.Lock()
    	var (
    		format, version uint16
    		jobTyp          string
    	)
    
    	if now.Sub(ri.LastUpdate) >= duration {
    		switch job.Type() {
    		case madmin.BatchJobReplicate:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  7. cmd/xl-storage_test.go

    	}
    	var versions [50]string
    	for i := range versions {
    		versions[i] = uuid.New().String()
    		fi := FileInfo{
    			Name: object, Volume: volume, VersionID: versions[i], ModTime: UTCNow(), DataDir: "", Size: 10000,
    			Erasure: ErasureInfo{
    				Algorithm:    erasureAlgorithm,
    				DataBlocks:   4,
    				ParityBlocks: 4,
    				BlockSize:    blockSizeV2,
    				Index:        1,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 66.7K bytes
    - Viewed (0)
Back to top