sts

package
v0.0.0-...-e746f62 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliyunStsClient

type AliyunStsClient struct {
	ChildAccountKeyId  string
	ChildAccountSecret string
	RoleAcs            string
}

func NewStsClient

func NewStsClient(key, secret, roleAcs string) *AliyunStsClient

func (*AliyunStsClient) GenerateSignatureUrl

func (cli *AliyunStsClient) GenerateSignatureUrl(sessionName, durationSeconds string) (string, error)

func (*AliyunStsClient) GetStsResponse

func (cli *AliyunStsClient) GetStsResponse(url string) ([]byte, error)

请求构造好的URL,获得授权信息 TODO: 安全认证 HTTPS

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL