Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 65 for objectNames (0.1 sec)

  1. internal/event/target/mysql.go

    func (target *MySQLTarget) send(eventData event.Event) error {
    	if target.args.Format == event.NamespaceFormat {
    		objectName, err := url.QueryUnescape(eventData.S3.Object.Key)
    		if err != nil {
    			return err
    		}
    		key := eventData.S3.Bucket.Name + "/" + objectName
    
    		if eventData.EventName == event.ObjectRemovedDelete {
    			_, err = target.deleteStmt.Exec(key)
    		} else {
    			var data []byte
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. cmd/batch-expire.go

    }
    
    func (oiCache objInfoCache) Add(toDel ObjectToDelete, oi *ObjectInfo) {
    	oiCache[fmt.Sprintf("%s-%s", toDel.ObjectName, toDel.VersionID)] = oi
    }
    
    func (oiCache objInfoCache) Get(toDel ObjectToDelete) (*ObjectInfo, bool) {
    	oi, ok := oiCache[fmt.Sprintf("%s-%s", toDel.ObjectName, toDel.VersionID)]
    	return oi, ok
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. internal/event/target/amqp.go

    func (target *AMQPTarget) send(eventData event.Event, ch *amqp091.Channel, confirms chan amqp091.Confirmation) error {
    	objectName, err := url.QueryUnescape(eventData.S3.Object.Key)
    	if err != nil {
    		return err
    	}
    	key := eventData.S3.Bucket.Name + "/" + objectName
    
    	data, err := json.Marshal(event.Log{EventName: eventData.EventName, Key: key, Records: []event.Event{eventData}})
    	if err != nil {
    		return err
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. internal/event/target/nats.go

    	return target.send(eventData)
    }
    
    // send - sends an event to the Nats.
    func (target *NATSTarget) send(eventData event.Event) error {
    	objectName, err := url.QueryUnescape(eventData.S3.Object.Key)
    	if err != nil {
    		return err
    	}
    	key := eventData.S3.Bucket.Name + "/" + objectName
    
    	data, err := json.Marshal(event.Log{EventName: eventData.EventName, Key: key, Records: []event.Event{eventData}})
    	if err != nil {
    		return err
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  5. cmd/utils.go

    	if req != nil {
    		req.Lock()
    		defer req.Unlock()
    		req.Objects = make([]logger.ObjectVersion, 0, len(objects))
    		for _, ov := range objects {
    			req.Objects = append(req.Objects, logger.ObjectVersion{
    				ObjectName: ov.ObjectName,
    				VersionID:  ov.VersionID,
    			})
    		}
    		return logger.SetReqInfo(ctx, req)
    	}
    	return ctx
    }
    
    // Returns context with ReqInfo details set in the context.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  6. cmd/erasure-object.go

    				DeleteMarkerMTime:     DeleteMarkerMTime{vr.ModTime},
    				ObjectName:            vr.Name,
    				ReplicationState:      vr.ReplicationState,
    			}
    		} else {
    			dobjects[i] = DeletedObject{
    				ObjectName:       vr.Name,
    				VersionID:        vr.VersionID,
    				ReplicationState: vr.ReplicationState,
    			}
    		}
    		versionsMap[objects[i].ObjectName] = v
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool.go

    	dobjects := make([]DeletedObject, len(objects))
    	objSets := set.NewStringSet()
    	for i := range derrs {
    		objects[i].ObjectName = encodeDirObject(objects[i].ObjectName)
    
    		derrs[i] = checkDelObjArgs(ctx, bucket, objects[i].ObjectName)
    		objSets.Add(objects[i].ObjectName)
    	}
    
    	// Acquire a bulk write lock across 'objects'
    	multiDeleteLock := z.NewNSLock(bucket, objSets.ToSlice()...)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  8. internal/event/target/elasticsearch.go

    	if target.args.Format == event.NamespaceFormat {
    		objectName, err := url.QueryUnescape(eventData.S3.Object.Key)
    		if err != nil {
    			return err
    		}
    
    		// Calculate a hash of the key for the id of the ES document.
    		// Id's are limited to 512 bytes in V7+, so we need to do this.
    		var keyHash string
    		{
    			key := eventData.S3.Bucket.Name + "/" + objectName
    			if target.client.isAtleastV7() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. cmd/data-scanner.go

    			}
    
    			// Get file size, ignore errors.
    			item := scannerItem{
    				Path:        pathJoin(f.root, entName),
    				Typ:         typ,
    				bucket:      bucket,
    				prefix:      path.Dir(prefix),
    				objectName:  path.Base(entName),
    				debug:       f.dataUsageScannerDebug,
    				lifeCycle:   activeLifeCycle,
    				replication: replicationCfg,
    			}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  10. cmd/data-scanner_test.go

    		lifecycleConfig:           &lc,
    		versioningConfig:          &vcfg,
    	}
    	globalBucketMetadataSys.Set(bucket, meta)
    	item := scannerItem{
    		Path:       obj,
    		bucket:     bucket,
    		prefix:     "",
    		objectName: obj,
    		lifeCycle:  &lc,
    	}
    
    	modTime := time.Now()
    	uuids := make([]uuid.UUID, 5)
    	for i := range uuids {
    		uuids[i] = uuid.UUID([16]byte{15: uint8(i + 1)})
    	}
    	fivs := make([]FileInfo, 5)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 03 11:18:58 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top