Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AWSContextKey contextkey
Functions ¶
func RequireAWSCredentials ¶
func RequireAWSCredentials() cli.BeforeFunc
RequireAWSCredentials attempts to load aws credentials, if they don't exist, iot returns a clio.CLIError This function will set the AWS config in context under the key cfaws.AWSConfigContextKey use cfaws.ConfigFromContextOrDefault(ctx) to retrieve the value
func SetAWSContextInContext ¶
func SetAWSContextInContext(ctx context.Context, cfg AWSContext) context.Context
func ShouldShowHelp ¶
func ShouldShowHelp(c *cli.Context) bool
func WithBeforeFuncs ¶
func WithBeforeFuncs(cmd *cli.Command, funcs ...cli.BeforeFunc) *cli.Command
Types ¶
type AWSContext ¶
func AWSContextFromContext ¶
func AWSContextFromContext(ctx context.Context) (AWSContext, error)
AWSContextFromContext requires the RequireAWSCredentials middleware to have run it will include the config and the account id for the current credentials
Click to show internal directories.
Click to hide internal directories.