soap

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 Body

type Body struct {
	XMLName  struct{} `xml:"Body"`
	Contents []byte   `xml:",innerxml"`
}

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 CategoryType struct {
	XMLName xml.Name `xml:"CategoryType"`
	ID      int      `xml:"Id"`
	Name    string   `xml:"Name"`
	Order   int      `xml:"Order"`
}

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 CxQueryCategory struct {
	XMLName      xml.Name `xml:"CxQueryCategory"`
	ID           int      `xml:"Id"`
	CategoryName string   `xml:"CategoryName"`
	CategoryType int      `xml:"CategoryType"`
}

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 CxWSResponseSourceContent

type CxWSResponseSourceContent struct {
	XMLName xml.Name `xml:"CxWSResponseSourceContent"`
	Source  string   `xml:"Source"`
}

type CxWSResponseSourcesContent

type CxWSResponseSourcesContent struct {
	XMLName                    xml.Name                    `xml:"cxWSResponseSourcesContent"`
	CxWSResponseSourceContents []CxWSResponseSourceContent `xml:"CxWSResponseSourceContent"`
}

type Envelope

type Envelope struct {
	XMLName struct{} `xml:"Envelope"`
	Header  Header
	Body    Body
}

type GetInstallationSettingsRequest added in v1.2.0

type GetInstallationSettingsRequest struct {
	XMLName xml.Name `xml:"chec:GetInstallationSettings"`
}

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 GetPresetDetailsRequest struct {
	XMLName xml.Name `xml:"chec:GetPresetDetails"`
	ID      int      `xml:"chec:id"`
}

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 GetPresetDetailsResult struct {
	XMLName      xml.Name `xml:"GetPresetDetailsResult"`
	IsSuccessful bool     `xml:"IsSuccesfull"`
	Preset       Preset   `xml:"preset"`
}

type GetQueryCollectionRequest added in v1.0.4

type GetQueryCollectionRequest struct {
	XMLName xml.Name `xml:"chec:GetQueryCollection"`
}

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 GetResultPathsForQueryRequest

type GetResultPathsForQueryRequest struct {
	XMLName xml.Name `xml:"chec:GetResultPathsForQuery"`
	ScanID  string   `xml:"chec:scanId"`
	QueryID string   `xml:"chec:queryId"`
}

type GetResultPathsForQueryResponse

type GetResultPathsForQueryResponse struct {
	XMLName                      xml.Name `xml:"GetResultPathsForQueryResponse"`
	GetResultPathsForQueryResult GetResultPathsForQueryResult
}

type GetResultPathsForQueryResult

type GetResultPathsForQueryResult struct {
	XMLName      xml.Name `xml:"GetResultPathsForQueryResult"`
	IsSuccessful bool     `xml:"IsSuccesfull"`
	ErrorMessage string   `xml:"ErrorMessage"`
	Paths        Paths    `xml:"Paths"`
}

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 GetSourcesFilesToRetrieve

type GetSourcesFilesToRetrieve struct {
	XMLName xml.Name `xml:"chec:filesToRetreive"`
	Strings []string `xml:"chec:string"`
}
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 Queries added in v1.0.4

type Queries struct {
	XMLName   xml.Name    `xml:"Queries"`
	CxWSQuery []CxWSQuery `xml:"CxWSQuery"`
}

type QueryGroups added in v1.0.4

type QueryGroups struct {
	XMLName        xml.Name         `xml:"QueryGroups"`
	CxWSQueryGroup []CxWSQueryGroup `xml:"CxWSQueryGroup"`
}

type QueryIds added in v1.0.4

type QueryIds struct {
	XMLName xml.Name `xml:"queryIds"`
	Long    []int    `xml:"long"`
}

type ResultPath

type ResultPath struct {
	XMLName xml.Name `xml:"CxWSResultPath"`
	PathID  string   `xml:"PathId"`
	Node    Node     `xml:"Nodes"`
}

type ResultPathNode

type ResultPathNode struct {
	XMLName    xml.Name `xml:"CxWSPathNode"`
	MethodLine string
}

Jump to

Keyboard shortcuts

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