cyclonedx

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Type     string              `json:"type"`
	Group    string              `json:"group,omitempty"`
	Name     string              `json:"name"`
	Version  string              `json:"version"`
	Purl     string              `json:"purl"`
	Licenses []LicenseExpression `json:"licenses,omitempty"`
}

type Doc

type Doc struct {
	BomFormat   string      `json:"bomFormat"`
	SpecVersion string      `json:"specVersion"`
	Version     int         `json:"version"`
	Metadata    Metadata    `json:"metadata"`
	Components  []Component `json:"components"`
}

func MakeDoc

func MakeDoc(toolVersion string, components []Component) Doc

type License

type License struct {
	Expression string `json:"expression"`
}

type LicenseExpression

type LicenseExpression struct {
	Expression string `json:"expression"`
}

type Metadata

type Metadata struct {
	Timestamp string    `json:"timestamp"`
	Tools     []Tool    `json:"tools"`
	Licenses  []License `json:"licenses"`
}

type Tool

type Tool struct {
	Vendor  string `json:"vendor"`
	Name    string `json:"name"`
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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