cmd

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CdxPrefix        = "cdx:"
	KSOCPrefix       = "ksoc:kbom:"
	K8sComponentType = "k8s:component:type"
	K8sComponentName = "k8s:component:name"

	ClusterType   = "cluster"
	NodeType      = "node"
	ContainerType = "container"
)
View Source
const (
	KSOCCompany = "KSOC Labs"
	BOMFormat   = "ksoc"
	SpecVersion = "0.2"

	StdOutput  = "stdout"
	FileOutput = "file"
)

Variables

View Source
var CycloneDXJsonFormat = Format{
	Name:          "cyclonedx-json",
	FileExtension: "json",
}
View Source
var CycloneDXXMLFormat = Format{
	Name:          "cyclonedx-xml",
	FileExtension: "xml",
}
View Source
var GenerateCmd = &cobra.Command{
	Use:   "generate",
	Short: "Generate KBOM for the provided K8s cluster",
	RunE:  runGenerate,
}
View Source
var JSONFormat = Format{
	Name:          "json",
	FileExtension: "json",
}
View Source
var YAMLFormat = Format{
	Name:          "yaml",
	FileExtension: "yaml",
}

Functions

func Execute

func Execute()

Types

type Format added in v0.2.0

type Format struct {
	Name          string
	FileExtension string
}

Jump to

Keyboard shortcuts

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