Documentation
¶
Index ¶
- Constants
- func GetGitHubID(ctx context.Context, githubOwner string) (string, error)
- func HandleError(resp *http.Response) error
- func Int(value int) *int
- func String(value string) *string
- type DASTCreateExternalScanInput
- type DASTCreateExternalScanOutput
- type DASTStartCloudScanInput
- type DASTStartCloudScanOutput
- type DASTUpdateExternalScanInput
- type NullifyClient
- func (c *NullifyClient) DASTCreateExternalScan(ctx context.Context, githubOwner string, input *DASTCreateExternalScanInput) (*DASTCreateExternalScanOutput, error)
- func (c *NullifyClient) DASTStartCloudScan(ctx context.Context, githubOwner string, input *DASTStartCloudScanInput) (*DASTStartCloudScanOutput, error)
- func (c *NullifyClient) DASTUpdateExternalScan(ctx context.Context, githubOwner string, githubRepository string, ...) error
Constants ¶
View Source
const ( StatusQueued = "queued" StatusInProgress = "in progress" StatusCompleted = "completed" StatusCancelled = "cancelled" StatusFailed = "failed" )
Variables ¶
This section is empty.
Functions ¶
func GetGitHubID ¶ added in v0.9.15
func HandleError ¶
Types ¶
type DASTCreateExternalScanInput ¶ added in v0.7.0
type DASTCreateExternalScanOutput ¶ added in v0.7.0
type DASTCreateExternalScanOutput struct {
ScanID string `json:"scanId"`
}
type DASTStartCloudScanInput ¶ added in v0.4.0
type DASTStartCloudScanInput struct { AppName string `json:"appName"` TargetHost string `json:"targetHost"` OpenAPISpec map[string]any `json:"openAPISpec"` AuthConfig models.AuthConfig `json:"authConfig"` // TODO deprecate Host string `json:"host"` models.RequestProvider models.RequestDashboardTarget }
type DASTStartCloudScanOutput ¶ added in v0.7.0
type DASTStartCloudScanOutput struct {
ScanID string `json:"scanId"`
}
type DASTUpdateExternalScanInput ¶ added in v0.7.0
type DASTUpdateExternalScanInput struct { Progress *int `json:"progress"` Status *string `json:"status"` Findings []models.DASTFinding `json:"findings"` *models.RequestDashboardTarget }
type NullifyClient ¶ added in v0.4.0
func NewNullifyClient ¶ added in v0.4.0
func NewNullifyClient(nullifyHost string, token string) *NullifyClient
func (*NullifyClient) DASTCreateExternalScan ¶ added in v0.7.0
func (c *NullifyClient) DASTCreateExternalScan( ctx context.Context, githubOwner string, input *DASTCreateExternalScanInput, ) (*DASTCreateExternalScanOutput, error)
func (*NullifyClient) DASTStartCloudScan ¶ added in v0.4.0
func (c *NullifyClient) DASTStartCloudScan( ctx context.Context, githubOwner string, input *DASTStartCloudScanInput, ) (*DASTStartCloudScanOutput, error)
func (*NullifyClient) DASTUpdateExternalScan ¶ added in v0.7.0
func (c *NullifyClient) DASTUpdateExternalScan( ctx context.Context, githubOwner string, githubRepository string, scanID string, input *DASTUpdateExternalScanInput, ) error
Click to show internal directories.
Click to hide internal directories.