Documentation ¶
Index ¶
- func ApkReportSliceToCsv(reports []APKReport, givenFilename string) error
- func CreateDefaultConfig() error
- func DoGet(url string, info *MobSFApiInfo) (string, error)
- func GetAPIEndpointUrl(info *MobSFApiInfo, endpoint string) string
- func GetDefaultConfigFn() (string, error)
- func ValidateConfig() error
- func WriteToCsvFile(givenRecords [][]string, givenFilename string) error
- type APKReport
- type MobSFApiInfo
- type MobSFAppIndex
- type MobSFRecentScansResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApkReportSliceToCsv ¶
func CreateDefaultConfig ¶
func CreateDefaultConfig() error
CreateDefaultConfig - create a config file in the default dir
func DoGet ¶
func DoGet(url string, info *MobSFApiInfo) (string, error)
DoGet - Do a simple GET request and return the body as a string.
func GetAPIEndpointUrl ¶
func GetAPIEndpointUrl(info *MobSFApiInfo, endpoint string) string
GetAPIEndpointUrl - construct a simple MobSF API call with the API info in the struct.
func GetDefaultConfigFn ¶
GetDefaultConfigFn - return the default config filename
func WriteToCsvFile ¶
Types ¶
type APKReport ¶
type APKReport struct {
// contains filtered or unexported fields
}
func BasicReport ¶
func BasicReport(apiInfo *MobSFApiInfo) ([]APKReport, error)
func GetReport ¶
func GetReport(apiInfo *MobSFApiInfo, md5Hash string) (*APKReport, error)
GetReport - http://0.0.0.0:8000/api_docs#generate-json-report-api
func (*APKReport) GetBasicHeaders ¶
func (*APKReport) GetBasicSlice ¶
type MobSFApiInfo ¶
type MobSFApiInfo struct {
// contains filtered or unexported fields
}
func GetApiInfoFromConfig ¶
func GetApiInfoFromConfig() (*MobSFApiInfo, error)
GetApiInfoFromConfig - create an api info struct based on contents of config file
type MobSFAppIndex ¶
type MobSFAppIndex struct {
// contains filtered or unexported fields
}
func GetAllScans ¶
func GetAllScans(apiInfo *MobSFApiInfo) ([]MobSFAppIndex, error)
GetAllScans - return all scans info at once.
type MobSFRecentScansResults ¶
type MobSFRecentScansResults struct {
// contains filtered or unexported fields
}
func GetRecentScansPage ¶
func GetRecentScansPage(apiInfo *MobSFApiInfo, pageNum int) (*MobSFRecentScansResults, error)
GetRecentScansPage - http://0.0.0.0:8000/api_docs#recent-scans-api
Click to show internal directories.
Click to hide internal directories.