model

package
v0.0.0-...-4f4e16b Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	RoleArn     string
	SessionName string
	Format      string
}

func ParseRequest

func ParseRequest(in string) (*Request, error)

type Response

type Response struct {
	Success     bool                 `yaml:"Success"`
	Error       *string              `yaml:"Error"`
	Credentials *ResponseCredentials `yaml:"Credentials"`
}

func NewErrorResponse

func NewErrorResponse(err error) *Response

func NewSuccessResponse

func NewSuccessResponse(credentials *sts.Credentials) *Response

type ResponseCredentials

type ResponseCredentials struct {
	AccessKeyId     string `yaml:"AccessKeyId"`
	SecretAccessKey string `yaml:"SecretAccessKey"`
	SessionToken    string `yaml:"SessionToken"`
	ExpiresAt       string `yaml:"ExpiresAt"`
}

Jump to

Keyboard shortcuts

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