Documentation
¶
Index ¶
- Variables
- func AWSConfigFileLoader(AWSProfile string, version string) aws.Config
- func AWSWhoami(awsProfile string, version string) (*sts.GetCallerIdentityOutput, error)
- 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 GetAADUsersClient(tenantID string) graphrbac.UsersClient
- func GetAllAWSProfiles(AWSConfirm bool) []string
- func GetEnabledRegions(awsProfile string, version string) []string
- func GetLogDirPath() *string
- func GetNICClient(subscriptionID string) network.InterfacesClient
- func GetPublicIPClient(subscriptionID string) network.PublicIPAddressesClient
- func GetResourceGroupsClient(subscriptionID string) resources.GroupsClient
- func GetRoleAssignmentsClient(subscriptionID string) authorization.RoleAssignmentsClient
- func GetRoleDefinitionsClient(subscriptionName string) authorization.RoleDefinitionsClient
- func GetSelectedAWSProfiles(AWSProfilesListPath string) []string
- func GetStorageClient(subscriptionID string) storage.AccountsClient
- func GetSubscriptionsClient() subscriptions.Client
- func GetTenantsClient() subscriptions.TenantsClient
- func GetVirtualMachinesClient(subscriptionID string) compute.VirtualMachinesClient
- func LoadFileLinesIntoArray(input string) []string
- func MockFileSystem(switcher bool)
- func OutputSelector(verbosity int, outputType string, header []string, body [][]string, ...)
- func PrintTableToScreen(header []string, body [][]string, wrapLines bool)
- func SpinUntil(callingModuleName string, counter *CommandCounter, done chan bool, ...)
- func TxtLogger() *logrus.Logger
- type CommandCounter
- type OutputData2
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TxtLoggerName = "root" TxtLog = TxtLogger() UtilsFs = afero.NewOsFs() )
Functions ¶
func AWSWhoami ¶
func AWSWhoami(awsProfile string, version string) (*sts.GetCallerIdentityOutput, error)
func BuildAWSPath ¶
func BuildAWSPath(Caller sts.GetCallerIdentityOutput) string
func ConfirmSelectedProfiles ¶
func GetAADUsersClient ¶
func GetAADUsersClient(tenantID string) graphrbac.UsersClient
func GetAllAWSProfiles ¶
func GetEnabledRegions ¶
func GetLogDirPath ¶
func GetLogDirPath() *string
This function returns ~/.cloudfox. If the folder does not exist the function creates it.
func GetNICClient ¶
func GetNICClient(subscriptionID string) network.InterfacesClient
func GetPublicIPClient ¶
func GetPublicIPClient(subscriptionID string) network.PublicIPAddressesClient
func GetResourceGroupsClient ¶
func GetResourceGroupsClient(subscriptionID string) resources.GroupsClient
func GetRoleAssignmentsClient ¶
func GetRoleAssignmentsClient(subscriptionID string) authorization.RoleAssignmentsClient
func GetRoleDefinitionsClient ¶
func GetRoleDefinitionsClient(subscriptionName string) authorization.RoleDefinitionsClient
func GetSelectedAWSProfiles ¶
func GetStorageClient ¶
func GetStorageClient(subscriptionID string) storage.AccountsClient
func GetSubscriptionsClient ¶
func GetSubscriptionsClient() subscriptions.Client
func GetTenantsClient ¶
func GetTenantsClient() subscriptions.TenantsClient
func GetVirtualMachinesClient ¶
func GetVirtualMachinesClient(subscriptionID string) compute.VirtualMachinesClient
func LoadFileLinesIntoArray ¶
func MockFileSystem ¶
func MockFileSystem(switcher bool)
func OutputSelector ¶
func OutputSelector(verbosity int, outputType string, header []string, body [][]string, outputDirectory string, fileName string, callingModule string, wrapTable bool, prefixIdentifier 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" prefixIdentifier = this string gets printed with control message calling module (e.g. aws profile, azure resource group, gcp project, etc)
func PrintTableToScreen ¶
Types ¶
type CommandCounter ¶
Click to show internal directories.
Click to hide internal directories.