mirror of
https://github.com/minio/minio.git
synced 2025-11-28 21:18:10 -05:00
Generalize error messages for remote targets (#10638)
This is to allow remote targets to be generalized for replication/ILM transition Also adding a field in BucketTarget to identify a remote target with a label.
This commit is contained in:
committed by
GitHub
parent
ed6d2a100f
commit
907a171edd
@@ -94,6 +94,7 @@ type BucketTarget struct {
|
||||
Arn string `json:"arn,omitempty"`
|
||||
Type ServiceType `json:"type"`
|
||||
Region string `json:"omitempty"`
|
||||
Label string `json:"label,omitempty"`
|
||||
}
|
||||
|
||||
// Clone returns shallow clone of BucketTarget without secret key in credentials
|
||||
@@ -109,6 +110,7 @@ func (t *BucketTarget) Clone() BucketTarget {
|
||||
Arn: t.Arn,
|
||||
Type: t.Type,
|
||||
Region: t.Region,
|
||||
Label: t.Label,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user