Documentation
¶
Index ¶
- Constants
- func CreateSeccompProfileClient(backend string, storageClient spdxv1beta1.SpdxV1beta1Interface, ...) storage.SeccompProfileClient
- type CRDSeccompProfileClient
- func (c *CRDSeccompProfileClient) GetSeccompProfile(namespace, name string) (*v1beta1.SeccompProfile, error)
- func (c *CRDSeccompProfileClient) ListSeccompProfiles(namespace string, opts metav1.ListOptions) (*v1beta1.SeccompProfileList, error)
- func (c *CRDSeccompProfileClient) WatchSeccompProfiles(namespace string, opts metav1.ListOptions) (watch.Interface, error)
- type Storage
- func (sc *Storage) CreateContainerProfileDirect(profile *v1beta1.ContainerProfile) error
- func (sc *Storage) CreateSBOM(SBOM *v1beta1.SBOMSyft) (*v1beta1.SBOMSyft, error)
- func (sc *Storage) GetApplicationProfile(namespace, name string) (*v1beta1.ApplicationProfile, error)
- func (sc *Storage) GetNetworkNeighborhood(namespace, name string) (*v1beta1.NetworkNeighborhood, error)
- func (sc *Storage) GetSBOMMeta(name string) (*v1beta1.SBOMSyft, error)
- func (sc *Storage) GetStorageClient() spdxv1beta1.SpdxV1beta1Interface
- func (sc *Storage) ListApplicationProfiles(namespace string, limit int64, cont string) (*v1beta1.ApplicationProfileList, error)
- func (sc *Storage) ListNetworkNeighborhoods(namespace string, limit int64, cont string) (*v1beta1.NetworkNeighborhoodList, error)
- func (sc *Storage) ReplaceSBOM(SBOM *v1beta1.SBOMSyft) (*v1beta1.SBOMSyft, error)
- type StorageSeccompProfileClient
- func (c *StorageSeccompProfileClient) GetSeccompProfile(namespace, name string) (*v1beta1.SeccompProfile, error)
- func (c *StorageSeccompProfileClient) ListSeccompProfiles(namespace string, opts metav1.ListOptions) (*v1beta1.SeccompProfileList, error)
- func (c *StorageSeccompProfileClient) WatchSeccompProfiles(namespace string, opts metav1.ListOptions) (watch.Interface, error)
Constants ¶
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 CreateStorage ¶
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 (*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 (*Storage) GetStorageClient ¶ added in v0.3.3
func (sc *Storage) GetStorageClient() spdxv1beta1.SpdxV1beta1Interface
func (*Storage) ListApplicationProfiles ¶ added in v0.3.3
func (*Storage) ListNetworkNeighborhoods ¶ added in v0.3.3
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)