Documentation ¶
Index ¶
- Constants
- func CreateNamespace(client klient.Client, name string) error
- func Deploy(ns string, yamlFile string) error
- func DescribeKubeClarityDeployment()
- func DescribeKubeClarityPods()
- func GetApplicationResources(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs) *operations.GetApplicationResourcesOKBody
- func GetCISDockerBenchmarkResults(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs, resourceID string) *operations.GetCisdockerbenchmarkresultsIDOKBody
- func GetCurrentDir() string
- func GetKubeClarityPods()
- func GetPackages(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs) *operations.GetPackagesOKBody
- func GetRuntimeScanProgress(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs) *models.Progress
- func GetRuntimeScanResults(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs) *models.RuntimeScanResults
- func GetVulnerabilities(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs) *operations.GetVulnerabilitiesOKBody
- func InstallKubeClarity(manager *helm.Manager, args string) error
- func LoadDockerImageToCluster(cluster, image string) error
- func LoadDockerImagesToCluster(cluster, tag string) error
- func PortForwardToKubeClarity(stopCh chan struct{})
- func PostApplications(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs, ...) *operations.PostApplicationsCreated
- func PutRuntimeScanStart(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs, ...) *operations.PutRuntimeScanStartCreated
- func StringPtr(val string) *string
- func UninstallKubeClarity() error
- func WaitForPodRunning(client klient.Client, ns string, labelSelector string) error
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 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 GetRuntimeScanResults ¶
func GetRuntimeScanResults(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs) *models.RuntimeScanResults
func GetVulnerabilities ¶
func GetVulnerabilities(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs) *operations.GetVulnerabilitiesOKBody
func PortForwardToKubeClarity ¶
func PortForwardToKubeClarity(stopCh chan struct{})
func PostApplications ¶
func PostApplications(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs, applicationInfo *models.ApplicationInfo) *operations.PostApplicationsCreated
func PutRuntimeScanStart ¶
func PutRuntimeScanStart(t *testing.T, kubeclarityAPI *client.KubeClarityAPIs, config *models.RuntimeScanConfig) *operations.PutRuntimeScanStartCreated
func UninstallKubeClarity ¶
func UninstallKubeClarity() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.