packagemetadata

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllTypeNames added in v0.95.0

func AllTypeNames() []string

func AllTypes

func AllTypes() []any

AllTypes returns a list of all pkg metadata types that syft supports (that are represented in the pkg.Package.Metadata field).

func DiscoverTypeNames

func DiscoverTypeNames() ([]string, error)

func JSONLegacyName added in v0.95.0

func JSONLegacyName(metadata any) string

func JSONName added in v0.95.0

func JSONName(metadata any) string

func ReflectTypeFromJSONName added in v0.95.0

func ReflectTypeFromJSONName(name string) reflect.Type

func RepoRoot

func RepoRoot() (string, error)

Types

type CompletionTester added in v0.95.0

type CompletionTester struct {
	// contains filtered or unexported fields
}

func NewCompletionTester added in v0.95.0

func NewCompletionTester(t testing.TB, ignore ...any) *CompletionTester

func (*CompletionTester) Tested added in v0.95.0

func (tr *CompletionTester) Tested(t testing.TB, m any)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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