awsconsoleurl

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: MIT Imports: 8 Imported by: 1

README

go-aws-console-url

A helper package to generate a console URL from some credentials.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool

Debug - Enables debug output

Functions

func GetSignInURL

func GetSignInURL(creds *credentials.Value) (string, error)

GetSignInURL - Returns the sign-in URL as a string.

Types

type SignInToken

type SignInToken struct {
	Token string `json:"SigninToken"`
}

SignInToken - The payload that's returned from the token request endpoint.

func GetSignInToken

func GetSignInToken(creds *credentials.Value) (*SignInToken, error)

GetSignInToken - Sends the initial request to retrieve the sign-in token.

type URLCredentials

type URLCredentials struct {
	SessionID    string `json:"sessionId"`
	SessionKey   string `json:"sessionKey"`
	SessionToken string `json:"sessionToken"`
}

URLCredentials - The data structure that is embedded into the URL in the Session query parameter.

Jump to

Keyboard shortcuts

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