mocks

package
v3.0.10 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockDevelopmentPrivileged

func MockDevelopmentPrivileged() workloadinterface.IMetadata

func MockDevelopmentWithHostpath

func MockDevelopmentWithHostpath() workloadinterface.IMetadata

func MockFramework_0006_0013

func MockFramework_0006_0013() *reporthandling.Framework

MockFramework_0006_0013 mock control 0013 and control 0006 - "Non-root containers" and "HostPath mount"

func MockFramework_0013

func MockFramework_0013() *reporthandling.Framework

MockFramework_0013 mock control 0013 - Non-root containers

func MockFramework_0044

func MockFramework_0044() *reporthandling.Framework

MockFramework_0044 mock control 0044 - "Container hostPort"

Types

type MockIKubescape added in v3.0.3

type MockIKubescape struct{}

func (*MockIKubescape) DeleteCachedConfig added in v3.0.3

func (m *MockIKubescape) DeleteCachedConfig(ctx context.Context, deleteConfig *metav1.DeleteConfig) error

func (*MockIKubescape) Download added in v3.0.3

func (m *MockIKubescape) Download(ctx context.Context, downloadInfo *metav1.DownloadInfo) error

func (*MockIKubescape) Fix added in v3.0.3

func (m *MockIKubescape) Fix(ctx context.Context, fixInfo *metav1.FixInfo) error

func (*MockIKubescape) List added in v3.0.3

func (m *MockIKubescape) List(ctx context.Context, listPolicies *metav1.ListPolicies) error

func (*MockIKubescape) Patch added in v3.0.3

func (m *MockIKubescape) Patch(ctx context.Context, patchInfo *metav1.PatchInfo, scanInfo *cautils.ScanInfo) (*models.PresenterConfig, error)

func (*MockIKubescape) Scan added in v3.0.3

func (*MockIKubescape) ScanImage added in v3.0.3

func (m *MockIKubescape) ScanImage(ctx context.Context, imgScanInfo *metav1.ImageScanInfo, scanInfo *cautils.ScanInfo) (*models.PresenterConfig, error)

func (*MockIKubescape) SetCachedConfig added in v3.0.3

func (m *MockIKubescape) SetCachedConfig(setConfig *metav1.SetConfig) error

func (*MockIKubescape) ViewCachedConfig added in v3.0.3

func (m *MockIKubescape) ViewCachedConfig(viewConfig *metav1.ViewConfig) error

Jump to

Keyboard shortcuts

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