1 Star 0 Fork 0

powerpaas/machine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
awscredentials.go 627 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jean-Laurent de Morlhon 提交于 2016-01-14 15:31 . Allow stubbing AWS Login
package amazonec2
import "github.com/aws/aws-sdk-go/aws/credentials"
type awsCredentials interface {
NewStaticCredentials(id, secret, token string) *credentials.Credentials
NewSharedCredentials(filename, profile string) *credentials.Credentials
}
type defaultAWSCredentials struct{}
func (c *defaultAWSCredentials) NewStaticCredentials(id, secret, token string) *credentials.Credentials {
return credentials.NewStaticCredentials(id, secret, token)
}
func (c *defaultAWSCredentials) NewSharedCredentials(filename, profile string) *credentials.Credentials {
return credentials.NewSharedCredentials(filename, profile)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/powerpaas/machine.git
git@gitee.com:powerpaas/machine.git
powerpaas
machine
machine
v0.7.0-rc3

搜索帮助