storage

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeConfig = "KUBECONFIG"
)

Variables

This section is empty.

Functions

func CreateSeccompProfileClient added in v0.3.11

func CreateSeccompProfileClient(backend string, storageClient spdxv1beta1.SpdxV1beta1Interface, dynamicClient dynamic.Interface) storage.SeccompProfileClient

CreateSeccompProfileClient creates the appropriate SeccompProfileClient based on config For "crd" backend, uses the dynamic client to interact with kubescape.io/v1beta1 CRDs For "storage" backend (default), uses the typed storage client for spdx.softwarecomposition.kubescape.io/v1beta1

Types

type CRDSeccompProfileClient added in v0.3.11

type CRDSeccompProfileClient struct {
	// contains filtered or unexported fields
}

CRDSeccompProfileClient implements SeccompProfileClient using the native CRD backend

func NewCRDSeccompProfileClient added in v0.3.11

func NewCRDSeccompProfileClient(dynamicClient dynamic.Interface) *CRDSeccompProfileClient

NewCRDSeccompProfileClient creates a new CRD-backed SeccompProfile client

func (*CRDSeccompProfileClient) GetSeccompProfile added in v0.3.11

func (c *CRDSeccompProfileClient) GetSeccompProfile(namespace, name string) (*v1beta1.SeccompProfile, error)

func (*CRDSeccompProfileClient) ListSeccompProfiles added in v0.3.11

func (c *CRDSeccompProfileClient) ListSeccompProfiles(namespace string, opts metav1.ListOptions) (*v1beta1.SeccompProfileList, error)

func (*CRDSeccompProfileClient) WatchSeccompProfiles added in v0.3.11

func (c *CRDSeccompProfileClient) WatchSeccompProfiles(namespace string, opts metav1.ListOptions) (watch.Interface, error)

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func CreateFakeStorage

func CreateFakeStorage(namespace string) (*Storage, error)

func CreateStorage

func CreateStorage(namespace string) (*Storage, error)

func (*Storage) CreateContainerProfileDirect added in v0.2.351

func (sc *Storage) CreateContainerProfileDirect(profile *v1beta1.ContainerProfile) error

CreateContainerProfileDirect directly creates the profile without queuing This implements the ProfileCreator interface

func (*Storage) CreateSBOM added in v0.2.197

func (sc *Storage) CreateSBOM(SBOM *v1beta1.SBOMSyft) (*v1beta1.SBOMSyft, error)

func (*Storage) GetApplicationProfile

func (sc *Storage) GetApplicationProfile(namespace, name string) (*v1beta1.ApplicationProfile, error)

func (*Storage) GetNetworkNeighborhood

func (sc *Storage) GetNetworkNeighborhood(namespace, name string) (*v1beta1.NetworkNeighborhood, error)

func (*Storage) GetSBOMMeta added in v0.2.197

func (sc *Storage) GetSBOMMeta(name string) (*v1beta1.SBOMSyft, error)

func (*Storage) GetStorageClient added in v0.3.3

func (sc *Storage) GetStorageClient() spdxv1beta1.SpdxV1beta1Interface

func (*Storage) ListApplicationProfiles added in v0.3.3

func (sc *Storage) ListApplicationProfiles(namespace string, limit int64, cont string) (*v1beta1.ApplicationProfileList, error)

func (*Storage) ListNetworkNeighborhoods added in v0.3.3

func (sc *Storage) ListNetworkNeighborhoods(namespace string, limit int64, cont string) (*v1beta1.NetworkNeighborhoodList, error)

func (*Storage) ReplaceSBOM added in v0.2.197

func (sc *Storage) ReplaceSBOM(SBOM *v1beta1.SBOMSyft) (*v1beta1.SBOMSyft, error)

type StorageSeccompProfileClient added in v0.3.11

type StorageSeccompProfileClient struct {
	// contains filtered or unexported fields
}

StorageSeccompProfileClient implements SeccompProfileClient using the aggregated API storage backend

func NewStorageSeccompProfileClient added in v0.3.11

func NewStorageSeccompProfileClient(storageClient spdxv1beta1.SpdxV1beta1Interface) *StorageSeccompProfileClient

NewStorageSeccompProfileClient creates a new storage-backed SeccompProfile client

func (*StorageSeccompProfileClient) GetSeccompProfile added in v0.3.11

func (c *StorageSeccompProfileClient) GetSeccompProfile(namespace, name string) (*v1beta1.SeccompProfile, error)

func (*StorageSeccompProfileClient) ListSeccompProfiles added in v0.3.11

func (c *StorageSeccompProfileClient) ListSeccompProfiles(namespace string, opts metav1.ListOptions) (*v1beta1.SeccompProfileList, error)

func (*StorageSeccompProfileClient) WatchSeccompProfiles added in v0.3.11

func (c *StorageSeccompProfileClient) WatchSeccompProfiles(namespace string, opts metav1.ListOptions) (watch.Interface, error)

Jump to

Keyboard shortcuts

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