client

package
v1.107.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(host, apiKey string, checkAutoCreate bool) (*Integration, error)

The integration definition

func (*Integration) Validate

func (d *Integration) Validate(_ context.Context) error

type SBOMUploader

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

func NewSBOMUploader

func NewSBOMUploader(host, apiKey string, sbom io.Reader, projectID, projectName string, parentID string) (*SBOMUploader, error)

func (*SBOMUploader) Do

func (d *SBOMUploader) Do(_ context.Context) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL