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

Method SetEncryption

post-policy.go:367–376  ·  view source on GitHub ↗

SetEncryption - sets encryption headers for POST API

(sse encrypt.ServerSide)

Source from the content-addressed store, hash-verified

365
366// SetEncryption - sets encryption headers for POST API
367func (p *PostPolicy) SetEncryption(sse encrypt.ServerSide) {
368 if sse == nil {
369 return
370 }
371 h := http.Header{}
372 sse.Marshal(h)
373 for k, v := range h {
374 p.formData[k] = v[0]
375 }
376}
377
378// SetUserData - Set user data as a key/value couple.
379// Can be retrieved through a HEAD request or an event.

Callers 2

PutObjectFanOutMethod · 0.95

Calls 1

MarshalMethod · 0.65

Tested by 1