NewIAM returns a pointer to a new Credentials object wrapping the IAM.
(endpoint string)
| 89 | |
| 90 | // NewIAM returns a pointer to a new Credentials object wrapping the IAM. |
| 91 | func NewIAM(endpoint string) *Credentials { |
| 92 | return New(&IAM{ |
| 93 | Endpoint: endpoint, |
| 94 | }) |
| 95 | } |
| 96 | |
| 97 | // RetrieveWithCredContext is like Retrieve with Cred Context |
| 98 | func (m *IAM) RetrieveWithCredContext(cc *CredContext) (Value, error) { |