Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v1.127.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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

func (*Integration) Validate

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

type SBOMUploader

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

func NewSBOMUploader

func NewSBOMUploader(httpClient *http.Client, 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