A Chain will search for a provider which returns credentials and cache that provider until Retrieve is called again. The Chain provides a way of chaining multiple providers together which will pick the first available using priority order of the Providers in the list. If none of the Providers retr
| 43 | // log.Fatalln(err) |
| 44 | // } |
| 45 | type Chain struct { |
| 46 | Providers []Provider |
| 47 | curr Provider |
| 48 | } |
| 49 | |
| 50 | // NewChainCredentials returns a pointer to a new Credentials object |
| 51 | // wrapping a chain of providers. |
nothing calls this directly
no outgoing calls
no test coverage detected