Documentation
¶
Overview ¶
Package v20250407 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Package v20250407 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- type ComponentAttributes
- type ComponentAttributesFindingsDocumentType
- type CreateTestRequestBody
- type CreateTestRequestBodyDataType
- type GetComponentsResponse
- type GetComponentsResponseItem
- type GetComponentsResponseItemType
- type OutputConfig
- type OutputConfigInitiator
- type ResultType
- type ScanConfig
- type ScanConfigScanners
- type SeverityCounts
- type TestAcceptedState
- type TestAcceptedStateStatus
- type TestAttributes
- type TestAttributes_Input
- func (t TestAttributes_Input) AsTestInputDiffTarget() (TestInputDiffTarget, error)
- func (t TestAttributes_Input) AsTestInputGitUrlCoordinates() (TestInputGitUrlCoordinates, error)
- func (t TestAttributes_Input) AsTestInputLegacyScmProject() (TestInputLegacyScmProject, error)
- func (t TestAttributes_Input) AsTestInputSBOMBundle() (TestInputSBOMBundle, error)
- func (t TestAttributes_Input) AsTestInputSBOMRevision() (TestInputSBOMRevision, error)
- func (t TestAttributes_Input) AsTestInputSBOMSourceBundles() (TestInputSBOMSourceBundles, error)
- func (t TestAttributes_Input) AsTestInputSBOMSourceRevisions() (TestInputSBOMSourceRevisions, error)
- func (t TestAttributes_Input) AsTestInputScmTarget() (TestInputScmTarget, error)
- func (t TestAttributes_Input) AsTestInputSourceBundle() (TestInputSourceBundle, error)
- func (t TestAttributes_Input) AsTestInputTarget() (TestInputTarget, error)
- func (t TestAttributes_Input) AsTestInputUploadRevision() (TestInputUploadRevision, error)
- func (t TestAttributes_Input) AsTestInputWorkspace() (TestInputWorkspace, error)
- func (t *TestAttributes_Input) FromTestInputDiffTarget(v TestInputDiffTarget) error
- func (t *TestAttributes_Input) FromTestInputGitUrlCoordinates(v TestInputGitUrlCoordinates) error
- func (t *TestAttributes_Input) FromTestInputLegacyScmProject(v TestInputLegacyScmProject) error
- func (t *TestAttributes_Input) FromTestInputSBOMBundle(v TestInputSBOMBundle) error
- func (t *TestAttributes_Input) FromTestInputSBOMRevision(v TestInputSBOMRevision) error
- func (t *TestAttributes_Input) FromTestInputSBOMSourceBundles(v TestInputSBOMSourceBundles) error
- func (t *TestAttributes_Input) FromTestInputSBOMSourceRevisions(v TestInputSBOMSourceRevisions) error
- func (t *TestAttributes_Input) FromTestInputScmTarget(v TestInputScmTarget) error
- func (t *TestAttributes_Input) FromTestInputSourceBundle(v TestInputSourceBundle) error
- func (t *TestAttributes_Input) FromTestInputTarget(v TestInputTarget) error
- func (t *TestAttributes_Input) FromTestInputUploadRevision(v TestInputUploadRevision) error
- func (t *TestAttributes_Input) FromTestInputWorkspace(v TestInputWorkspace) error
- func (t TestAttributes_Input) MarshalJSON() ([]byte, error)
- func (t *TestAttributes_Input) MergeTestInputDiffTarget(v TestInputDiffTarget) error
- func (t *TestAttributes_Input) MergeTestInputGitUrlCoordinates(v TestInputGitUrlCoordinates) error
- func (t *TestAttributes_Input) MergeTestInputLegacyScmProject(v TestInputLegacyScmProject) error
- func (t *TestAttributes_Input) MergeTestInputSBOMBundle(v TestInputSBOMBundle) error
- func (t *TestAttributes_Input) MergeTestInputSBOMRevision(v TestInputSBOMRevision) error
- func (t *TestAttributes_Input) MergeTestInputSBOMSourceBundles(v TestInputSBOMSourceBundles) error
- func (t *TestAttributes_Input) MergeTestInputSBOMSourceRevisions(v TestInputSBOMSourceRevisions) error
- func (t *TestAttributes_Input) MergeTestInputScmTarget(v TestInputScmTarget) error
- func (t *TestAttributes_Input) MergeTestInputSourceBundle(v TestInputSourceBundle) error
- func (t *TestAttributes_Input) MergeTestInputTarget(v TestInputTarget) error
- func (t *TestAttributes_Input) MergeTestInputUploadRevision(v TestInputUploadRevision) error
- func (t *TestAttributes_Input) MergeTestInputWorkspace(v TestInputWorkspace) error
- func (t *TestAttributes_Input) UnmarshalJSON(b []byte) error
- type TestCompletedState
- type TestCompletedStateResult
- type TestCompletedStateStatus
- type TestConfiguration
- type TestErrorState
- type TestErrorStateStatus
- type TestInProgressState
- type TestInProgressStateStatus
- type TestInitialConfigurationResponse
- type TestInitialConfigurationResponseDataType
- type TestInputDiffTarget
- type TestInputDiffTargetType
- type TestInputGitUrlCoordinates
- type TestInputGitUrlCoordinatesType
- type TestInputLegacyScmProject
- type TestInputLegacyScmProjectType
- type TestInputSBOMBundle
- type TestInputSBOMBundleType
- type TestInputSBOMRevision
- type TestInputSBOMRevisionType
- type TestInputSBOMSourceBundles
- type TestInputSBOMSourceBundlesType
- type TestInputSBOMSourceRevisions
- type TestInputSBOMSourceRevisionsType
- type TestInputScmTarget
- type TestInputScmTargetType
- type TestInputSourceBundle
- type TestInputSourceBundleType
- type TestInputTarget
- type TestInputTargetType
- type TestInputUploadRevision
- type TestInputUploadRevisionType
- type TestInputWorkspace
- type TestInputWorkspaceType
- type TestResponse
- type TestResponseDataType
- type TestResult
- type TestResultDataType
- type TestState
- func (t TestState) AsTestAcceptedState() (TestAcceptedState, error)
- func (t TestState) AsTestCompletedState() (TestCompletedState, error)
- func (t TestState) AsTestErrorState() (TestErrorState, error)
- func (t TestState) AsTestInProgressState() (TestInProgressState, error)
- func (t TestState) Discriminator() (string, error)
- func (t *TestState) FromTestAcceptedState(v TestAcceptedState) error
- func (t *TestState) FromTestCompletedState(v TestCompletedState) error
- func (t *TestState) FromTestErrorState(v TestErrorState) error
- func (t *TestState) FromTestInProgressState(v TestInProgressState) error
- func (t TestState) MarshalJSON() ([]byte, error)
- func (t *TestState) MergeTestAcceptedState(v TestAcceptedState) error
- func (t *TestState) MergeTestCompletedState(v TestCompletedState) error
- func (t *TestState) MergeTestErrorState(v TestErrorState) error
- func (t *TestState) MergeTestInProgressState(v TestInProgressState) error
- func (t *TestState) UnmarshalJSON(b []byte) error
- func (t TestState) ValueByDiscriminator() (interface{}, error)
- type WebUI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentAttributes ¶
type ComponentAttributes struct {
// FindingsDocumentPath URL path for the findings document
FindingsDocumentPath *string `json:"findings_document_path,omitempty"`
// FindingsDocumentType Type of the findings document
FindingsDocumentType *ComponentAttributesFindingsDocumentType `json:"findings_document_type,omitempty"`
Id string `json:"id"`
Name *string `json:"name,omitempty"`
SeverityCounts *SeverityCounts `json:"severity_counts,omitempty"`
// Success Scan success status of the component
Success bool `json:"success"`
// Type Type of the component
Type string `json:"type"`
Webui *WebUI `json:"webui,omitempty"`
}
ComponentAttributes defines model for ComponentAttributes.
type ComponentAttributesFindingsDocumentType ¶
type ComponentAttributesFindingsDocumentType string
ComponentAttributesFindingsDocumentType Type of the findings document
const ( Cyclonedx ComponentAttributesFindingsDocumentType = "cyclonedx" Sarif ComponentAttributesFindingsDocumentType = "sarif" )
Defines values for ComponentAttributesFindingsDocumentType.
type CreateTestRequestBody ¶
type CreateTestRequestBody struct {
Data struct {
Attributes TestAttributes `json:"attributes"`
// Id Optional identifier for the test
Id *openapi_types.UUID `json:"id,omitempty"`
Type CreateTestRequestBodyDataType `json:"type"`
} `json:"data"`
}
CreateTestRequestBody defines model for CreateTestRequestBody.
type CreateTestRequestBodyDataType ¶
type CreateTestRequestBodyDataType string
CreateTestRequestBodyDataType defines model for CreateTestRequestBody.Data.Type.
const (
CreateTestRequestBodyDataTypeTest CreateTestRequestBodyDataType = "test"
)
Defines values for CreateTestRequestBodyDataType.
type GetComponentsResponse ¶
type GetComponentsResponse struct {
Data []GetComponentsResponseItem `json:"data"`
Jsonapi externalRef0.JsonApi `json:"jsonapi"`
Links struct {
Next *externalRef0.LinkProperty `json:"next,omitempty"`
Prev *externalRef0.LinkProperty `json:"prev,omitempty"`
Self *externalRef0.LinkProperty `json:"self,omitempty"`
} `json:"links"`
}
GetComponentsResponse defines model for GetComponentsResponse.
type GetComponentsResponseItem ¶
type GetComponentsResponseItem struct {
Attributes ComponentAttributes `json:"attributes"`
Id string `json:"id"`
Type GetComponentsResponseItemType `json:"type"`
}
GetComponentsResponseItem defines model for GetComponentsResponseItem.
type GetComponentsResponseItemType ¶
type GetComponentsResponseItemType string
GetComponentsResponseItemType defines model for GetComponentsResponseItem.Type.
const (
Component GetComponentsResponseItemType = "component"
)
Defines values for GetComponentsResponseItemType.
type OutputConfig ¶
type OutputConfig struct {
// Initiator The type of test flow or system that initiated the test
Initiator *OutputConfigInitiator `json:"initiator,omitempty"`
// Label Arbitrary value up to the user
Label *string `json:"label,omitempty"`
// Labels Arbitrary string values up to the user, up to 10 keys
Labels *map[string]string `json:"labels,omitempty"`
// Origin The source control management system or platform origin
Origin *string `json:"origin,omitempty"`
ProjectId *openapi_types.UUID `json:"project_id,omitempty"`
ProjectName *string `json:"project_name,omitempty"`
// Report Determines if the test is stateless (false) or stateful (true)
Report *bool `json:"report,omitempty"`
TargetName *string `json:"target_name,omitempty"`
// TargetReference A reference for the target's version - can be a git branch or a commit sha
TargetReference *string `json:"target_reference,omitempty"`
}
OutputConfig defines model for OutputConfig.
type OutputConfigInitiator ¶
type OutputConfigInitiator string
OutputConfigInitiator The type of test flow or system that initiated the test
const ( ApiTest OutputConfigInitiator = "api_test" AutoImport OutputConfigInitiator = "auto_import" CliTest OutputConfigInitiator = "cli_test" EssentialsImport OutputConfigInitiator = "essentials_import" IdeTest OutputConfigInitiator = "ide_test" Import OutputConfigInitiator = "import" ManualTest OutputConfigInitiator = "manual_test" PrCheck OutputConfigInitiator = "pr_check" RecurringTest OutputConfigInitiator = "recurring_test" )
Defines values for OutputConfigInitiator.
type ResultType ¶
type ResultType string
ResultType defines model for ResultType.
const ( CodeSecurity ResultType = "code_security" CodeSecurityCodeQuality ResultType = "code_security, code_quality" )
Defines values for ResultType.
type ScanConfig ¶
type ScanConfig struct {
// ExclusionGlobs A list of file paths and directories to exclude from the workspace. If empty default exclusion globs apply, according to the coordinate type.
ExclusionGlobs *[]string `json:"exclusion_globs,omitempty"`
// LimitTestToFiles A list of file paths to use in the scan. If empty the whole target is tested.
LimitTestToFiles *[]string `json:"limit_test_to_files,omitempty"`
ResultType *ResultType `json:"result_type,omitempty"`
Scanners *[]ScanConfigScanners `json:"scanners,omitempty"`
}
ScanConfig defines model for ScanConfig.
type ScanConfigScanners ¶
type ScanConfigScanners string
ScanConfigScanners defines model for ScanConfig.Scanners.
const ( LegacyScanners ScanConfigScanners = "legacy_scanners" Sast ScanConfigScanners = "sast" Sca ScanConfigScanners = "sca" Secrets ScanConfigScanners = "secrets" )
Defines values for ScanConfigScanners.
type SeverityCounts ¶
type SeverityCounts struct {
// Critical Number of critical severity findings
Critical *int `json:"critical,omitempty"`
// High Number of high severity findings
High *int `json:"high,omitempty"`
// Low Number of low severity findings
Low *int `json:"low,omitempty"`
// Medium Number of medium severity findings
Medium *int `json:"medium,omitempty"`
}
SeverityCounts defines model for SeverityCounts.
type TestAcceptedState ¶
type TestAcceptedState struct {
// CreatedAt Timestamp when the test was created
CreatedAt time.Time `json:"created_at"`
Status TestAcceptedStateStatus `json:"status"`
}
TestAcceptedState defines model for TestAcceptedState.
type TestAcceptedStateStatus ¶
type TestAcceptedStateStatus string
TestAcceptedStateStatus defines model for TestAcceptedState.Status.
const (
Accepted TestAcceptedStateStatus = "accepted"
)
Defines values for TestAcceptedStateStatus.
type TestAttributes ¶
type TestAttributes struct {
Configuration *TestConfiguration `json:"configuration,omitempty"`
Input *TestAttributes_Input `json:"input,omitempty"`
}
TestAttributes defines model for TestAttributes.
type TestAttributes_Input ¶
type TestAttributes_Input struct {
// contains filtered or unexported fields
}
TestAttributes_Input defines model for TestAttributes.Input.
func (TestAttributes_Input) AsTestInputDiffTarget ¶
func (t TestAttributes_Input) AsTestInputDiffTarget() (TestInputDiffTarget, error)
AsTestInputDiffTarget returns the union data inside the TestAttributes_Input as a TestInputDiffTarget
func (TestAttributes_Input) AsTestInputGitUrlCoordinates ¶
func (t TestAttributes_Input) AsTestInputGitUrlCoordinates() (TestInputGitUrlCoordinates, error)
AsTestInputGitUrlCoordinates returns the union data inside the TestAttributes_Input as a TestInputGitUrlCoordinates
func (TestAttributes_Input) AsTestInputLegacyScmProject ¶
func (t TestAttributes_Input) AsTestInputLegacyScmProject() (TestInputLegacyScmProject, error)
AsTestInputLegacyScmProject returns the union data inside the TestAttributes_Input as a TestInputLegacyScmProject
func (TestAttributes_Input) AsTestInputSBOMBundle ¶
func (t TestAttributes_Input) AsTestInputSBOMBundle() (TestInputSBOMBundle, error)
AsTestInputSBOMBundle returns the union data inside the TestAttributes_Input as a TestInputSBOMBundle
func (TestAttributes_Input) AsTestInputSBOMRevision ¶ added in v1.25.0
func (t TestAttributes_Input) AsTestInputSBOMRevision() (TestInputSBOMRevision, error)
AsTestInputSBOMRevision returns the union data inside the TestAttributes_Input as a TestInputSBOMRevision
func (TestAttributes_Input) AsTestInputSBOMSourceBundles ¶
func (t TestAttributes_Input) AsTestInputSBOMSourceBundles() (TestInputSBOMSourceBundles, error)
AsTestInputSBOMSourceBundles returns the union data inside the TestAttributes_Input as a TestInputSBOMSourceBundles
func (TestAttributes_Input) AsTestInputSBOMSourceRevisions ¶ added in v1.25.0
func (t TestAttributes_Input) AsTestInputSBOMSourceRevisions() (TestInputSBOMSourceRevisions, error)
AsTestInputSBOMSourceRevisions returns the union data inside the TestAttributes_Input as a TestInputSBOMSourceRevisions
func (TestAttributes_Input) AsTestInputScmTarget ¶
func (t TestAttributes_Input) AsTestInputScmTarget() (TestInputScmTarget, error)
AsTestInputScmTarget returns the union data inside the TestAttributes_Input as a TestInputScmTarget
func (TestAttributes_Input) AsTestInputSourceBundle ¶
func (t TestAttributes_Input) AsTestInputSourceBundle() (TestInputSourceBundle, error)
AsTestInputSourceBundle returns the union data inside the TestAttributes_Input as a TestInputSourceBundle
func (TestAttributes_Input) AsTestInputTarget ¶
func (t TestAttributes_Input) AsTestInputTarget() (TestInputTarget, error)
AsTestInputTarget returns the union data inside the TestAttributes_Input as a TestInputTarget
func (TestAttributes_Input) AsTestInputUploadRevision ¶ added in v1.25.0
func (t TestAttributes_Input) AsTestInputUploadRevision() (TestInputUploadRevision, error)
AsTestInputUploadRevision returns the union data inside the TestAttributes_Input as a TestInputUploadRevision
func (TestAttributes_Input) AsTestInputWorkspace ¶
func (t TestAttributes_Input) AsTestInputWorkspace() (TestInputWorkspace, error)
AsTestInputWorkspace returns the union data inside the TestAttributes_Input as a TestInputWorkspace
func (*TestAttributes_Input) FromTestInputDiffTarget ¶
func (t *TestAttributes_Input) FromTestInputDiffTarget(v TestInputDiffTarget) error
FromTestInputDiffTarget overwrites any union data inside the TestAttributes_Input as the provided TestInputDiffTarget
func (*TestAttributes_Input) FromTestInputGitUrlCoordinates ¶
func (t *TestAttributes_Input) FromTestInputGitUrlCoordinates(v TestInputGitUrlCoordinates) error
FromTestInputGitUrlCoordinates overwrites any union data inside the TestAttributes_Input as the provided TestInputGitUrlCoordinates
func (*TestAttributes_Input) FromTestInputLegacyScmProject ¶
func (t *TestAttributes_Input) FromTestInputLegacyScmProject(v TestInputLegacyScmProject) error
FromTestInputLegacyScmProject overwrites any union data inside the TestAttributes_Input as the provided TestInputLegacyScmProject
func (*TestAttributes_Input) FromTestInputSBOMBundle ¶
func (t *TestAttributes_Input) FromTestInputSBOMBundle(v TestInputSBOMBundle) error
FromTestInputSBOMBundle overwrites any union data inside the TestAttributes_Input as the provided TestInputSBOMBundle
func (*TestAttributes_Input) FromTestInputSBOMRevision ¶ added in v1.25.0
func (t *TestAttributes_Input) FromTestInputSBOMRevision(v TestInputSBOMRevision) error
FromTestInputSBOMRevision overwrites any union data inside the TestAttributes_Input as the provided TestInputSBOMRevision
func (*TestAttributes_Input) FromTestInputSBOMSourceBundles ¶
func (t *TestAttributes_Input) FromTestInputSBOMSourceBundles(v TestInputSBOMSourceBundles) error
FromTestInputSBOMSourceBundles overwrites any union data inside the TestAttributes_Input as the provided TestInputSBOMSourceBundles
func (*TestAttributes_Input) FromTestInputSBOMSourceRevisions ¶ added in v1.25.0
func (t *TestAttributes_Input) FromTestInputSBOMSourceRevisions(v TestInputSBOMSourceRevisions) error
FromTestInputSBOMSourceRevisions overwrites any union data inside the TestAttributes_Input as the provided TestInputSBOMSourceRevisions
func (*TestAttributes_Input) FromTestInputScmTarget ¶
func (t *TestAttributes_Input) FromTestInputScmTarget(v TestInputScmTarget) error
FromTestInputScmTarget overwrites any union data inside the TestAttributes_Input as the provided TestInputScmTarget
func (*TestAttributes_Input) FromTestInputSourceBundle ¶
func (t *TestAttributes_Input) FromTestInputSourceBundle(v TestInputSourceBundle) error
FromTestInputSourceBundle overwrites any union data inside the TestAttributes_Input as the provided TestInputSourceBundle
func (*TestAttributes_Input) FromTestInputTarget ¶
func (t *TestAttributes_Input) FromTestInputTarget(v TestInputTarget) error
FromTestInputTarget overwrites any union data inside the TestAttributes_Input as the provided TestInputTarget
func (*TestAttributes_Input) FromTestInputUploadRevision ¶ added in v1.25.0
func (t *TestAttributes_Input) FromTestInputUploadRevision(v TestInputUploadRevision) error
FromTestInputUploadRevision overwrites any union data inside the TestAttributes_Input as the provided TestInputUploadRevision
func (*TestAttributes_Input) FromTestInputWorkspace ¶
func (t *TestAttributes_Input) FromTestInputWorkspace(v TestInputWorkspace) error
FromTestInputWorkspace overwrites any union data inside the TestAttributes_Input as the provided TestInputWorkspace
func (TestAttributes_Input) MarshalJSON ¶
func (t TestAttributes_Input) MarshalJSON() ([]byte, error)
func (*TestAttributes_Input) MergeTestInputDiffTarget ¶
func (t *TestAttributes_Input) MergeTestInputDiffTarget(v TestInputDiffTarget) error
MergeTestInputDiffTarget performs a merge with any union data inside the TestAttributes_Input, using the provided TestInputDiffTarget
func (*TestAttributes_Input) MergeTestInputGitUrlCoordinates ¶
func (t *TestAttributes_Input) MergeTestInputGitUrlCoordinates(v TestInputGitUrlCoordinates) error
MergeTestInputGitUrlCoordinates performs a merge with any union data inside the TestAttributes_Input, using the provided TestInputGitUrlCoordinates
func (*TestAttributes_Input) MergeTestInputLegacyScmProject ¶
func (t *TestAttributes_Input) MergeTestInputLegacyScmProject(v TestInputLegacyScmProject) error
MergeTestInputLegacyScmProject performs a merge with any union data inside the TestAttributes_Input, using the provided TestInputLegacyScmProject
func (*TestAttributes_Input) MergeTestInputSBOMBundle ¶
func (t *TestAttributes_Input) MergeTestInputSBOMBundle(v TestInputSBOMBundle) error
MergeTestInputSBOMBundle performs a merge with any union data inside the TestAttributes_Input, using the provided TestInputSBOMBundle
func (*TestAttributes_Input) MergeTestInputSBOMRevision ¶ added in v1.25.0
func (t *TestAttributes_Input) MergeTestInputSBOMRevision(v TestInputSBOMRevision) error
MergeTestInputSBOMRevision performs a merge with any union data inside the TestAttributes_Input, using the provided TestInputSBOMRevision
func (*TestAttributes_Input) MergeTestInputSBOMSourceBundles ¶
func (t *TestAttributes_Input) MergeTestInputSBOMSourceBundles(v TestInputSBOMSourceBundles) error
MergeTestInputSBOMSourceBundles performs a merge with any union data inside the TestAttributes_Input, using the provided TestInputSBOMSourceBundles
func (*TestAttributes_Input) MergeTestInputSBOMSourceRevisions ¶ added in v1.25.0
func (t *TestAttributes_Input) MergeTestInputSBOMSourceRevisions(v TestInputSBOMSourceRevisions) error
MergeTestInputSBOMSourceRevisions performs a merge with any union data inside the TestAttributes_Input, using the provided TestInputSBOMSourceRevisions
func (*TestAttributes_Input) MergeTestInputScmTarget ¶
func (t *TestAttributes_Input) MergeTestInputScmTarget(v TestInputScmTarget) error
MergeTestInputScmTarget performs a merge with any union data inside the TestAttributes_Input, using the provided TestInputScmTarget
func (*TestAttributes_Input) MergeTestInputSourceBundle ¶
func (t *TestAttributes_Input) MergeTestInputSourceBundle(v TestInputSourceBundle) error
MergeTestInputSourceBundle performs a merge with any union data inside the TestAttributes_Input, using the provided TestInputSourceBundle
func (*TestAttributes_Input) MergeTestInputTarget ¶
func (t *TestAttributes_Input) MergeTestInputTarget(v TestInputTarget) error
MergeTestInputTarget performs a merge with any union data inside the TestAttributes_Input, using the provided TestInputTarget
func (*TestAttributes_Input) MergeTestInputUploadRevision ¶ added in v1.25.0
func (t *TestAttributes_Input) MergeTestInputUploadRevision(v TestInputUploadRevision) error
MergeTestInputUploadRevision performs a merge with any union data inside the TestAttributes_Input, using the provided TestInputUploadRevision
func (*TestAttributes_Input) MergeTestInputWorkspace ¶
func (t *TestAttributes_Input) MergeTestInputWorkspace(v TestInputWorkspace) error
MergeTestInputWorkspace performs a merge with any union data inside the TestAttributes_Input, using the provided TestInputWorkspace
func (*TestAttributes_Input) UnmarshalJSON ¶
func (t *TestAttributes_Input) UnmarshalJSON(b []byte) error
type TestCompletedState ¶
type TestCompletedState struct {
// CreatedAt Timestamp when the test was created
CreatedAt time.Time `json:"created_at"`
// Result The outcome of the test. This field is deprecated.
// Deprecated:
Result TestCompletedStateResult `json:"result"`
Status TestCompletedStateStatus `json:"status"`
}
TestCompletedState defines model for TestCompletedState.
type TestCompletedStateResult ¶
type TestCompletedStateResult string
TestCompletedStateResult The outcome of the test. This field is deprecated.
const ( Failed TestCompletedStateResult = "failed" Passed TestCompletedStateResult = "passed" )
Defines values for TestCompletedStateResult.
type TestCompletedStateStatus ¶
type TestCompletedStateStatus string
TestCompletedStateStatus defines model for TestCompletedState.Status.
const (
Completed TestCompletedStateStatus = "completed"
)
Defines values for TestCompletedStateStatus.
type TestConfiguration ¶
type TestConfiguration struct {
Output *OutputConfig `json:"output,omitempty"`
Scan *ScanConfig `json:"scan,omitempty"`
}
TestConfiguration defines model for TestConfiguration.
type TestErrorState ¶
type TestErrorState struct {
// CreatedAt Timestamp when the test was created
CreatedAt time.Time `json:"created_at"`
Errors *[]struct {
// Classification A type of error
Classification string `json:"classification"`
// ErrorCode The Snyk error code
ErrorCode string `json:"error_code"`
// InfoUrl The URL to link to more information about the error
InfoUrl *string `json:"info_url,omitempty"`
// Message A custom description of an error.
Message string `json:"message"`
// Title The high-level description of an error catalog error
Title string `json:"title"`
} `json:"errors,omitempty"`
Status TestErrorStateStatus `json:"status"`
}
TestErrorState defines model for TestErrorState.
type TestErrorStateStatus ¶
type TestErrorStateStatus string
TestErrorStateStatus defines model for TestErrorState.Status.
const (
Error TestErrorStateStatus = "error"
)
Defines values for TestErrorStateStatus.
type TestInProgressState ¶
type TestInProgressState struct {
// CreatedAt Timestamp when the test was created
CreatedAt time.Time `json:"created_at"`
Status TestInProgressStateStatus `json:"status"`
}
TestInProgressState defines model for TestInProgressState.
type TestInProgressStateStatus ¶
type TestInProgressStateStatus string
TestInProgressStateStatus defines model for TestInProgressState.Status.
const (
InProgress TestInProgressStateStatus = "in_progress"
)
Defines values for TestInProgressStateStatus.
type TestInitialConfigurationResponse ¶
type TestInitialConfigurationResponse struct {
Data *struct {
Attributes *TestAttributes `json:"attributes,omitempty"`
Type *TestInitialConfigurationResponseDataType `json:"type,omitempty"`
} `json:"data,omitempty"`
Jsonapi *externalRef0.JsonApi `json:"jsonapi,omitempty"`
Links *externalRef0.SelfLink `json:"links,omitempty"`
}
TestInitialConfigurationResponse defines model for TestInitialConfigurationResponse.
type TestInitialConfigurationResponseDataType ¶
type TestInitialConfigurationResponseDataType string
TestInitialConfigurationResponseDataType defines model for TestInitialConfigurationResponse.Data.Type.
const (
TestInitialConfigurationResponseDataTypeTest TestInitialConfigurationResponseDataType = "test"
)
Defines values for TestInitialConfigurationResponseDataType.
type TestInputDiffTarget ¶
type TestInputDiffTarget struct {
// BaseVersion SHA of the last commit existing in base branch
BaseVersion string `json:"base_version"`
// HeadVersion SHA of the commit to be tested
HeadVersion string `json:"head_version"`
// TargetId Id of the target to be tested
TargetId openapi_types.UUID `json:"target_id"`
Type TestInputDiffTargetType `json:"type"`
}
TestInputDiffTarget defines model for TestInputDiffTarget.
type TestInputDiffTargetType ¶
type TestInputDiffTargetType string
TestInputDiffTargetType defines model for TestInputDiffTarget.Type.
const (
DiffScmTarget TestInputDiffTargetType = "diff_scm_target"
)
Defines values for TestInputDiffTargetType.
type TestInputGitUrlCoordinates ¶
type TestInputGitUrlCoordinates struct {
// IntegrationId A Snyk integration id that has access to the repository.
IntegrationId openapi_types.UUID `json:"integration_id"`
// RepoUrl A repository url for which a test will run.
RepoUrl string `json:"repo_url"`
// Revision SHA of the commit to be tested.
Revision string `json:"revision"`
Type TestInputGitUrlCoordinatesType `json:"type"`
}
TestInputGitUrlCoordinates defines model for TestInputGitUrlCoordinates.
type TestInputGitUrlCoordinatesType ¶
type TestInputGitUrlCoordinatesType string
TestInputGitUrlCoordinatesType defines model for TestInputGitUrlCoordinates.Type.
const (
GitUrlCoordinates TestInputGitUrlCoordinatesType = "git_url_coordinates"
)
Defines values for TestInputGitUrlCoordinatesType.
type TestInputLegacyScmProject ¶
type TestInputLegacyScmProject struct {
// CommitId SHA of the commit to be tested
CommitId string `json:"commit_id"`
// ProjectId Id of the project to be tested
ProjectId openapi_types.UUID `json:"project_id"`
Type TestInputLegacyScmProjectType `json:"type"`
}
TestInputLegacyScmProject defines model for TestInputLegacyScmProject.
type TestInputLegacyScmProjectType ¶
type TestInputLegacyScmProjectType string
TestInputLegacyScmProjectType defines model for TestInputLegacyScmProject.Type.
const (
LegacyScmProject TestInputLegacyScmProjectType = "legacy_scm_project"
)
Defines values for TestInputLegacyScmProjectType.
type TestInputSBOMBundle ¶
type TestInputSBOMBundle struct {
// BundleId Bundle id of the SBOM bundle
BundleId string `json:"bundle_id"`
// Metadata Metadata of the SBOM bundle
Metadata struct {
// LocalFilePath SBOM file path
LocalFilePath string `json:"local_file_path"`
} `json:"metadata"`
Type TestInputSBOMBundleType `json:"type"`
}
TestInputSBOMBundle defines model for TestInputSBOMBundle.
type TestInputSBOMBundleType ¶
type TestInputSBOMBundleType string
TestInputSBOMBundleType defines model for TestInputSBOMBundle.Type.
const (
SbomBundle TestInputSBOMBundleType = "sbom_bundle"
)
Defines values for TestInputSBOMBundleType.
type TestInputSBOMRevision ¶ added in v1.25.0
type TestInputSBOMRevision struct {
// Metadata Metadata of the SBOM revision
Metadata struct {
// LocalFilePath SBOM file path
LocalFilePath string `json:"local_file_path"`
} `json:"metadata"`
// RevisionId Revision id of the SBOM revision
RevisionId openapi_types.UUID `json:"revision_id"`
Type TestInputSBOMRevisionType `json:"type"`
}
TestInputSBOMRevision defines model for TestInputSBOMRevision.
type TestInputSBOMRevisionType ¶ added in v1.25.0
type TestInputSBOMRevisionType string
TestInputSBOMRevisionType defines model for TestInputSBOMRevision.Type.
const (
SbomRevision TestInputSBOMRevisionType = "sbom_revision"
)
Defines values for TestInputSBOMRevisionType.
type TestInputSBOMSourceBundles ¶
type TestInputSBOMSourceBundles struct {
Sbom struct {
// BundleId Bundle id of the SBOM bundle
BundleId string `json:"bundle_id"`
// Metadata Metadata of the SBOM bundle
Metadata struct {
// LocalFilePath SBOM file path
LocalFilePath string `json:"local_file_path"`
} `json:"metadata"`
} `json:"sbom"`
Source struct {
// BundleId Bundle id of the source code bundle
BundleId string `json:"bundle_id"`
// Metadata Metadata of the source code bundle
Metadata struct {
// LocalFilePath File or directory path for the source code
LocalFilePath string `json:"local_file_path"`
} `json:"metadata"`
} `json:"source"`
Type TestInputSBOMSourceBundlesType `json:"type"`
}
TestInputSBOMSourceBundles defines model for TestInputSBOMSourceBundles.
type TestInputSBOMSourceBundlesType ¶
type TestInputSBOMSourceBundlesType string
TestInputSBOMSourceBundlesType defines model for TestInputSBOMSourceBundles.Type.
const (
SbomSastBundles TestInputSBOMSourceBundlesType = "sbom_sast_bundles"
)
Defines values for TestInputSBOMSourceBundlesType.
type TestInputSBOMSourceRevisions ¶ added in v1.25.0
type TestInputSBOMSourceRevisions struct {
Sbom struct {
// Metadata Metadata of the SBOM revision
Metadata struct {
// LocalFilePath SBOM file path
LocalFilePath string `json:"local_file_path"`
} `json:"metadata"`
// RevisionId Revision id of the SBOM revision
RevisionId openapi_types.UUID `json:"revision_id"`
} `json:"sbom"`
Source struct {
// Metadata Metadata of the source code revision
Metadata struct {
// LocalFilePath File or directory path for the source code
LocalFilePath string `json:"local_file_path"`
} `json:"metadata"`
// RevisionId Revision id of the source code revision
RevisionId openapi_types.UUID `json:"revision_id"`
} `json:"source"`
Type TestInputSBOMSourceRevisionsType `json:"type"`
}
TestInputSBOMSourceRevisions defines model for TestInputSBOMSourceRevisions.
type TestInputSBOMSourceRevisionsType ¶ added in v1.25.0
type TestInputSBOMSourceRevisionsType string
TestInputSBOMSourceRevisionsType defines model for TestInputSBOMSourceRevisions.Type.
const (
SbomSourceRevisions TestInputSBOMSourceRevisionsType = "sbom_source_revisions"
)
Defines values for TestInputSBOMSourceRevisionsType.
type TestInputScmTarget ¶
type TestInputScmTarget struct {
// TargetId Id of the target to be tested
TargetId openapi_types.UUID `json:"target_id"`
Type TestInputScmTargetType `json:"type"`
// Version This target's version, like a git branch, a commit sha, or a Docker image tag
Version string `json:"version"`
}
TestInputScmTarget defines model for TestInputScmTarget.
type TestInputScmTargetType ¶
type TestInputScmTargetType string
TestInputScmTargetType defines model for TestInputScmTarget.Type.
const (
ScmTarget TestInputScmTargetType = "scm_target"
)
Defines values for TestInputScmTargetType.
type TestInputSourceBundle ¶
type TestInputSourceBundle struct {
// BundleId A Snyk bundle id
BundleId string `json:"bundle_id"`
// Metadata Metadata of the input to be tested
Metadata struct {
// Branch The name of the branch being tested
Branch *string `json:"branch,omitempty"`
// CommitId SHA of the commit being tested
CommitId *string `json:"commit_id,omitempty"`
// LimitTestToFiles The findings will be limited to a subset of files only.
LimitTestToFiles *[]string `json:"limit_test_to_files,omitempty"`
// LocalFilePath This can be a file path or a folder id for IDE
LocalFilePath string `json:"local_file_path"`
// RepoUrl The repo URL of the input being tested. This is used for correlating the results of the test with the asset.
// This will result in stable finding identities for subsequent tests of the same repository.
RepoUrl *string `json:"repo_url,omitempty"`
} `json:"metadata"`
Type TestInputSourceBundleType `json:"type"`
}
TestInputSourceBundle defines model for TestInputSourceBundle.
type TestInputSourceBundleType ¶
type TestInputSourceBundleType string
TestInputSourceBundleType defines model for TestInputSourceBundle.Type.
const (
SourceBundle TestInputSourceBundleType = "source_bundle"
)
Defines values for TestInputSourceBundleType.
type TestInputTarget ¶
type TestInputTarget struct {
// TargetId Id of the target to be tested
TargetId openapi_types.UUID `json:"target_id"`
Type TestInputTargetType `json:"type"`
// Version This target's version, like a git branch, a commit sha, or a Docker image tag
Version string `json:"version"`
}
TestInputTarget defines model for TestInputTarget.
type TestInputTargetType ¶
type TestInputTargetType string
TestInputTargetType defines model for TestInputTarget.Type.
const (
Target TestInputTargetType = "target"
)
Defines values for TestInputTargetType.
type TestInputUploadRevision ¶ added in v1.25.0
type TestInputUploadRevision struct {
// Metadata Metadata of the input to be tested
Metadata *struct {
// LocalFilePath This can be a file path or a folder id for IDE
LocalFilePath *string `json:"local_file_path,omitempty"`
// RepoUrl The repo URL of the input being tested. This is used for correlating the results of the test with the asset.
// This will result in stable finding identities for subsequent tests of the same repository.
RepoUrl *string `json:"repo_url,omitempty"`
} `json:"metadata,omitempty"`
// RevisionId A Snyk revision id
RevisionId string `json:"revision_id"`
Type TestInputUploadRevisionType `json:"type"`
}
TestInputUploadRevision defines model for TestInputUploadRevision.
type TestInputUploadRevisionType ¶ added in v1.25.0
type TestInputUploadRevisionType string
TestInputUploadRevisionType defines model for TestInputUploadRevision.Type.
const (
UploadRevision TestInputUploadRevisionType = "upload_revision"
)
Defines values for TestInputUploadRevisionType.
type TestInputWorkspace ¶
type TestInputWorkspace struct {
Type TestInputWorkspaceType `json:"type"`
// WorkspaceId Id of the workspace to be tested
WorkspaceId openapi_types.UUID `json:"workspace_id"`
}
TestInputWorkspace defines model for TestInputWorkspace.
type TestInputWorkspaceType ¶
type TestInputWorkspaceType string
TestInputWorkspaceType defines model for TestInputWorkspace.Type.
const (
Workspace TestInputWorkspaceType = "workspace"
)
Defines values for TestInputWorkspaceType.
type TestResponse ¶
type TestResponse struct {
Data struct {
// Id The id of the Snyk test
Id openapi_types.UUID `json:"id"`
Type TestResponseDataType `json:"type"`
} `json:"data"`
Jsonapi *externalRef0.JsonApi `json:"jsonapi,omitempty"`
Links externalRef0.SelfLink `json:"links"`
}
TestResponse defines model for TestResponse.
type TestResponseDataType ¶
type TestResponseDataType string
TestResponseDataType defines model for TestResponse.Data.Type.
const (
TestResponseDataTypeTest TestResponseDataType = "test"
)
Defines values for TestResponseDataType.
type TestResult ¶
type TestResult struct {
Data struct {
Attributes TestState `json:"attributes"`
// Id The id of the test
Id openapi_types.UUID `json:"id"`
Type TestResultDataType `json:"type"`
} `json:"data"`
Jsonapi externalRef0.JsonApi `json:"jsonapi"`
Links externalRef0.SelfLink `json:"links"`
}
TestResult defines model for TestResult.
type TestResultDataType ¶
type TestResultDataType string
TestResultDataType defines model for TestResult.Data.Type.
const (
TestResultDataTypeTest TestResultDataType = "test"
)
Defines values for TestResultDataType.
type TestState ¶
type TestState struct {
// contains filtered or unexported fields
}
TestState defines model for TestState.
func (TestState) AsTestAcceptedState ¶
func (t TestState) AsTestAcceptedState() (TestAcceptedState, error)
AsTestAcceptedState returns the union data inside the TestState as a TestAcceptedState
func (TestState) AsTestCompletedState ¶
func (t TestState) AsTestCompletedState() (TestCompletedState, error)
AsTestCompletedState returns the union data inside the TestState as a TestCompletedState
func (TestState) AsTestErrorState ¶
func (t TestState) AsTestErrorState() (TestErrorState, error)
AsTestErrorState returns the union data inside the TestState as a TestErrorState
func (TestState) AsTestInProgressState ¶
func (t TestState) AsTestInProgressState() (TestInProgressState, error)
AsTestInProgressState returns the union data inside the TestState as a TestInProgressState
func (TestState) Discriminator ¶
func (*TestState) FromTestAcceptedState ¶
func (t *TestState) FromTestAcceptedState(v TestAcceptedState) error
FromTestAcceptedState overwrites any union data inside the TestState as the provided TestAcceptedState
func (*TestState) FromTestCompletedState ¶
func (t *TestState) FromTestCompletedState(v TestCompletedState) error
FromTestCompletedState overwrites any union data inside the TestState as the provided TestCompletedState
func (*TestState) FromTestErrorState ¶
func (t *TestState) FromTestErrorState(v TestErrorState) error
FromTestErrorState overwrites any union data inside the TestState as the provided TestErrorState
func (*TestState) FromTestInProgressState ¶
func (t *TestState) FromTestInProgressState(v TestInProgressState) error
FromTestInProgressState overwrites any union data inside the TestState as the provided TestInProgressState
func (TestState) MarshalJSON ¶
func (*TestState) MergeTestAcceptedState ¶
func (t *TestState) MergeTestAcceptedState(v TestAcceptedState) error
MergeTestAcceptedState performs a merge with any union data inside the TestState, using the provided TestAcceptedState
func (*TestState) MergeTestCompletedState ¶
func (t *TestState) MergeTestCompletedState(v TestCompletedState) error
MergeTestCompletedState performs a merge with any union data inside the TestState, using the provided TestCompletedState
func (*TestState) MergeTestErrorState ¶
func (t *TestState) MergeTestErrorState(v TestErrorState) error
MergeTestErrorState performs a merge with any union data inside the TestState, using the provided TestErrorState
func (*TestState) MergeTestInProgressState ¶
func (t *TestState) MergeTestInProgressState(v TestInProgressState) error
MergeTestInProgressState performs a merge with any union data inside the TestState, using the provided TestInProgressState
func (*TestState) UnmarshalJSON ¶
func (TestState) ValueByDiscriminator ¶
type WebUI ¶
type WebUI struct {
// Link Link to the asset created in the Snyk web UI for this component
Link *string `json:"link,omitempty"`
// ProjectId The ID of the created project in the Snyk web UI for this component
ProjectId *openapi_types.UUID `json:"project_id,omitempty"`
// SnapshotId The ID of the created snapshot in the Snyk web UI for this component
SnapshotId *openapi_types.UUID `json:"snapshot_id,omitempty"`
}
WebUI defines model for WebUI.