rotate

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIAMErr

func CheckIAMErr(err error, profile, username string)

CheckIAMErr will handle errors on IAM requests for the entire program

func DeleteUserKeys

func DeleteUserKeys(service *iam.IAM, keyArray []string, profile, username string)

DeleteUserKeys will delete the old keys for a user

func GetNewPair

func GetNewPair(service *iam.IAM, profile, username string) (string, string, string)

GetNewPair will generate new keys for a user

func GetUsername

func GetUsername(profile string) string

GetUsername is the same as aws iam get-user output

func ListUserKeys

func ListUserKeys(service *iam.IAM, profile, username string) ([]string, []string)

ListUserKeys will list the current keys for a user

func Rotate

func Rotate(profile, username string) (string, string, string)

Rotate is the main function which will rotate the keys

Types

This section is empty.

Jump to

Keyboard shortcuts

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