MCPcopy
hub / github.com/minio/minio-go / Presign

Method Presign

api-presigned.go:111–113  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

109// with custom request params and extra signed headers. URL can have a maximum
110// expiry of upto 7days or a minimum of 1sec.
111func (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.
116func (c *Client) PresignedPostPolicy(ctx context.Context, p *PostPolicy) (u *url.URL, formData map[string]string, err error) {

Callers

nothing calls this directly

Calls 1

presignURLMethod · 0.95

Tested by

no test coverage detected