Get returns the credentials value, or error if the credentials Value failed to be retrieved. Will return the cached credentials Value if it has not expired. If the credentials Value has expired the Provider's Retrieve() will be called to refresh the credentials. If Credentials.Expire() was called
()
| 177 | // used. To get new credentials use the Credentials.GetWithContext function |
| 178 | // to ensure the proper context (i.e. HTTP client) will be used. |
| 179 | func (c *Credentials) Get() (Value, error) { |
| 180 | return c.GetWithContext(nil) |
| 181 | } |
| 182 | |
| 183 | // GetWithContext returns the credentials value, or error if the |
| 184 | // credentials Value failed to be retrieved. |