alibaba

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlibabaSecuritykeyEndPoint = "https://sts.cn-beijing.aliyuncs.com"
	HeaderxacsVersion          = "2015-04-01"
	HeaderxacsAction           = "AssumeRoleWithOIDC"
)

Variables

This section is empty.

Functions

func StructToUrlValues

func StructToUrlValues(s interface{}) (url.Values, error)

func TimeStampNowISO8601

func TimeStampNowISO8601() string

Types

type Alibaba

type Alibaba struct{}

func (Alibaba) GetSecurityKey

type AlibabaAssumeRoleWithOIDCResponse

type AlibabaAssumeRoleWithOIDCResponse struct {
	XMLName       xml.Name `xml:"AssumeRoleWithOIDCResponse"`
	RequestId     string   `xml:"RequestId"`
	OIDCTokenInfo struct {
		Issuer           string `xml:"Issuer"`
		IssuanceTime     string `xml:"IssuanceTime"`
		VerificationInfo string `xml:"VerificationInfo"`
		ExpirationTime   string `xml:"ExpirationTime"`
		Subject          string `xml:"Subject"`
		ClientIds        string `xml:"ClientIds"`
	} `xml:"OIDCTokenInfo"`
	AssumedRoleUser struct {
		Arn           string `xml:"Arn"`
		AssumedRoleId string `xml:"AssumedRoleId"`
	} `xml:"AssumedRoleUser"`
	Credentials struct {
		SecurityToken   string `xml:"SecurityToken"`
		AccessKeyId     string `xml:"AccessKeyId"`
		AccessKeySecret string `xml:"AccessKeySecret"`
		Expiration      string `xml:"Expiration"`
	} `xml:"Credentials"`
}

type AlibabaSecuritykeyParamInput

type AlibabaSecuritykeyParamInput struct {
	OIDCProviderArn string
	RoleArn         string
	OIDCToken       string
	RoleSessionName string
	Timestamp       string
}

Alibaba sts 요청 파람

Jump to

Keyboard shortcuts

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