aws

package
v0.0.0-...-d4da903 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssumeRole

func AssumeRole(c fiber.Ctx) error

func Login

func Login(c fiber.Ctx) error

Types

type Assertion

type Assertion struct {
	AttributeStatement AttributeStatement
}

type AssumeRoleRequest

type AssumeRoleRequest struct {
	UserInfo
	PrincipalArn  string `json:"principalArn"`
	RoleArn       string `json:"roleArn"`
	SAMLAssertion string `json:"samlAssertion"`
}

func (AssumeRoleRequest) Assume

func (assumeRoleRequest AssumeRoleRequest) Assume() (*sts.AssumeRoleWithSAMLOutput, error)

type AssumeRoleResponse

type AssumeRoleResponse struct {
	Credentials
	Expiration *time.Time `json:"expiration"`
}

type Attribute

type Attribute struct {
	Values []string `xml:"AttributeValue"`
}

type AttributeStatement

type AttributeStatement struct {
	Attributes []Attribute `xml:"Attribute"`
}

type Credentials

type Credentials struct {
	AccessKeyId     string `json:"accessKeyId"`
	SecretAccessKey string `json:"secretAccessKey"`
	SessionToken    string `json:"sessionToken"`
}

type LoginResponse

type LoginResponse struct {
	RoleInfo      []RoleInfo `json:"roleInfo"`
	SamlAssertion string     `json:"samlAssertion"`
}

type RoleInfo

type RoleInfo struct {
	PrincipalArn string `json:"principalArn"`
	RoleArn      string `json:"roleArn"`
}

type UserInfo

type UserInfo struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

func (UserInfo) LoginAWS

func (userInfo UserInfo) LoginAWS() *LoginResponse

type XmlResponse

type XmlResponse struct {
	Assertion Assertion
}

Jump to

Keyboard shortcuts

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