Documentation
¶
Index ¶
- func CheckToken() (*appknox.Me, error)
- func ConvertToSARIFReport(fileID int, riskThreshold int, filePath string, ...) error
- func GetHostMappings() map[string]string
- func GetMe() (*appknox.Me, error)
- func GetProxy() (*url.URL, error)
- func HandleDynamicScan(fileID, riskThreshold int) error
- func PrintError(a ...interface{})
- func ProcessAnalyses(fileID int)
- func ProcessCiCheck(fileID, riskThreshold int, staticScanTimeout time.Duration)
- func ProcessCreateReport(fileID int) (reportID int, err error)
- func ProcessDownloadReportCSV(reportID int, outputFilePath string) error
- func ProcessDownloadReportExcel(reportID int, outputFilePath string) error
- func ProcessFiles(projectID int, versionCode string, offset, limit int)
- func ProcessInit()
- func ProcessMe()
- func ProcessOrganizations()
- func ProcessOwasp(owaspID string)
- func ProcessProjects(platform, packageName, query string, offset, limit int)
- func ProcessUpload(file *os.File)
- func ProcessVulnerability(vulnerabilityID int)
- func ResolveHostAndRegion(host, region string, hostMappings map[string]string) (string, error)
- func ScheduleDastAutomation(fileID int) error
- type MeData
- type OrganizationData
- type ProjectData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckToken ¶
CheckToken checks if access token is valid.
func ConvertToSARIFReport ¶
func GetHostMappings ¶
GetHostMappings returns a map of host names to URLs.
func HandleDynamicScan ¶
HandleDynamicScan checks the latest scan and acts accordingly.
func ProcessAnalyses ¶
func ProcessAnalyses(fileID int)
ProcessAnalyses takes the list of analyses and print it to CLI.
func ProcessCiCheck ¶
ProcessCiCheck takes the list of analyses and print it to CLI.
func ProcessCreateReport ¶
func ProcessFiles ¶
ProcessFiles takes the list of files and print it to CLI.
func ProcessOrganizations ¶
func ProcessOrganizations()
ProcessOrganizations returns the list of organizations for the current user.
func ProcessOwasp ¶
func ProcessOwasp(owaspID string)
ProcessOwasp takes the me data and print it to CLI.
func ProcessProjects ¶
ProcessProjects takes the list of files and print it to CLI.
func ProcessUpload ¶
ProcessUpload takes the filePath and upload it to the appknox dashboard.
func ProcessVulnerability ¶
func ProcessVulnerability(vulnerabilityID int)
ProcessVulnerability takes the vulnerabilityID and print it's details to CLI.
func ResolveHostAndRegion ¶
ResolveHostAndRegion checks the host and region and returns the resolved base URL
func ScheduleDastAutomation ¶
ScheduleDastAutomation calls the DynamicScanService.ScheduleDastAutomation to POST /api/v2/files/:file_id/dynamicscans with mode=Automated.
Types ¶
type MeData ¶
type MeData struct { ID int `header:"id"` Username string `header:"username"` Email string `header:"email"` DefaultOrganization int `header:"default-organization"` }
MeData represents a struct which will be printed to the CLI.
type OrganizationData ¶
type OrganizationData struct { ID int `header:"id"` Name string `header:"name"` ProjectsCount int `header:"projects-count"` }
OrganizationData represents a struct which will be printed to the CLI.
type ProjectData ¶
type ProjectData struct { ID int `header:"id"` CreatedOn *time.Time `header:"created-on"` UpdatedOn *time.Time `header:"updated-on"` PackageName string `header:"package-name"` Platform int `header:"platform"` FileCount int `header:"file-count"` }
ProjectData represents a struct which will be printed to the CLI.