Documentation
¶
Index ¶
- Constants
- Variables
- func AWSConfigFileLoader(AWSProfile string) aws.Config
- func AWSWhoami(awsProfile string) sts.GetCallerIdentityOutput
- 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 Contains(element string, array []string) bool
- func GetLogDirPath() *string
- func GetRegionsForService(awsProfile string, service string) []string
- func InitLogging() *os.File
- func LoadFileLinesIntoArray(input string) []string
- func OutputSelector(verbosity int, outputType string, header []string, body [][]string, ...)
- type OutputData
- 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" TxtLogger = txtLogger() )
Functions ¶
func AWSConfigFileLoader ¶
func AWSWhoami ¶
func AWSWhoami(awsProfile string) sts.GetCallerIdentityOutput
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 GetLogDirPath ¶
func GetLogDirPath() *string
This function returns ~/.cloudfox. If the folder does not exist the function creates it.
func GetRegionsForService ¶
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 ¶
type OutputData ¶
type OutputData struct {
Headers []*simpletable.Cell
Body [][]interface{}
FilePath string
FullFilename string
CallingModule string
Verbosity int
Directory string
}
func (*OutputData) OutputSelector ¶
func (o *OutputData) OutputSelector(Type string)
Click to show internal directories.
Click to hide internal directories.