Documentation
¶
Index ¶
- func CreateCycloneDXSbom(metadata cdx.Metadata, dependencies []cdx.Dependency, ...) *cdx.BOM
- func CurrentTimeStamp() string
- func WriteOutput(clsuter *ClusterBom, bomType string, format string) error
- func WritePkgBomOutput(clsuter *BomResult, bomType string, format string) error
- type BomResult
- type Cluster
- func (cluster *Cluster) CollectNodes() []NodeInfo
- func (bom *Cluster) CreateClusterBom(metadata Metadata, components []Component, Addons []Component, ...) *ClusterBom
- func (cluster *Cluster) CreateClusterSbom() (*ClusterBom, error)
- func (cluster *Cluster) CreateComResult() (*ClusterBom, error)
- func (cluster *Cluster) CreatePkgBom() (*BomResult, error)
- func (bom *Cluster) GetBaseComponent(imageRef name.Reference, imageName name.Reference) (Component, error)
- func (cluster *Cluster) GetPackages(metadata TargetMetadata, components []Component, Addons []Component, ...) *BomResult
- func (cluster *Cluster) NodeInfoToPkg(nodesInfo []NodeInfo, version string) []Package
- type ClusterBom
- type Component
- type ControlPlane
- type KeyValue
- type Metadata
- type NodeInfo
- type Package
- type TargetMetadata
- type Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCycloneDXSbom ¶
func CurrentTimeStamp ¶
func CurrentTimeStamp() string
func WriteOutput ¶
func WriteOutput(clsuter *ClusterBom, bomType string, format string) error
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func NewCluster ¶
func NewCluster(clientSet *kubernetes.Clientset, clientConfig clientcmd.ClientConfig) *Cluster
func (*Cluster) CollectNodes ¶
func (*Cluster) CreateClusterBom ¶
func (*Cluster) CreateClusterSbom ¶
func (cluster *Cluster) CreateClusterSbom() (*ClusterBom, error)
func (*Cluster) CreateComResult ¶
func (cluster *Cluster) CreateComResult() (*ClusterBom, error)
func (*Cluster) CreatePkgBom ¶
func (*Cluster) GetBaseComponent ¶
func (*Cluster) GetPackages ¶
type ClusterBom ¶
type ClusterBom struct { Metadata Metadata `json:"metadata,omitempty"` ControlPlane ControlPlane `json:"control_plane,omitempty"` NodesInfo []NodeInfo `json:"nodes,omitempty"` Addons []Component `json:"addons,omitempty"` }
type ControlPlane ¶
type ControlPlane struct {
Components []Component `json:"components,omitempty"`
}
type NodeInfo ¶
type NodeInfo struct { NodeRole string `json:"node_role,omitempty"` NodeName string `json:"node_name,omitempty"` KubeletVersion string `json:"kubelet_version,omitempty"` ContainerRuntimeVersion string `json:"container_runtime_version,omitempty"` OsImage string `json:"os_image,omitempty"` Hostname string `json:"host_name,omitempty"` KernelVersion string `json:"kernel_version,omitempty"` KubeProxyVersion string `json:"kube_proxy_version,omitempty"` OperatingSystem string `json:"operating_system,omitempty"` Architecture string `json:"architecture,omitempty"` }
type TargetMetadata ¶
Click to show internal directories.
Click to hide internal directories.