Documentation
¶
Index ¶
- func GetActiveSshPublicKeys(username string) ([]*iam.SSHPublicKeyMetadata, error)
- func GetGroupUsers(group *iam.Group) ([]*iam.User, error)
- func GetGroups(prefixes []string) ([]*iam.Group, error)
- func GetRole() (string, error)
- func GetSshEncodedPublicKey(username, keyID *string) (*string, error)
- func GetUser(username string) (*iam.User, error)
- func UserNames(users []*iam.User) []string
- type ARN
- type IamInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetActiveSshPublicKeys ¶
func GetActiveSshPublicKeys(username string) ([]*iam.SSHPublicKeyMetadata, error)
func GetRole ¶
curl http://169.254.169.254/latest/meta-data/iam/info
{ "Code" : "Success", "LastUpdated" : "2016-11-16T18:52:29Z", "InstanceProfileArn" : "arn:aws:iam::756413706286:instance-profile/bastion", "InstanceProfileId" : "AIPAIHHSYB75V3MLIVTG6" }
func GetSshEncodedPublicKey ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.