Documentation ¶
Index ¶
- type Adapter
- type Body
- type Categories
- type CategoryType
- type Client
- func (e *Client) GetInstallationSettings() (*GetInstallationSettingsResponse, error)
- func (e *Client) GetPresetDetails(id int) (*GetPresetDetailsResponse, error)
- func (e *Client) GetQueryCollection() (*GetQueryCollectionResponse, error)
- func (e *Client) GetResultPathsForQuery(scanID, queryID string) (*GetResultPathsForQueryResponse, error)
- func (e *Client) GetSourcesByScanID(scanID string, filenames []string) (*GetSourcesByScanIDResponse, error)
- type CxQueryCategory
- type CxWSQuery
- type CxWSQueryGroup
- type CxWSResponseSourceContent
- type CxWSResponseSourcesContent
- type Envelope
- type GetInstallationSettingsRequest
- type GetInstallationSettingsResponse
- type GetInstallationSettingsResult
- type GetPresetDetailsRequest
- type GetPresetDetailsResponse
- type GetPresetDetailsResult
- type GetQueryCollectionRequest
- type GetQueryCollectionResponse
- type GetQueryCollectionResult
- type GetResultPathsForQueryRequest
- type GetResultPathsForQueryResponse
- type GetResultPathsForQueryResult
- type GetSourcesByScanIDRequest
- type GetSourcesByScanIDResponse
- type GetSourcesByScanIDResult
- type GetSourcesFilesToRetrieve
- type Header
- type InstallationSetting
- type InstallationSettingsList
- type Node
- type Paths
- type Preset
- type Queries
- type QueryGroups
- type QueryIds
- type ResultPath
- type ResultPathNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { GetSourcesByScanID(scanID string, filenames []string) (*GetSourcesByScanIDResponse, error) GetResultPathsForQuery(scanID string, queryID string) (*GetResultPathsForQueryResponse, error) GetQueryCollection() (*GetQueryCollectionResponse, error) GetPresetDetails(ID int) (*GetPresetDetailsResponse, error) GetInstallationSettings() (*GetInstallationSettingsResponse, error) }
type Categories ¶ added in v1.0.4
type Categories struct { XMLName xml.Name `xml:"Categories"` CxQueryCategory []CxQueryCategory `xml:"CxQueryCategory"` }
type CategoryType ¶ added in v1.0.4
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(baseURL string, authToken *rest.AccessToken, adapter rest.RetryableHTTPAdapter) *Client
func (*Client) GetInstallationSettings ¶ added in v1.2.0
func (e *Client) GetInstallationSettings() (*GetInstallationSettingsResponse, error)
func (*Client) GetPresetDetails ¶ added in v1.0.4
func (e *Client) GetPresetDetails(id int) (*GetPresetDetailsResponse, error)
func (*Client) GetQueryCollection ¶ added in v1.0.4
func (e *Client) GetQueryCollection() (*GetQueryCollectionResponse, error)
func (*Client) GetResultPathsForQuery ¶
func (e *Client) GetResultPathsForQuery(scanID, queryID string) (*GetResultPathsForQueryResponse, error)
func (*Client) GetSourcesByScanID ¶
func (e *Client) GetSourcesByScanID(scanID string, filenames []string) (*GetSourcesByScanIDResponse, error)
type CxQueryCategory ¶ added in v1.0.4
type CxWSQuery ¶ added in v1.0.4
type CxWSQuery struct { XMLName xml.Name `xml:"CxWSQuery"` Name string `xml:"Name"` QueryID int `xml:"QueryId"` Source string `xml:"Source"` Cwe int `xml:"Cwe"` IsExecutable bool `xml:"IsExecutable"` IsEncrypted bool `xml:"IsEncrypted"` Severity int `xml:"Severity"` PackageID int `xml:"PackageId"` Status string `xml:"Status"` Type string `xml:"Type"` Categories Categories `xml:"Categories"` CxDescriptionID int `xml:"CxDescriptionID"` QueryVersionCode int `xml:"QueryVersionCode"` EngineMetadata string `xml:"EngineMetadata"` }
type CxWSQueryGroup ¶ added in v1.0.4
type CxWSQueryGroup struct { XMLName xml.Name `xml:"CxWSQueryGroup"` Name string `xml:"Name"` PackageID int `xml:"PackageId"` Queries Queries `xml:"Queries"` IsReadOnly bool `xml:"IsReadOnly"` IsEncrypted bool `xml:"IsEncrypted"` Description string `xml:"Description"` Language int `xml:"Language"` LanguageName string `xml:"LanguageName"` PackageTypeName string `xml:"PackageTypeName"` ProjectID int `xml:"ProjectId"` PackageType string `xml:"PackageType"` PackageFullName string `xml:"PackageFullName"` OwningTeam int `xml:"OwningTeam"` Status string `xml:"Status"` LanguageStateHash int64 `xml:"LanguageStateHash"` LanguageStateDate string `xml:"LanguageStateDate"` }
type CxWSResponseSourcesContent ¶
type CxWSResponseSourcesContent struct { XMLName xml.Name `xml:"cxWSResponseSourcesContent"` CxWSResponseSourceContents []CxWSResponseSourceContent `xml:"CxWSResponseSourceContent"` }
type GetInstallationSettingsRequest ¶ added in v1.2.0
type GetInstallationSettingsResponse ¶ added in v1.2.0
type GetInstallationSettingsResponse struct { Text string `xml:",chardata"` Xmlns string `xml:"xmlns,attr"` GetInstallationSettingsResult GetInstallationSettingsResult `xml:"GetInstallationSettingsResult"` }
type GetInstallationSettingsResult ¶ added in v1.2.0
type GetInstallationSettingsResult struct { XMLName xml.Name `xml:"GetInstallationSettingsResult"` IsSuccesfull string `xml:"IsSuccesfull"` InstallationSettingsList InstallationSettingsList `xml:"InstallationSettingsList"` }
type GetPresetDetailsRequest ¶ added in v1.0.4
type GetPresetDetailsResponse ¶ added in v1.0.4
type GetPresetDetailsResponse struct { XMLName xml.Name `xml:"GetPresetDetailsResponse"` GetPresetDetailsResult GetPresetDetailsResult `xml:"GetPresetDetailsResult"` }
type GetPresetDetailsResult ¶ added in v1.0.4
type GetQueryCollectionRequest ¶ added in v1.0.4
type GetQueryCollectionResponse ¶ added in v1.0.4
type GetQueryCollectionResponse struct { XMLName xml.Name `xml:"GetQueryCollectionResponse"` GetQueryCollectionResult GetQueryCollectionResult `xml:"GetQueryCollectionResult"` }
type GetQueryCollectionResult ¶ added in v1.0.4
type GetQueryCollectionResult struct { XMLName xml.Name `xml:"GetQueryCollectionResult"` IsSuccessful bool `xml:"IsSuccesfull"` QueryGroups QueryGroups `xml:"QueryGroups"` }
type GetResultPathsForQueryResponse ¶
type GetResultPathsForQueryResponse struct { XMLName xml.Name `xml:"GetResultPathsForQueryResponse"` GetResultPathsForQueryResult GetResultPathsForQueryResult }
type GetSourcesByScanIDRequest ¶
type GetSourcesByScanIDRequest struct { XMLName xml.Name `xml:"chec:GetSourcesByScanID"` ScanID string `xml:"chec:scanID"` FilesToRetrieve GetSourcesFilesToRetrieve `xml:"chec:filesToRetreive"` }
type GetSourcesByScanIDResponse ¶
type GetSourcesByScanIDResponse struct { XMLName xml.Name `xml:"GetSourcesByScanIDResponse"` GetSourcesByScanIDResult GetSourcesByScanIDResult }
type GetSourcesByScanIDResult ¶
type GetSourcesByScanIDResult struct { XMLName xml.Name `xml:"GetSourcesByScanIDResult"` IsSuccessful bool `xml:"IsSuccesfull"` ErrorMessage string `xml:"ErrorMessage"` CxWSResponseSourcesContent CxWSResponseSourcesContent `xml:"cxWSResponseSourcesContent"` }
type Header ¶
type Header struct { XMLName struct{} `xml:"Header"` Contents []byte `xml:",innerxml"` }
type InstallationSetting ¶ added in v1.2.0
type InstallationSetting struct { XMLName xml.Name `xml:"InstallationSetting"` Text string `xml:",chardata"` Name string `xml:"Name"` ID string `xml:"ID"` DNSName string `xml:"DNSName"` IP string `xml:"IP"` State string `xml:"State"` Version string `xml:"Version"` Hotfix string `xml:"Hotfix"` InstllationPath string `xml:"InstllationPath"` IsInstalled string `xml:"IsInstalled"` }
type InstallationSettingsList ¶ added in v1.2.0
type InstallationSettingsList struct { XMLName xml.Name `xml:"InstallationSettingsList"` InstallationSetting []*InstallationSetting `xml:"InstallationSetting"` }
type Node ¶
type Node struct { XMLName xml.Name `xml:"Nodes"` Nodes []ResultPathNode `xml:"CxWSPathNode"` }
type Paths ¶
type Paths struct { XMLName xml.Name `xml:"Paths"` Paths []ResultPath `xml:"CxWSResultPath"` }
type Preset ¶ added in v1.0.4
type Preset struct { XMLName xml.Name `xml:"preset"` QueryIds QueryIds `xml:"queryIds"` ID int `xml:"id"` Name string `xml:"name"` OwningTeam int `xml:"owningteam"` IsPublic bool `xml:"isPublic"` Owner string `xml:"owner"` IsUserAllowToUpdate bool `xml:"isUserAllowToUpdate"` IsUserAllowToDelete bool `xml:"isUserAllowToDelete"` IsDuplicate bool `xml:"IsDuplicate"` }
type QueryGroups ¶ added in v1.0.4
type QueryGroups struct { XMLName xml.Name `xml:"QueryGroups"` CxWSQueryGroup []CxWSQueryGroup `xml:"CxWSQueryGroup"` }
type ResultPath ¶
type ResultPathNode ¶
Click to show internal directories.
Click to hide internal directories.