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

Function NewStaticV2

pkg/credentials/static.go:31–33  ·  view source on GitHub ↗

NewStaticV2 returns a pointer to a new Credentials object wrapping a static credentials value provider, signature is set to v2. If access and secret are not specified then regardless of signature type set it Value will return as anonymous.

(id, secret, token string)

Source from the content-addressed store, hash-verified

29// regardless of signature type set it Value will return
30// as anonymous.
31func NewStaticV2(id, secret, token string) *Credentials {
32 return NewStatic(id, secret, token, SignatureV2)
33}
34
35// NewStaticV4 is similar to NewStaticV2 with similar considerations.
36func NewStaticV4(id, secret, token string) *Credentials {

Callers 1

NewClientFunction · 0.92

Calls 1

NewStaticFunction · 0.85

Tested by

no test coverage detected