soap

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 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)
}

type Body

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

type Client

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

func NewClient

func NewClient(baseURL string, authToken *rest.AccessToken, adapter *http.Client) *Client

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 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 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 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 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