name

package
v0.91.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Normalize

func Normalize(name string, pkgType syftPkg.Type) string

func PackageNames

func PackageNames(p grypePkg.Package) []string

Types

type JavaResolver

type JavaResolver struct {
}

func (*JavaResolver) Names

func (r *JavaResolver) Names(p grypePkg.Package) []string

func (*JavaResolver) Normalize

func (r *JavaResolver) Normalize(name string) string

type PythonResolver

type PythonResolver struct {
}

func (*PythonResolver) Names

func (r *PythonResolver) Names(p grypePkg.Package) []string

func (*PythonResolver) Normalize

func (r *PythonResolver) Normalize(name string) string

type Resolver

type Resolver interface {
	Normalize(string) string
	Names(p grypePkg.Package) []string
}

func FromType

func FromType(t syftPkg.Type) Resolver

Jump to

Keyboard shortcuts

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