Documentation
¶
Index ¶
- Constants
- Variables
- func AWSConfigFileLoader(AWSProfile string, version string) aws.Config
- func AWSWhoami(awsProfile string, version string) (*sts.GetCallerIdentityOutput, error)
- func AzGetResourceGroups(subscriptionID string, authorizer autorest.Authorizer) []string
- func AzGetScopeInformation() map[string]map[string][]string
- func AzNewGraphAuthorizer(tenantID string) autorest.Authorizer
- func AzNewResourceManagerAuthorizer() autorest.Authorizer
- func BuildAWSPath(Caller sts.GetCallerIdentityOutput) string
- func CheckErr(e error, msg string)
- func ConfirmSelectedProfiles(AWSProfiles []string) bool
- func Contains(element string, array []string) bool
- func GetAllAWSProfiles(AWSConfirm bool) []string
- func GetLogDirPath() *string
- func GetSelectedAWSProfiles(AWSProfilesListPath string) []string
- func InitLogging() *os.File
- func LoadFileLinesIntoArray(input string) []string
- func OutputSelector(verbosity int, outputType string, header []string, body [][]string, ...)
- func TxtLogger() *logrus.Logger
- type OutputData2
Constants ¶
View Source
const AzureOutputDirectory = "/azure/"
View Source
const CloudFoxClientDirName = ".cloudfox"
View Source
const LogFileName = "cloudfox.log"
Variables ¶
View Source
var ( TxtLoggerName = "root" TxtLog = TxtLogger() UtilsFs = afero.NewOsFs() )
Functions ¶
func AWSWhoami ¶
func AWSWhoami(awsProfile string, version string) (*sts.GetCallerIdentityOutput, error)
func AzGetResourceGroups ¶
func AzGetResourceGroups(subscriptionID string, authorizer autorest.Authorizer) []string
func AzGetScopeInformation ¶
func AzNewGraphAuthorizer ¶
func AzNewGraphAuthorizer(tenantID string) autorest.Authorizer
func AzNewResourceManagerAuthorizer ¶
func AzNewResourceManagerAuthorizer() autorest.Authorizer
func BuildAWSPath ¶ added in v1.7.1
func BuildAWSPath(Caller sts.GetCallerIdentityOutput) string
func ConfirmSelectedProfiles ¶ added in v1.7.2
func GetAllAWSProfiles ¶ added in v1.7.2
func GetLogDirPath ¶
func GetLogDirPath() *string
This function returns ~/.cloudfox. If the folder does not exist the function creates it.
func GetSelectedAWSProfiles ¶ added in v1.7.2
func InitLogging ¶
Initializes logging. Don't forget to use 'defer file.close()' after invoking this function.
func LoadFileLinesIntoArray ¶
func OutputSelector ¶
func OutputSelector(verbosity int, outputType string, header []string, body [][]string, outputDirectory string, fileName string, callingModule string)
verbosity = 1 (Output and loot printed to file). verbosity = 2 (Output and loot printed to file, output printed screen). verbosity = 3 (Output and loot printed to file and screen). outputType = "table", "csv"
Types ¶
Click to show internal directories.
Click to hide internal directories.