apkreportlib

package
v0.0.0-...-9757603 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApkReportSliceToCsv

func ApkReportSliceToCsv(reports []APKReport, givenFilename string) error

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

func GetDefaultConfigFn() (string, error)

GetDefaultConfigFn - return the default config filename

func ValidateConfig

func ValidateConfig() error

ValidateConfig - check if all the keys are there

func WriteToCsvFile

func WriteToCsvFile(givenRecords [][]string, givenFilename string) error

Types

type APKReport

type APKReport struct {
	// contains filtered or unexported fields
}

func BasicReport

func BasicReport(apiInfo *MobSFApiInfo) ([]APKReport, error)

func (*APKReport) GetBasicHeaders

func (m *APKReport) GetBasicHeaders() []string

func (*APKReport) GetBasicSlice

func (m *APKReport) GetBasicSlice() []string

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

Jump to

Keyboard shortcuts

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