tools

package
v0.3.58 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteContents added in v0.2.105

func DeleteContents(dir string) error

func FileContent added in v0.2.99

func FileContent(path string) []byte

func FileToCVEManifest added in v0.2.99

func FileToCVEManifest(path string) domain.CVEManifest

func FileToSBOM added in v0.2.99

func FileToSBOM(path string) *v1beta1.SyftDocument

func LabelsFromImageID added in v0.2.99

func LabelsFromImageID(imageID string) map[string]string

LabelsFromImageID returns a map of labels from an image ID. Each label is sanitized and verified to be a valid DNS1123 label.

func NormalizeReference added in v0.2.105

func NormalizeReference(ref string) string

func PackageVersion added in v0.1.19

func PackageVersion(name string) string

func RemoveContainerFromSlug added in v0.3.48

func RemoveContainerFromSlug(slug, container string) string

func SanitizeLabel added in v0.3.49

func SanitizeLabel(s string) string

SanitizeLabel sanitizes a string to be a valid DNS1123 label.

Types

This section is empty.

Jump to

Keyboard shortcuts

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