mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Add support for ILM transition (#10565)
This PR adds transition support for ILM to transition data to another MinIO target represented by a storage class ARN. Subsequent GET or HEAD for that object will be streamed from the transition tier. If PostRestoreObject API is invoked, the transitioned object can be restored for duration specified to the source cluster.
This commit is contained in:
committed by
Harshavardhana
parent
8f7fe0405e
commit
1ebf6f146a
@@ -35,11 +35,13 @@ type ServiceType string
|
||||
const (
|
||||
// ReplicationService specifies replication service
|
||||
ReplicationService ServiceType = "replication"
|
||||
// ILMService specifies ilm service
|
||||
ILMService ServiceType = "ilm"
|
||||
)
|
||||
|
||||
// IsValid returns true if ARN type represents replication
|
||||
// IsValid returns true if ARN type represents replication or ilm
|
||||
func (t ServiceType) IsValid() bool {
|
||||
return t == ReplicationService
|
||||
return t == ReplicationService || t == ILMService
|
||||
}
|
||||
|
||||
// ARN is a struct to define arn.
|
||||
|
||||
Reference in New Issue
Block a user