NewStatic returns a pointer to a new Credentials object wrapping a static credentials value provider.
(id, secret, token string, signerType SignatureType)
| 40 | // NewStatic returns a pointer to a new Credentials object |
| 41 | // wrapping a static credentials value provider. |
| 42 | func NewStatic(id, secret, token string, signerType SignatureType) *Credentials { |
| 43 | return New(&Static{ |
| 44 | Value: Value{ |
| 45 | AccessKeyID: id, |
| 46 | SecretAccessKey: secret, |
| 47 | SessionToken: token, |
| 48 | SignerType: signerType, |
| 49 | }, |
| 50 | }) |
| 51 | } |
| 52 | |
| 53 | // Retrieve returns the static credentials. |
| 54 | func (s *Static) Retrieve() (Value, error) { |