util

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParserNames = []string{
	"apk",
	"debian",
	"java",
	"npm",
	"composer",
	"python",
	"gem",
	"rpm",
	"dart",
	"nuget",
	"go",
	"rust",
	"conan",
	"hackage",
	"pod",
	"hex",
	"portage",
}

ParserNames slice of supported parser names

Functions

func CleanUp

func CleanUp(errGroup *[]error)

CleanUp clears temp files

func FormatLockKeyVal

func FormatLockKeyVal(kv string) string

FormatLockKeyVal formats .lock Key Value Data String

func IndexOf

func IndexOf(array []string, s string) int

IndexOf returns index of a string from a slice

func ParserEnabled

func ParserEnabled(parser string, enabledParsers *[]string) bool

ParserEnabled checks if all or a specific parser is enabled

func StringSliceContains

func StringSliceContains(s []string, e string) bool

StringSliceContains checks if a string slice contains specified string

func TrimUntilLayer

func TrimUntilLayer(location model.Location) string

TrimUntilLayer Returns file path without layer hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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