source

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64

func DecodeBase64(encoded string) (string, error)

decodeBase64 decodes base64 encoded SBOM data

func DetectSBOMsFile added in v0.0.3

func DetectSBOMsFile(name string) bool

DetectSBOMsFile simply detects files names and on the basis of possible patterns of SBOM files it retreives them.

func IsSBOMFile

func IsSBOMFile(content []byte) bool

IsSBOMFile simply detect SBOMs file format and spec after reading the file.

func IsSBOMJSONFormat added in v0.0.3

func IsSBOMJSONFormat(data []byte) bool

func ParseGitHubURL

func ParseGitHubURL(url string) (owner, repo string, err error)

ParseGitHubURL parses a GitHub URL into owner and repository

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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