Documentation ¶
Overview ¶
Package v20240216 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.14.0 DO NOT EDIT.
Index ¶
- type CliTestFlow
- type CliTestFlowName
- type Component
- type Flow
- func (t Flow) AsCliTestFlow() (CliTestFlow, error)
- func (t Flow) AsMonitorFlow() (MonitorFlow, error)
- func (t Flow) Discriminator() (string, error)
- func (t *Flow) FromCliTestFlow(v CliTestFlow) error
- func (t *Flow) FromMonitorFlow(v MonitorFlow) error
- func (t Flow) MarshalJSON() ([]byte, error)
- func (t *Flow) MergeCliTestFlow(v CliTestFlow) error
- func (t *Flow) MergeMonitorFlow(v MonitorFlow) error
- func (t *Flow) UnmarshalJSON(b []byte) error
- func (t Flow) ValueByDiscriminator() (interface{}, error)
- type LegacyFlowProperties
- type MonitorFlow
- type MonitorFlowName
- type PostScanRequest
- type PostScanRequestDataType
- type ScanJob
- type ScanJobBasicAttributes
- type ScanJobBasicAttributesStatus
- type ScanJobResults
- type ScanJobResultsAttributesStatus
- type ScanJobResultsType
- type ScanJobType
- type ScanResponse
- type ScanResultsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CliTestFlow ¶
type CliTestFlow struct { // Name The flow which the scan is triggered for. Name CliTestFlowName `json:"name"` }
CliTestFlow defines model for CliTestFlow.
type CliTestFlowName ¶
type CliTestFlowName string
CliTestFlowName The flow which the scan is triggered for.
const (
CliTest CliTestFlowName = "cli_test"
)
Defines values for CliTestFlowName.
type Component ¶
type Component struct { // CreatedAt Point in time in which this component was created CreatedAt time.Time `json:"created_at"` // FindingsUrl Optional URL containing the findings for this component FindingsUrl *string `json:"findings_url,omitempty"` // Id ID of this component as provided by the scanner Id string `json:"id"` // Name Human readable name of this component as provided by the scanner Name string `json:"name"` // Type Identifies the type of this component as provided by the scanner among the ones supported by Snyk Type string `json:"type"` }
Component defines model for Component.
type Flow ¶
type Flow struct {
// contains filtered or unexported fields
}
Flow defines model for Flow.
func (Flow) AsCliTestFlow ¶
func (t Flow) AsCliTestFlow() (CliTestFlow, error)
AsCliTestFlow returns the union data inside the Flow as a CliTestFlow
func (Flow) AsMonitorFlow ¶
func (t Flow) AsMonitorFlow() (MonitorFlow, error)
AsMonitorFlow returns the union data inside the Flow as a MonitorFlow
func (Flow) Discriminator ¶
func (*Flow) FromCliTestFlow ¶
func (t *Flow) FromCliTestFlow(v CliTestFlow) error
FromCliTestFlow overwrites any union data inside the Flow as the provided CliTestFlow
func (*Flow) FromMonitorFlow ¶
func (t *Flow) FromMonitorFlow(v MonitorFlow) error
FromMonitorFlow overwrites any union data inside the Flow as the provided MonitorFlow
func (Flow) MarshalJSON ¶
func (*Flow) MergeCliTestFlow ¶
func (t *Flow) MergeCliTestFlow(v CliTestFlow) error
MergeCliTestFlow performs a merge with any union data inside the Flow, using the provided CliTestFlow
func (*Flow) MergeMonitorFlow ¶
func (t *Flow) MergeMonitorFlow(v MonitorFlow) error
MergeMonitorFlow performs a merge with any union data inside the Flow, using the provided MonitorFlow
func (*Flow) UnmarshalJSON ¶
func (Flow) ValueByDiscriminator ¶
type LegacyFlowProperties ¶
type LegacyFlowProperties struct { ImportId openapi_types.UUID `json:"import_id"` ImportedTargetId openapi_types.UUID `json:"imported_target_id"` TargetReference *string `json:"target_reference,omitempty"` WorkspaceUrl string `json:"workspace_url"` }
LegacyFlowProperties defines model for LegacyFlowProperties.
type MonitorFlow ¶
type MonitorFlow struct { LegacyProperties *LegacyFlowProperties `json:"legacy_properties,omitempty"` // Name The flow which the scan is triggered for. Name MonitorFlowName `json:"name"` }
MonitorFlow defines model for MonitorFlow.
type MonitorFlowName ¶
type MonitorFlowName string
MonitorFlowName The flow which the scan is triggered for.
const (
Monitor MonitorFlowName = "monitor"
)
Defines values for MonitorFlowName.
type PostScanRequest ¶
type PostScanRequest struct { Data struct { Attributes struct { Flow Flow `json:"flow"` // WorkspaceUrl The URI of the workspace to be scanned as returned by the workspace service. WorkspaceUrl string `json:"workspace_url"` } `json:"attributes"` Id *openapi_types.UUID `json:"id,omitempty"` Type PostScanRequestDataType `json:"type"` } `json:"data"` }
PostScanRequest defines model for PostScanRequest.
type PostScanRequestDataType ¶
type PostScanRequestDataType string
PostScanRequestDataType defines model for PostScanRequest.Data.Type.
const (
Workspace PostScanRequestDataType = "workspace"
)
Defines values for PostScanRequestDataType.
type ScanJob ¶
type ScanJob struct { Attributes ScanJobBasicAttributes `json:"attributes"` Id openapi_types.UUID `json:"id"` Type ScanJobType `json:"type"` }
ScanJob defines model for ScanJob.
type ScanJobBasicAttributes ¶
type ScanJobBasicAttributes struct { // CreatedAt Point in time in which this job was created CreatedAt time.Time `json:"created_at"` // Status Defines the completion status of this job. The job is considered finished when: - the status is `done` meaning it successfully completed, although some product lines might have reported errors, or timed out - the status is `failed` meaning it prematurely failed to complete and no product line got a chance to report - the status is `timeout` when the overall job did not manage to complete on time The job is considered in progress when: - the status is either `queued` meaning it hasn't been picked up yet by the orchestrator - the status is `in_progress` meaning it has been picked up by the orchestrator but product lines are still scanning Status ScanJobBasicAttributesStatus `json:"status"` }
ScanJobBasicAttributes defines model for ScanJobBasicAttributes.
type ScanJobBasicAttributesStatus ¶
type ScanJobBasicAttributesStatus string
ScanJobBasicAttributesStatus Defines the completion status of this job. The job is considered finished when: - the status is `done` meaning it successfully completed, although some product lines might have reported errors, or timed out - the status is `failed` meaning it prematurely failed to complete and no product line got a chance to report - the status is `timeout` when the overall job did not manage to complete on time The job is considered in progress when: - the status is either `queued` meaning it hasn't been picked up yet by the orchestrator - the status is `in_progress` meaning it has been picked up by the orchestrator but product lines are still scanning
const ( ScanJobBasicAttributesStatusDone ScanJobBasicAttributesStatus = "done" ScanJobBasicAttributesStatusFailed ScanJobBasicAttributesStatus = "failed" ScanJobBasicAttributesStatusInProgress ScanJobBasicAttributesStatus = "in_progress" ScanJobBasicAttributesStatusQueued ScanJobBasicAttributesStatus = "queued" ScanJobBasicAttributesStatusTimeout ScanJobBasicAttributesStatus = "timeout" ScanJobBasicAttributesStatusUnknown ScanJobBasicAttributesStatus = "unknown" )
Defines values for ScanJobBasicAttributesStatus.
type ScanJobResults ¶
type ScanJobResults struct { Attributes struct { Components []Component `json:"components"` // CreatedAt Point in time in which this job was created CreatedAt time.Time `json:"created_at"` // Status Defines the completion status of this job. The job is considered finished when: - the status is `done` meaning it successfully completed, although some product lines might have reported errors, or timed out - the status is `failed` meaning it prematurely failed to complete and no product line got a chance to report - the status is `timeout` when the overall job did not manage to complete on time The job is considered in progress when: - the status is either `queued` meaning it hasn't been picked up yet by the orchestrator - the status is `in_progress` meaning it has been picked up by the orchestrator but product lines are still scanning Status ScanJobResultsAttributesStatus `json:"status"` } `json:"attributes"` Id openapi_types.UUID `json:"id"` Type ScanJobResultsType `json:"type"` }
ScanJobResults defines model for ScanJobResults.
type ScanJobResultsAttributesStatus ¶
type ScanJobResultsAttributesStatus string
ScanJobResultsAttributesStatus Defines the completion status of this job. The job is considered finished when: - the status is `done` meaning it successfully completed, although some product lines might have reported errors, or timed out - the status is `failed` meaning it prematurely failed to complete and no product line got a chance to report - the status is `timeout` when the overall job did not manage to complete on time The job is considered in progress when: - the status is either `queued` meaning it hasn't been picked up yet by the orchestrator - the status is `in_progress` meaning it has been picked up by the orchestrator but product lines are still scanning
const ( ScanJobResultsAttributesStatusDone ScanJobResultsAttributesStatus = "done" ScanJobResultsAttributesStatusFailed ScanJobResultsAttributesStatus = "failed" ScanJobResultsAttributesStatusInProgress ScanJobResultsAttributesStatus = "in_progress" ScanJobResultsAttributesStatusQueued ScanJobResultsAttributesStatus = "queued" ScanJobResultsAttributesStatusTimeout ScanJobResultsAttributesStatus = "timeout" ScanJobResultsAttributesStatusUnknown ScanJobResultsAttributesStatus = "unknown" )
Defines values for ScanJobResultsAttributesStatus.
type ScanJobResultsType ¶
type ScanJobResultsType string
ScanJobResultsType defines model for ScanJobResults.Type.
const (
ScanJobResultsTypeScanJobResults ScanJobResultsType = "scan_job_results"
)
Defines values for ScanJobResultsType.
type ScanJobType ¶
type ScanJobType string
ScanJobType defines model for ScanJob.Type.
const (
ScanJobTypeScanJob ScanJobType = "scan_job"
)
Defines values for ScanJobType.
type ScanResponse ¶
type ScanResponse struct { Data ScanJob `json:"data"` Jsonapi *externalRef0.JsonApi `json:"jsonapi,omitempty"` Links *externalRef0.SelfLink `json:"links,omitempty"` }
ScanResponse defines model for ScanResponse.
type ScanResultsResponse ¶
type ScanResultsResponse struct { Data ScanJobResults `json:"data"` Jsonapi *externalRef0.JsonApi `json:"jsonapi,omitempty"` Links *externalRef0.SelfLink `json:"links,omitempty"` }
ScanResultsResponse defines model for ScanResultsResponse.