Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for UTCNow (0.59 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{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  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.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K 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
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  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()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  5. cmd/iam.go

    		return nil, errIAMActionNotAllowed
    	}
    
    	select {
    	case <-sys.configLoaded:
    		pe := sys.store.ListPolicyMappings(q, sys.LDAPConfig.IsLDAPUserDN, sys.LDAPConfig.IsLDAPGroupDN)
    		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.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  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:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.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,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
Back to top