Documentation ¶
Overview ¶
Package internal contains miscellaneous functions and objects useful within syft but should not be used externally.
Index ¶
Constants ¶
const ( // ApplicationName is the non-capitalized name of the application (do not change this) ApplicationName = "syft" // JSONSchemaVersion is the current schema version output by the JSON presenter // This is roughly following the "SchemaVer" guidelines for versioning the JSON schema. Please see schema/json/README.md for details on how to increment. JSONSchemaVersion = "1.1.0" )
Variables ¶
This section is empty.
Functions ¶
func CloseAndLogError ¶ added in v0.15.2
CloseAndLogError closes the given io.Closer and reports any errors found as a warning in the log
func HasAnyOfPrefixes ¶ added in v0.15.0
HasAnyOfPrefixes returns an indication if the given string has any of the given prefixes.
func MatchNamedCaptureGroups ¶ added in v0.15.0
MatchNamedCaptureGroups takes a regular expression and string and returns all of the named capture group results in a map. This is only for the first match in the regex. Callers shouldn't be providing regexes with multiple capture groups with the same name.
Types ¶
type StringSet ¶
type StringSet map[string]struct{}
StringSet represents a set of string types.
func NewStringSetFromSlice ¶
NewStringSetFromSlice creates a StringSet populated with values from the given slice.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
nolint:dupl nolint: dupl
|
nolint:dupl nolint: dupl |
Package bus provides access to a singleton instance of an event bus (provided by the calling application).
|
Package bus provides access to a singleton instance of an event bus (provided by the calling application). |
Package log contains the singleton object and helper functions for facilitating logging within the syft library.
|
Package log contains the singleton object and helper functions for facilitating logging within the syft library. |
Package logger contains implementations for the syft.logger.Logger interface.
|
Package logger contains implementations for the syft.logger.Logger interface. |
packages
Package cyclonedx is responsible for generating a CycloneDX XML report for the given container image or file system.
|
Package cyclonedx is responsible for generating a CycloneDX XML report for the given container image or file system. |
etui
Package etui provides an "ephemeral" terminal user interface to display the application state dynamically.
|
Package etui provides an "ephemeral" terminal user interface to display the application state dynamically. |
Package version contains all build time metadata (version, build time, git commit, etc).
|
Package version contains all build time metadata (version, build time, git commit, etc). |