Documentation ¶
Index ¶
- Constants
- func AddFileExtension(filename, outputType string) string
- func FindUpstream(target string) string
- func FormatImage(image string) string
- func GetComponentType(props *[]cyclonedx.Property) string
- func IsDirExists(path string) (bool, error)
- func IsFileExists(path string) (bool, error)
- func SaveToFile(data interface{}, path, format string) error
- func SplitCpe(cpe string) []string
- func ToJSON(t interface{}) ([]byte, error)
- func ToXML(data interface{}) ([]byte, error)
- func ToYAML(t interface{}) ([]byte, error)
- func WriteFile(data []byte, path string) error
- func WriteYAML(t interface{}, path string) error
Constants ¶
View Source
const ( DefaultImageTag string = "latest" ImageSeparator string = ":" )
Variables ¶
This section is empty.
Functions ¶
func AddFileExtension ¶
func FindUpstream ¶ added in v1.9.0
func FormatImage ¶
FormatImage set default image tag if not provided
func GetComponentType ¶ added in v1.8.3
func GetComponentType(props *[]cyclonedx.Property) string
GetComponentType returns the type of a component.
func IsDirExists ¶ added in v1.10.1
IsDirExists checks if a directory exists and is valid.
func IsFileExists ¶
IsFileExists checks if a file exists and is valid.
func SaveToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.