cpe

package
v2.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package cpe provides CPE (Common Platform Enumeration) validation and handling functionality for parsing and validating CPE identifiers in SBOM documents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPE

type CPE string

CPE represents a Common Platform Enumeration identifier used to uniquely identify classes of applications, operating systems, and hardware devices present in computing environments.

func NewCPE

func NewCPE(cpe string) CPE

NewCPE creates a new CPE instance from the provided string. It does not perform validation; use Valid() method to check format compliance.

func (CPE) String

func (cpe CPE) String() string

func (CPE) Valid

func (cpe CPE) Valid() bool

Valid checks whether the CPE string conforms to the CPE specification format. It returns true if the CPE matches either CPE 2.2 or CPE 2.3 format.

Jump to

Keyboard shortcuts

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