S3API is the interface for S3 operations needed by Leaser.
| 34 | |
| 35 | // S3API is the interface for S3 operations needed by Leaser. |
| 36 | type S3API interface { |
| 37 | GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error) |
| 38 | PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error) |
| 39 | DeleteObject(ctx context.Context, params *s3.DeleteObjectInput, optFns ...func(*s3.Options)) (*s3.DeleteObjectOutput, error) |
| 40 | } |
| 41 | |
| 42 | type Leaser struct { |
| 43 | s3 S3API |
no outgoing calls
no test coverage detected