Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for StatusType (0.07 sec)

  1. cmd/bucket-replication-utils.go

    func (rs *ReplicationState) CompositeReplicationStatus() (st replication.StatusType) {
    	switch {
    	case rs.ReplicationStatusInternal != "":
    		switch replication.StatusType(rs.ReplicationStatusInternal) {
    		case replication.Pending, replication.Completed, replication.Failed, replication.Replica: // for backward compatibility
    			return replication.StatusType(rs.ReplicationStatusInternal)
    		default:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. internal/bucket/replication/datatypes_gen.go

    )
    
    // DecodeMsg implements msgp.Decodable
    func (z *StatusType) DecodeMsg(dc *msgp.Reader) (err error) {
    	{
    		var zb0001 string
    		zb0001, err = dc.ReadString()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		(*z) = StatusType(zb0001)
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    func (z StatusType) EncodeMsg(en *msgp.Writer) (err error) {
    	err = en.WriteString(string(z))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 19:08:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. internal/bucket/replication/datatypes.go

    	// Failed - replication failed.
    	Failed StatusType = "FAILED"
    
    	// Replica - this is a replica.
    	Replica StatusType = "REPLICA"
    )
    
    // String returns string representation of status
    func (s StatusType) String() string {
    	return string(s)
    }
    
    // Empty returns true if this status is not set
    func (s StatusType) Empty() bool {
    	return string(s) == ""
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 19:08:18 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. cmd/object-api-datatypes.go

    	CacheControl string
    
    	// Specify object storage class
    	StorageClass string
    
    	ReplicationStatusInternal string
    	ReplicationStatus         replication.StatusType
    	// User-Defined metadata
    	UserDefined map[string]string
    
    	// User-Defined object tags
    	UserTags string
    
    	// List of individual parts, maximum size of upto 10,000
    	Parts []ObjectPartInfo `json:"-"`
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. cmd/erasure-metadata.go

    func (fi *FileInfo) ReplicationStatus() replication.StatusType {
    	return fi.ReplicationState.CompositeReplicationStatus()
    }
    
    // DeleteMarkerReplicationStatus returns overall replication status for this delete marker version across targets
    func (fi *FileInfo) DeleteMarkerReplicationStatus() replication.StatusType {
    	if fi.Deleted {
    		return fi.ReplicationState.CompositeReplicationStatus()
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  6. cmd/bucket-replication-stats.go

    		r.srStats.update(sr, dID)
    	}
    }
    
    // Update updates in-memory replication statistics with new values.
    func (r *ReplicationStats) Update(bucket string, ri replicatedTargetInfo, status, prevStatus replication.StatusType) {
    	if r == nil {
    		return
    	}
    	var rs replStat
    	switch status {
    	case replication.Pending:
    		if ri.OpType.IsDataReplication() && prevStatus != status {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. cmd/bucket-replication.go

    	meta               map[string]string
    	status             replication.StatusType
    	opType             replication.Type
    	replicationRequest bool // incoming request is a replication request
    }
    
    func (o mustReplicateOptions) ReplicationStatus() (s replication.StatusType) {
    	if rs, ok := o.meta[xhttp.AmzBucketReplicationStatus]; ok {
    		return replication.StatusType(rs)
    	}
    	return s
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  8. cmd/object-api-interface.go

    func (o *ObjectOptions) SetReplicaStatus(st replication.StatusType) {
    	o.DeleteReplication.ReplicaStatus = st
    	o.DeleteReplication.ReplicaTimeStamp = UTCNow()
    }
    
    // DeleteMarkerReplicationStatus - returns replication status of delete marker from DeleteReplication state in ObjectOptions
    func (o *ObjectOptions) DeleteMarkerReplicationStatus() replication.StatusType {
    	return o.DeleteReplication.CompositeReplicationStatus()
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 22 21:57:20 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  9. cmd/bucket-replication-utils_gen.go

    				return
    			}
    			if z.Targets == nil {
    				z.Targets = make(map[string]replication.StatusType, zb0002)
    			} else if len(z.Targets) > 0 {
    				for key := range z.Targets {
    					delete(z.Targets, key)
    				}
    			}
    			for zb0002 > 0 {
    				zb0002--
    				var za0001 string
    				var za0002 replication.StatusType
    				za0001, err = dc.ReadString()
    				if err != nil {
    					err = msgp.WrapError(err, "Targets")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 61.1K bytes
    - Viewed (0)
  10. cmd/object-api-datatypes_gen.go

    			}
    			if z.TargetStatuses == nil {
    				z.TargetStatuses = make(map[string]replication.StatusType, zb0002)
    			} else if len(z.TargetStatuses) > 0 {
    				for key := range z.TargetStatuses {
    					delete(z.TargetStatuses, key)
    				}
    			}
    			for zb0002 > 0 {
    				var za0001 string
    				var za0002 replication.StatusType
    				zb0002--
    				za0001, bts, err = msgp.ReadStringBytes(bts)
    				if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
Back to top