Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrValidation = errors.New("validation error")
Functions ¶
This section is empty.
Types ¶
type Integration ¶
type Integration struct {
// contains filtered or unexported fields
}
func NewIntegration ¶
func NewIntegration(httpClient *http.Client, host, apiKey string, checkAutoCreate bool) (*Integration, error)
The integration definition
type SBOMUploader ¶
type SBOMUploader struct {
// contains filtered or unexported fields
}
func NewSBOMUploader ¶
func (*SBOMUploader) Validate ¶
func (d *SBOMUploader) Validate(ctx context.Context) error
Validate before uploading an sbom This method will take into account validations from two different life-cycles - Validation used to make sure that the dependency track instance is correctly setup - That the provided parameters, i.e project_id is valid, meaning it exists in the instance
type StatusError ¶ added in v1.132.0
type StatusError struct {
// Status is the HTTP status line of the response, for example "403 Forbidden".
Status string
// StatusCode is the HTTP status code of the response.
StatusCode int
}
StatusError is returned when Dependency-Track answers with an unexpected HTTP status. It has its own type so that Sentry does not group it with transport or decode failures.
func (*StatusError) Error ¶ added in v1.132.0
func (e *StatusError) Error() string
Click to show internal directories.
Click to hide internal directories.