Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package credentials |
||
2 | |||
3 | type BearerTokenCredential struct { |
||
|
|||
4 | BearerToken string |
||
5 | } |
||
6 | |||
7 | // newBearerTokenCredential return a BearerTokenCredential object |
||
8 | func newBearerTokenCredential(token string) *BearerTokenCredential { |
||
9 | return &BearerTokenCredential{ |
||
10 | BearerToken: token, |
||
11 | } |
||
12 | } |
||
13 | |||
14 | func (b *BearerTokenCredential) GetAccessKeyID() (string, error) { |
||
15 | return "", nil |
||
16 | } |
||
17 | |||
18 | func (b *BearerTokenCredential) GetAccessSecret() (string, error) { |
||
19 | return "", nil |
||
20 | } |
||
21 | |||
22 | func (b *BearerTokenCredential) GetSecurityToken() (string, error) { |
||
23 | return "", nil |
||
24 | } |
||
25 | |||
26 | func (b *BearerTokenCredential) GetBearerToken() string { |
||
27 | return b.BearerToken |
||
28 | } |
||
29 | |||
30 | func (b *BearerTokenCredential) GetType() string { |
||
31 | return "bearer" |
||
32 | } |
||
33 |