@@ -12,10 +12,10 @@ import (
12
12
"github.com/JamesChung/cprl/pkg/client"
13
13
)
14
14
15
- type credentials struct {
16
- AccessKeyID string `json:"sessionId"`
17
- SecretAccessKey string `json:"sessionKey"`
18
- SessionToken string `json:"sessionToken"`
15
+ type sessionCredentials struct {
16
+ SessionID string `json:"sessionId"`
17
+ SessionKey string `json:"sessionKey"`
18
+ SessionToken string `json:"sessionToken"`
19
19
}
20
20
21
21
func GetCredentials (profile string ) (aws.Credentials , error ) {
@@ -149,10 +149,10 @@ func StringifyCredentials(creds aws.Credentials) (string, error) {
149
149
}
150
150
151
151
func StringifySessionCredentials (creds aws.Credentials ) (string , error ) {
152
- b , err := json .Marshal (credentials {
153
- AccessKeyID : creds .AccessKeyID ,
154
- SecretAccessKey : creds .SecretAccessKey ,
155
- SessionToken : creds .SessionToken ,
152
+ b , err := json .Marshal (sessionCredentials {
153
+ SessionID : creds .AccessKeyID ,
154
+ SessionKey : creds .SecretAccessKey ,
155
+ SessionToken : creds .SessionToken ,
156
156
})
157
157
if err != nil {
158
158
return "" , err
0 commit comments