PresignedGetObject - Returns a presigned URL to access an object data without credentials. URL can have a maximum expiry of upto 7days or a minimum of 1sec. Additionally you can override a set of response headers using the query parameters.
(ctx context.Context, bucketName, objectName string, expires time.Duration, reqParams url.Values)
| 67 | // upto 7days or a minimum of 1sec. Additionally you can override |
| 68 | // a set of response headers using the query parameters. |
| 69 | func (c *Client) PresignedGetObject(ctx context.Context, bucketName, objectName string, expires time.Duration, reqParams url.Values) (u *url.URL, err error) { |
| 70 | if err = s3utils.CheckValidObjectName(objectName); err != nil { |
| 71 | return nil, err |
| 72 | } |
| 73 | return c.presignURL(ctx, http.MethodGet, bucketName, objectName, expires, reqParams, nil) |
| 74 | } |
| 75 | |
| 76 | // PresignedHeadObject - Returns a presigned URL to access |
| 77 | // object metadata without credentials. URL can have a maximum expiry |
no test coverage detected