Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for sendEvent (0.08 sec)

  1. cmd/bucket-replication.go

    		sendEvent(eventArgs{
    			BucketName: bucket,
    			Object: ObjectInfo{
    				Bucket:       bucket,
    				Name:         dobj.ObjectName,
    				VersionID:    versionID,
    				DeleteMarker: dobj.DeleteMarker,
    			},
    			UserAgent: "Internal: [Replication]",
    			Host:      globalLocalNodeName,
    			EventName: eventName,
    		})
    	} else {
    		sendEvent(eventArgs{
    			BucketName: bucket,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  2. cmd/object-handlers.go

    		RespElements: extractRespElements(w),
    		UserAgent:    r.UserAgent(),
    		Host:         handlers.GetSourceIP(r),
    	}
    	sendEvent(evt)
    	if objInfo.NumVersions > int(scannerExcessObjectVersions.Load()) {
    		evt.EventName = event.ObjectManyVersions
    		sendEvent(evt)
    
    		auditLogInternal(context.Background(), AuditLogOptions{
    			Event:     "scanner:manyversions",
    			APIName:   "PutObject",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  3. cmd/bucket-handlers.go

    				writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				return
    			}
    
    			// Notify object created events.
    			sendEvent(eventArgsList[i])
    
    			if eventArgsList[i].Object.NumVersions > int(scannerExcessObjectVersions.Load()) {
    				// Send events for excessive versions.
    				sendEvent(eventArgs{
    					EventName:    event.ObjectManyVersions,
    					BucketName:   eventArgsList[i].Object.Bucket,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  4. cmd/event-notification.go

    			if stringsHasPrefixFold(strings.ToLower(k), ReservedMetadataPrefixLower) {
    				continue
    			}
    			newEvent.S3.Object.UserMetadata[k] = v
    		}
    	}
    
    	return newEvent
    }
    
    func sendEvent(args eventArgs) {
    	// avoid generating a notification for REPLICA creation event.
    	if _, ok := args.ReqParams[xhttp.MinIOSourceReplicationRequest]; ok {
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. cmd/data-scanner.go

    		if totalFolders := len(existingFolders) + len(newFolders); totalFolders > int(scannerExcessFolders.Load()) {
    			prefixName := strings.TrimSuffix(folder.name, "/") + "/"
    			sendEvent(eventArgs{
    				EventName:  event.PrefixManyFolders,
    				BucketName: f.root,
    				Object: ObjectInfo{
    					Name: prefixName,
    					Size: int64(totalFolders),
    				},
    				UserAgent: "Scanner",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  6. cmd/object-handlers-common.go

    			}
    			if errs[i] != nil {
    				evArgs.RespElements = map[string]string{
    					"error": fmt.Sprintf("failed to delete %s(%s), with error %v", dobj.ObjectName, dobj.VersionID, errs[i]),
    				}
    			}
    			sendEvent(evArgs)
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 06:33:53 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. cmd/object-multipart-handlers.go

    		RespElements: extractRespElements(w),
    		UserAgent:    r.UserAgent(),
    		Host:         handlers.GetSourceIP(r),
    	}
    	sendEvent(evt)
    
    	if objInfo.NumVersions > int(scannerExcessObjectVersions.Load()) {
    		evt.EventName = event.ObjectManyVersions
    		sendEvent(evt)
    
    		auditLogInternal(context.Background(), AuditLogOptions{
    			Event:     "scanner:manyversions",
    			APIName:   "CompleteMultipartUpload",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  8. cmd/bucket-lifecycle.go

    		eventName = event.ObjectRemovedDeleteMarkerCreated
    	}
    	objInfo := ObjectInfo{
    		Name:         oi.Name,
    		VersionID:    oi.VersionID,
    		DeleteMarker: oi.DeleteMarker,
    	}
    	// Notify object deleted event.
    	sendEvent(eventArgs{
    		EventName:  eventName,
    		BucketName: oi.Bucket,
    		Object:     objInfo,
    		UserAgent:  "Internal: [ILM-Expiry]",
    		Host:       globalLocalNodeName,
    	})
    
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  9. cmd/erasure-object.go

    			continue
    		}
    		er.addPartial(bucket, object, opts.VersionID)
    		break
    	}
    
    	objInfo := fi.ToObjectInfo(bucket, object, opts.Versioned || opts.VersionSuspended)
    	sendEvent(eventArgs{
    		EventName:  eventName,
    		BucketName: bucket,
    		Object:     objInfo,
    		UserAgent:  "Internal: [ILM-Transition]",
    		Host:       globalLocalNodeName,
    	})
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top