Registry / cloud / baiyubin-aliyun-sts-go-sdk

baiyubin-aliyun-sts-go-sdk

JSON →
library0.0.0-20180326062324-cfa1a18b161fgogounverified

A Go SDK for Alibaba Cloud Security Token Service (STS) to obtain temporary credentials.

go get github.com/baiyubin/aliyun-sts-go-sdk
INSTALL
IMPORT
SIG · BAIYUBIN-ALIYUN-ST
B
baiyubin-aliyun-sts-go-sdk
cloudgov0.0.0-20180326062324-cfa1a18b161f
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sts
github.com/baiyubin/aliyun-sts-go-sdk

Assume a role and get temporary security credentials.

package main import ( "fmt" "github.com/baiyubin/aliyun-sts-go-sdk/sts" ) func main() { client := sts.NewClient("access-key-id", "access-key-secret", "role-arn", "session-name") resp, err := client.AssumeRole(3600) if err != nil { panic(err) } fmt.Printf("AccessKeyId: %s\n", resp.Credentials.AccessKeyId) }
Debug
Known issues
breakingThis SDK may be outdated; consider using the official Alibaba Cloud SDK.
fix
Use github.com/aliyun/alibaba-cloud-sdk-go/services/sts instead.
affects: >=0.0.0
Upgrade
Version history
0.0.0-20180326062324-cfa1a18b161flatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
Resources
baiyubin-aliyun-sts-go-sdk — go get baiyubin-aliyun-sts-go-sdk · libregistry