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

Method setSeedSignature

pkg/signer/request-signature-streaming.go:183–192  ·  view source on GitHub ↗

getSeedSignature - returns the seed signature for a given request.

(req *http.Request)

Source from the content-addressed store, hash-verified

181
182// getSeedSignature - returns the seed signature for a given request.
183func (s *StreamingReader) setSeedSignature(req *http.Request) {
184 serviceType := s.serviceType
185 if serviceType == "" {
186 serviceType = ServiceTypeS3
187 }
188 canonicalRequest := getCanonicalRequest(*req, ignoredStreamingHeaders, getHashedPayload(*req))
189 stringToSign := getStringToSignV4(s.reqTime, s.region, canonicalRequest, serviceType)
190 signingKey := getSigningKey(s.secretAccessKey, s.region, s.reqTime, serviceType)
191 s.seedSignature = getSignature(signingKey, stringToSign)
192}
193
194// StreamingReader implements chunked upload signature as a reader on
195// top of req.Body's ReaderCloser chunk header;data;... repeat

Callers 3

StreamingSignV4ExpressFunction · 0.95
StreamingSignV4Function · 0.95
StreamingSignV4OutpostsFunction · 0.95

Calls 5

getCanonicalRequestFunction · 0.85
getHashedPayloadFunction · 0.85
getStringToSignV4Function · 0.85
getSigningKeyFunction · 0.85
getSignatureFunction · 0.85

Tested by

no test coverage detected