Documentation ¶
Index ¶
- Constants
- func CreateAndPersistToolRecord(utils piperutils.FileUtils, appInfo *ApplicationInfo, modulePath string) (string, error)
- func WriteJSONReport(jsonReport ContrastAudit, modulePath string) ([]piperutils.Path, error)
- type ApplicationInfo
- type ApplicationResponse
- type Contrast
- type ContrastAudit
- type ContrastFindings
- type ContrastHttpClient
- type ContrastHttpClientInstance
- type ContrastInstance
- type VulnerabilitiesResponse
- type Vulnerability
Constants ¶
View Source
const ( StatusReported = "REPORTED" Critical = "CRITICAL" High = "HIGH" Medium = "MEDIUM" AuditAll = "Audit All" Optional = "Optional" )
Variables ¶
This section is empty.
Functions ¶
func CreateAndPersistToolRecord ¶
func CreateAndPersistToolRecord(utils piperutils.FileUtils, appInfo *ApplicationInfo, modulePath string) (string, error)
func WriteJSONReport ¶
func WriteJSONReport(jsonReport ContrastAudit, modulePath string) ([]piperutils.Path, error)
Types ¶
type ApplicationInfo ¶
type ApplicationResponse ¶
type ContrastAudit ¶
type ContrastAudit struct { ToolName string `json:"toolName"` ApplicationUrl string `json:"applicationUrl"` ScanResults []ContrastFindings `json:"findings"` }
type ContrastFindings ¶
type ContrastHttpClient ¶
type ContrastHttpClientInstance ¶
type ContrastHttpClientInstance struct {
// contains filtered or unexported fields
}
func NewContrastHttpClient ¶
func NewContrastHttpClient(apiKey, auth string) *ContrastHttpClientInstance
func (*ContrastHttpClientInstance) ExecuteRequest ¶
func (c *ContrastHttpClientInstance) ExecuteRequest(url string, params map[string]string, dest interface{}) error
type ContrastInstance ¶
type ContrastInstance struct {
// contains filtered or unexported fields
}
func NewContrastInstance ¶
func NewContrastInstance(url, apiKey, auth string) ContrastInstance
func (*ContrastInstance) GetAppInfo ¶
func (contrast *ContrastInstance) GetAppInfo(appUIUrl, server string) (*ApplicationInfo, error)
func (*ContrastInstance) GetVulnerabilities ¶
func (contrast *ContrastInstance) GetVulnerabilities() ([]ContrastFindings, error)
type VulnerabilitiesResponse ¶
type Vulnerability ¶
Click to show internal directories.
Click to hide internal directories.