Presign - returns a presigned URL for any http method of your choice along with custom request params and extra signed headers. URL can have a maximum expiry of upto 7days or a minimum of 1sec.
(ctx context.Context, method, bucketName, objectName string, expires time.Duration, reqParams url.Values)
| 109 | // with custom request params and extra signed headers. URL can have a maximum |
| 110 | // expiry of upto 7days or a minimum of 1sec. |
| 111 | func (c *Client) Presign(ctx context.Context, method, bucketName, objectName string, expires time.Duration, reqParams url.Values) (u *url.URL, err error) { |
| 112 | return c.presignURL(ctx, method, bucketName, objectName, expires, reqParams, nil) |
| 113 | } |
| 114 | |
| 115 | // PresignedPostPolicy - Returns POST urlString, form data to upload an object. |
| 116 | func (c *Client) PresignedPostPolicy(ctx context.Context, p *PostPolicy) (u *url.URL, formData map[string]string, err error) { |
nothing calls this directly
no test coverage detected