[*] | Anoop | Fix lifecycle rule type
This commit is contained in:
7
types.go
7
types.go
@@ -64,15 +64,12 @@ type StateStoreBackend struct {
|
|||||||
type S3Bucket struct {
|
type S3Bucket struct {
|
||||||
BucketName string `json:"anonymizedBucketName" valid:"required"`
|
BucketName string `json:"anonymizedBucketName" valid:"required"`
|
||||||
BucketTag string `json:"bucketTag" valid:"required"`
|
BucketTag string `json:"bucketTag" valid:"required"`
|
||||||
LifecycleRules []LifecycleRule `json:"lifecycleRules" valid:"required"`
|
LifecycleRules []map[string]LifecycleRule `json:"lifecycleRules" valid:"required"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type LifecycleRule struct {
|
type LifecycleRule struct {
|
||||||
ObjectExpiration *ObjectExpiration `json:"expiration"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type ObjectExpiration struct {
|
|
||||||
Days int `json:"days"`
|
Days int `json:"days"`
|
||||||
|
StorageClass string `json:"storageClass"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadReplica struct {
|
type ReadReplica struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user