assume

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssumeCommand

func AssumeCommand(c *cli.Context) error

func GetCliApp

func GetCliApp() *cli.App

func GlobalFlags added in v0.1.4

func GlobalFlags() []cli.Flag

Prevent issues where these flags are initialised in some part of the program then used by another part For our use case, we need fresh copies of these flags in the app and in the assume command we use this to allow flags to be set on either side of the profile arg e.g `assume -c profile-name -r ap-southeast-2`

func PrepareStringsForShellScript added in v0.1.6

func PrepareStringsForShellScript(in []string) []interface{}

PrepareCredentialsForShellScript will set empty values to "None", this is required by the shell script to identify which variables to unset it is also required to ensure that the return values are correctly split, e.g if sessionToken is "" then profile name will be used to set the session token environment variable

func UnsetAction added in v0.1.8

func UnsetAction(c *cli.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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