cpeuri

package
v0.11.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertEmptyToAny

func ConvertEmptyToAny(cpe *cpeutils.CPE)

ConvertEmptyToAny is used to fill in empty fields with ANY (i.e., "*"). This is primarily used when CPE URI binding string is the input.

func GetCPEStructFromString

func GetCPEStructFromString(s string) (cpeutils.CPE, error)

func IsCPEFormattedString

func IsCPEFormattedString(s string) bool

IsCPEFormattedString determines if a string looks like it is a CPE bound as 2.3 formatted string.

func IsCPEURIString

func IsCPEURIString(s string) bool

IsCPEURIString determines if a string looks like it is a CPE bound as 2.2 URI

func RemoveSlashes added in v0.10.0

func RemoveSlashes(s string) string

RemoveSlashes - remove backslashes from a string

func ToStruct

func ToStruct(s string) (*cpeutils.CPE, error)

func UnbindCPEFormattedString

func UnbindCPEFormattedString(str string) (cpeutils.CPE, error)

func UnbindCPEURIString

func UnbindCPEURIString(uri string) (cpeutils.CPE, error)

UnbindCPEURIString is based on the pseudocode algorithm found in 6.1.3.2 of NISTIR 7695

Types

This section is empty.

Jump to

Keyboard shortcuts

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