common

package
v2.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeClarityImage                          = "ghcr.io/openclarity/kubeclarity"
	KubeClaritySbomDBImage                    = "ghcr.io/openclarity/kubeclarity-sbom-db"
	KubeClarityRuntimeK8sScannerImage         = "ghcr.io/openclarity/kubeclarity-runtime-k8s-scanner"
	KubeClarityCISDockerBenchmarkScannerImage = "ghcr.io/openclarity/kubeclarity-cis-docker-benchmark-scanner"

	KubeClarityPodLabels             = "app=kubeclarity-kubeclarity"
	KubeClarityServiceName           = "kubeclarity-kubeclarity"
	KubeClarityDeploymentName        = "kubeclarity-kubeclarity"
	KubeClarityNamespace             = "kubeclarity"
	KubeClarityHelmReleaseName       = "kubeclarity"
	KubeClarityPortForwardHostPort   = "8089"
	KubeClarityPortForwardTargetPort = "8080"
)

Variables

This section is empty.

Functions

func CreateNamespace

func CreateNamespace(client klient.Client, name string) error

func Deploy

func Deploy(ns string, yamlFile string) error

func DescribeKubeClarityDeployment

func DescribeKubeClarityDeployment()

func DescribeKubeClarityPods

func DescribeKubeClarityPods()

func GetApplicationResources

func GetApplicationResources(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs) *operations.GetApplicationResourcesOKBody

func GetCISDockerBenchmarkResults

func GetCISDockerBenchmarkResults(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs, resourceID string) *operations.GetCisdockerbenchmarkresultsIDOKBody

func GetCurrentDir

func GetCurrentDir() string

func GetKubeClarityPods

func GetKubeClarityPods()

func GetPackages

func GetPackages(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs) *operations.GetPackagesOKBody

func GetRuntimeScanProgress

func GetRuntimeScanProgress(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs) *models.Progress

func GetRuntimeScanResults

func GetRuntimeScanResults(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs) *models.RuntimeScanResults

func GetVulnerabilities

func GetVulnerabilities(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs) *operations.GetVulnerabilitiesOKBody

func InstallKubeClarity

func InstallKubeClarity(manager *helm.Manager, args string) error

func LoadDockerImageToCluster

func LoadDockerImageToCluster(cluster, image string) error

func LoadDockerImagesToCluster

func LoadDockerImagesToCluster(cluster, tag string) error

func PortForwardToKubeClarity

func PortForwardToKubeClarity(stopCh chan struct{})

func PostApplications

func PostApplications(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs, applicationInfo *models.ApplicationInfo) *operations.PostApplicationsCreated

func StringPtr

func StringPtr(val string) *string

func UninstallKubeClarity

func UninstallKubeClarity() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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