aws

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWSSecuritykeyEndPoint = "https://sts.amazonaws.com/"

	AWSSecuritykeyInputDurationSeconds = 900 // 900초 기본설정, accesstoken 과 별도 라이프사이클을 가짐.
	AWSSecuritykeyInputAction          = "AssumeRoleWithWebIdentity"
	AWSSecuritykeyInputVersion         = "2011-06-15"
	AWSSecuritykeyInputRoleSessionName = "web-identity-federation"
)

Variables

View Source
var (
	AWSSecuritykeyInputParams = &AWSSecuritykeyInput{
		DurationSeconds: AWSSecuritykeyInputDurationSeconds,
		Action:          AWSSecuritykeyInputAction,
		Version:         AWSSecuritykeyInputVersion,
		RoleSessionName: AWSSecuritykeyInputRoleSessionName,
	}
)

Functions

func StructToMap

func StructToMap(s interface{}) (map[string]string, error)

Types

type AWS

type AWS struct{}

func (AWS) GetSecurityKey

func (AWS) GetSecurityKey(c buffalo.Context) (*securitykeyprovider.CspCredential, error)

type AWSSecuritykeyInput

type AWSSecuritykeyInput struct {
	DurationSeconds  int    `json:"durationSeconds"`
	Action           string `json:"action"`
	Version          string `json:"version"`
	RoleSessionName  string `json:"roleSessionName"`
	RoleArn          string `json:"roleArn"`
	WebIdentityToken string `json:"webIdentityToken"`
}

AWS sts 요청 파람

type AssumeRoleWithWebIdentityResponse

type AssumeRoleWithWebIdentityResponse struct {
	AssumeRoleWithWebIdentityResult AssumeRoleWithWebIdentityResult `xml:"AssumeRoleWithWebIdentityResult"`
	ResponseMetadata                ResponseMetadata                `xml:"ResponseMetadata"`
}

AWS sts 응답

type AssumeRoleWithWebIdentityResult

type AssumeRoleWithWebIdentityResult struct {
	Audience               string          `xml:"Audience"`
	AssumedRoleUser        AssumedRoleUser `xml:"AssumedRoleUser"`
	Provider               string          `xml:"Provider"`
	Credentials            Credentials     `xml:"Credentials"`
	SubjectFromWebIdentity string          `xml:"SubjectFromWebIdentityToken"`
}

type AssumedRoleUser

type AssumedRoleUser struct {
	AssumedRoleId string `xml:"AssumedRoleId"`
	Arn           string `xml:"Arn"`
}

type Credentials

type Credentials struct {
	AccessKeyId     string `xml:"AccessKeyId"`
	SecretAccessKey string `xml:"SecretAccessKey"`
	SessionToken    string `xml:"SessionToken"`
	Expiration      string `xml:"Expiration"`
}

type ResponseMetadata

type ResponseMetadata struct {
	RequestId string `xml:"RequestId"`
}

Jump to

Keyboard shortcuts

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