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

Function NewChainCredentials

pkg/credentials/chain.go:52–56  ·  view source on GitHub ↗

NewChainCredentials returns a pointer to a new Credentials object wrapping a chain of providers.

(providers []Provider)

Source from the content-addressed store, hash-verified

50// NewChainCredentials returns a pointer to a new Credentials object
51// wrapping a chain of providers.
52func NewChainCredentials(providers []Provider) *Credentials {
53 return New(&Chain{
54 Providers: append([]Provider{}, providers...),
55 })
56}
57
58// RetrieveWithCredContext is like Retrieve with CredContext
59func (c *Chain) RetrieveWithCredContext(cc *CredContext) (Value, error) {

Callers

nothing calls this directly

Calls 1

NewFunction · 0.70

Tested by

no test coverage detected