@@ -38,7 +38,6 @@ import (
38
38
"github.com/minio/mc/pkg/probe"
39
39
"github.com/minio/minio-go/v7"
40
40
"github.com/minio/minio-go/v7/pkg/credentials"
41
- "github.com/minio/minio-go/v7/pkg/lifecycle"
42
41
"github.com/minio/minio-go/v7/pkg/notification"
43
42
"github.com/minio/minio-go/v7/pkg/tags"
44
43
)
@@ -74,8 +73,6 @@ type MinioClient interface {
74
73
setObjectLockConfig (ctx context.Context , bucketName string , mode * minio.RetentionMode , validity * uint , unit * minio.ValidityUnit ) error
75
74
getBucketObjectLockConfig (ctx context.Context , bucketName string ) (mode * minio.RetentionMode , validity * uint , unit * minio.ValidityUnit , err error )
76
75
getObjectLockConfig (ctx context.Context , bucketName string ) (lock string , mode * minio.RetentionMode , validity * uint , unit * minio.ValidityUnit , err error )
77
- getLifecycleRules (ctx context.Context , bucketName string ) (lifecycle * lifecycle.Configuration , err error )
78
- setBucketLifecycle (ctx context.Context , bucketName string , config * lifecycle.Configuration ) error
79
76
copyObject (ctx context.Context , dst minio.CopyDestOptions , src minio.CopySrcOptions ) (minio.UploadInfo , error )
80
77
GetBucketTagging (ctx context.Context , bucketName string ) (* tags.Tags , error )
81
78
SetBucketTagging (ctx context.Context , bucketName string , tags * tags.Tags ) error
@@ -209,14 +206,6 @@ func (c minioClient) getObjectLockConfig(ctx context.Context, bucketName string)
209
206
return c .client .GetObjectLockConfig (ctx , bucketName )
210
207
}
211
208
212
- func (c minioClient ) getLifecycleRules (ctx context.Context , bucketName string ) (lifecycle * lifecycle.Configuration , err error ) {
213
- return c .client .GetBucketLifecycle (ctx , bucketName )
214
- }
215
-
216
- func (c minioClient ) setBucketLifecycle (ctx context.Context , bucketName string , config * lifecycle.Configuration ) error {
217
- return c .client .SetBucketLifecycle (ctx , bucketName , config )
218
- }
219
-
220
209
func (c minioClient ) copyObject (ctx context.Context , dst minio.CopyDestOptions , src minio.CopySrcOptions ) (minio.UploadInfo , error ) {
221
210
return c .client .CopyObject (ctx , dst , src )
222
211
}
0 commit comments