Documentation ¶
Index ¶
- Constants
- Variables
- func CheckFile(name string) error
- func CreateDir(dir string) error
- func CreateTempDir(imageName string) (string, error)
- func ExtractLayer(tempDir string, manifest Manifest) (string, error)
- func GetCurrentWorkDir() (string, error)
- func GetImageNameAndVersion(image string) (string, string)
- func PrintSbom()
- func PullImage(image string) (v1.Image, error)
- func ReadFile(filePath string) ([]string, error)
- func ReadImageConfig(tempDir string, manifest Manifest) (v1.ConfigFile, error)
- func RemoveDir(dir string)
- func SaveAndUntarImage(v1Image v1.Image, image string) (string, error)
- func UnGzip(source, target string) error
- func Untar(tarball, target string) error
- func UntarImage(tarPath string) (string, error)
- type Manifest
- type OsRelease
Constants ¶
View Source
const ( ApplicationName = "sbom" ApplicationVersion = "0.5" AssociationThresholod = 3 )
Variables ¶
View Source
var Blue = "\033[34m"
View Source
var Green = "\033[32m"
View Source
var Red = "\033[31m"
View Source
var Reset = "\033[0m"
View Source
var White = "\033[97m"
View Source
var Yellow = "\033[33m"
Functions ¶
func CreateTempDir ¶
func GetCurrentWorkDir ¶
func GetImageNameAndVersion ¶
func ReadImageConfig ¶
func ReadImageConfig(tempDir string, manifest Manifest) (v1.ConfigFile, error)
func UntarImage ¶
Types ¶
type Manifest ¶
func ReadImageManifest ¶
Click to show internal directories.
Click to hide internal directories.