aws

package
v2.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CagoManagedKey = "cago_managed"

CagoManagedKey The key in the credentials file indicating the profile is managed by Cago

View Source
var CredentialsFileLocation = credentialsFilePath + "credentials"

CredentialsFileLocation The location of the credentials file

Functions

func GetAllManagedProfileNames

func GetAllManagedProfileNames() []string

GetAllManagedProfileNames returns a list of the names of all managed profiles

func GetCredentialsFile

func GetCredentialsFile() (credentialsFile *ini.File, err error)

GetCredentialsFile Returns the credentials file, creates a new empty file if it does not already exist

func GetProfileKey

func GetProfileKey(profileName string, keyName string) (string, error)

GetProfileKey returns the value for the specified profile and key

func HasManagedProfiles

func HasManagedProfiles() bool

HasManagedProfiles returns true if there are managed profiles in the credentials file; false otherwise

func HasProfileExpired

func HasProfileExpired(section *ini.Section) bool

HasProfileExpired returns whether the specified profile has expired or not

Types

type Role

type Role struct {
	RoleARN      string
	PrincipalARN string
	Name         string
}

Role aws role attributes

func ParseAWSRoles

func ParseAWSRoles(roles []string) ([]*Role, error)

ParseAWSRoles parses and splits the roles while also validating the contents

Jump to

Keyboard shortcuts

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