Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for replLogIf (0.21 sec)

  1. cmd/bucket-replication.go

    	size, err := objInfo.GetActualSize()
    	if err != nil {
    		replLogIf(ctx, err)
    		sendEvent(eventArgs{
    			EventName:  event.ObjectReplicationNotTracked,
    			BucketName: bucket,
    			Object:     objInfo,
    			UserAgent:  "Internal: [Replication]",
    			Host:       globalLocalNodeName,
    		})
    		return
    	}
    
    	if tgt.Bucket == "" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  2. cmd/site-replication.go

    				}
    				err := globalBucketTargetSys.SetTarget(ctx, bucket, &bucketTarget, true)
    				if err != nil {
    					replLogIf(ctx, c.annotatePeerErr(peer.Name, "Bucket target creation error", err))
    					continue
    				}
    				targets, err := globalBucketTargetSys.ListBucketTargets(ctx, bucket)
    				if err != nil {
    					replLogIf(ctx, err)
    					continue
    				}
    				tgtBytes, err := json.Marshal(&targets)
    				if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 184.1K bytes
    - Viewed (1)
  3. cmd/sts-handlers.go

    	if err != nil {
    		writeSTSErrorResponse(ctx, w, ErrSTSInternalError, err)
    		return
    	}
    
    	// Call hook for site replication.
    	if cred.ParentUser != globalActiveCred.AccessKey {
    		replLogIf(ctx, globalSiteReplicationSys.IAMChangeHook(ctx, madmin.SRIAMItem{
    			Type: madmin.SRIAMItemSTSAcc,
    			STSCredential: &madmin.SRSTSCredential{
    				AccessKey:    cred.AccessKey,
    				SecretKey:    cred.SecretKey,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  4. cmd/bucket-encryption-handlers.go

    		return
    	}
    
    	// Call site replication hook.
    	//
    	// We encode the xml bytes as base64 to ensure there are no encoding
    	// errors.
    	cfgStr := base64.StdEncoding.EncodeToString(configData)
    	replLogIf(ctx, globalSiteReplicationSys.BucketMetaHook(ctx, madmin.SRBucketMeta{
    		Type:      madmin.SRBucketMetaTypeSSEConfig,
    		Bucket:    bucket,
    		SSEConfig: &cfgStr,
    		UpdatedAt: updatedAt,
    	}))
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  5. cmd/bucket-policy-handlers.go

    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Call site replication hook.
    	replLogIf(ctx, globalSiteReplicationSys.BucketMetaHook(ctx, madmin.SRBucketMeta{
    		Type:      madmin.SRBucketMetaTypePolicy,
    		Bucket:    bucket,
    		Policy:    bucketPolicyBytes,
    		UpdatedAt: updatedAt,
    	}))
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  6. cmd/bucket-versioning-handler.go

    		return
    	}
    
    	// Call site replication hook.
    	//
    	// We encode the xml bytes as base64 to ensure there are no encoding
    	// errors.
    	cfgStr := base64.StdEncoding.EncodeToString(configData)
    	replLogIf(ctx, globalSiteReplicationSys.BucketMetaHook(ctx, madmin.SRBucketMeta{
    		Type:       madmin.SRBucketMetaTypeVersionConfig,
    		Bucket:     bucket,
    		Versioning: &cfgStr,
    		UpdatedAt:  updatedAt,
    	}))
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5K bytes
    - Viewed (0)
  7. cmd/admin-handlers-users.go

    		return
    	}
    
    	if err := globalIAMSys.DeleteUser(ctx, accessKey, true); err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	replLogIf(ctx, globalSiteReplicationSys.IAMChangeHook(ctx, madmin.SRIAMItem{
    		Type: madmin.SRIAMItemIAMUser,
    		IAMUser: &madmin.SRIAMUser{
    			AccessKey:   accessKey,
    			IsDeleteReq: true,
    		},
    		UpdatedAt: UTCNow(),
    	}))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 77.3K bytes
    - Viewed (0)
  8. cmd/logging.go

    package cmd
    
    import (
    	"context"
    
    	"github.com/minio/minio/internal/logger"
    )
    
    func replLogIf(ctx context.Context, err error, errKind ...interface{}) {
    	logger.LogIf(ctx, "replication", err, errKind...)
    }
    
    func replLogOnceIf(ctx context.Context, err error, id string, errKind ...interface{}) {
    	logger.LogOnceIf(ctx, "replication", err, id, errKind...)
    }
    
    func iamLogIf(ctx context.Context, err error, errKind ...interface{}) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  9. cmd/sftp-server-driver.go

    			// mapping.
    			updatedAt, err := globalIAMSys.SetTempUser(context.Background(), cred.AccessKey, cred, "")
    			if err != nil {
    				return nil, err
    			}
    
    			// Call hook for site replication.
    			replLogIf(context.Background(), globalSiteReplicationSys.IAMChangeHook(context.Background(), madmin.SRIAMItem{
    				Type: madmin.SRIAMItemSTSAcc,
    				STSCredential: &madmin.SRSTSCredential{
    					AccessKey:    cred.AccessKey,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  10. cmd/bucket-handlers.go

    		return
    	}
    
    	// Load updated bucket metadata into memory.
    	globalNotificationSys.LoadBucketMetadata(GlobalContext, bucket)
    
    	// Call site replication hook
    	replLogIf(ctx, globalSiteReplicationSys.MakeBucketHook(ctx, bucket, opts))
    
    	// Make sure to add Location information here only for bucket
    	w.Header().Set(xhttp.Location, pathJoin(SlashSeparator, bucket))
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
Back to top