Documentation ¶
Index ¶
- Constants
- type StorageClient
- type StorageHttpClientMock
- func (sc *StorageHttpClientMock) CreateApplicationActivity(activity *spdxv1beta1.ApplicationActivity, _ string) error
- func (sc *StorageHttpClientMock) CreateApplicationProfile(profile *v1beta1.ApplicationProfile, _ string) error
- func (sc *StorageHttpClientMock) CreateFilteredSBOM(SBOM *v1beta1.SBOMSyftFiltered) error
- func (sc *StorageHttpClientMock) CreateNetworkNeighborhood(neighborhood *v1beta1.NetworkNeighborhood, _ string) error
- func (sc *StorageHttpClientMock) CreateNetworkNeighbors(networkNeighbors *v1beta1.NetworkNeighbors, _ string) error
- func (sc *StorageHttpClientMock) DecrementImageUse(imageID string)
- func (sc *StorageHttpClientMock) GetApplicationProfile(_, _ string) (*v1beta1.ApplicationProfile, error)
- func (sc *StorageHttpClientMock) GetFilteredSBOM(name string) (*v1beta1.SBOMSyftFiltered, error)
- func (sc *StorageHttpClientMock) GetNetworkNeighborhood(_, _ string) (*v1beta1.NetworkNeighborhood, error)
- func (sc *StorageHttpClientMock) GetNetworkNeighbors(_, name string) (*v1beta1.NetworkNeighbors, error)
- func (sc *StorageHttpClientMock) GetSBOM(_ string) (*v1beta1.SBOMSyft, error)
- func (sc *StorageHttpClientMock) IncrementImageUse(imageID string)
- func (sc *StorageHttpClientMock) PatchApplicationProfile(name, _ string, operations []utils.PatchOperation, _ chan error) error
- func (sc *StorageHttpClientMock) PatchFilteredSBOM(_ string, _ *spdxv1beta1.SBOMSyftFiltered) error
- func (sc *StorageHttpClientMock) PatchNetworkNeighborhood(name, _ string, operations []utils.PatchOperation, _ chan error) error
- func (sc *StorageHttpClientMock) PatchNetworkNeighborsIngressAndEgress(_, _ string, _ *v1beta1.NetworkNeighbors) error
- func (sc *StorageHttpClientMock) PatchNetworkNeighborsMatchLabels(_, _ string, _ *v1beta1.NetworkNeighbors) error
Constants ¶
View Source
const ( NginxKey = "nginx-c9b3ae" NginxImageID = "nginx@sha256:6a59f1cbb8d28ac484176d52c473494859a512ddba3ea62a547258cf16c9b3ae" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageClient ¶
type StorageClient interface { CreateApplicationActivity(activity *v1beta1.ApplicationActivity, namespace string) error CreateApplicationProfile(profile *v1beta1.ApplicationProfile, namespace string) error PatchApplicationProfile(name, namespace string, operations []utils.PatchOperation, channel chan error) error GetApplicationProfile(namespace, name string) (*v1beta1.ApplicationProfile, error) CreateFilteredSBOM(SBOM *v1beta1.SBOMSyftFiltered) error GetFilteredSBOM(name string) (*v1beta1.SBOMSyftFiltered, error) GetSBOM(name string) (*v1beta1.SBOMSyft, error) IncrementImageUse(imageID string) DecrementImageUse(imageID string) GetNetworkNeighbors(namespace, name string) (*v1beta1.NetworkNeighbors, error) CreateNetworkNeighbors(networkNeighbors *v1beta1.NetworkNeighbors, namespace string) error PatchNetworkNeighborsMatchLabels(name, namespace string, networkNeighbors *v1beta1.NetworkNeighbors) error PatchNetworkNeighborsIngressAndEgress(name, namespace string, networkNeighbors *v1beta1.NetworkNeighbors) error GetNetworkNeighborhood(namespace, name string) (*v1beta1.NetworkNeighborhood, error) CreateNetworkNeighborhood(neighborhood *v1beta1.NetworkNeighborhood, namespace string) error PatchNetworkNeighborhood(name, namespace string, operations []utils.PatchOperation, channel chan error) error }
type StorageHttpClientMock ¶
type StorageHttpClientMock struct { ApplicationActivities []*spdxv1beta1.ApplicationActivity ApplicationProfiles []*spdxv1beta1.ApplicationProfile FilteredSyftSBOMs []*spdxv1beta1.SBOMSyftFiltered NetworkNeighborhoods []*v1beta1.NetworkNeighborhood NetworkNeighborses []*v1beta1.NetworkNeighbors ImageCounters map[string]int // contains filtered or unexported fields }
func CreateSyftSBOMStorageHttpClientMock ¶
func CreateSyftSBOMStorageHttpClientMock(sbom spdxv1beta1.SBOMSyft) *StorageHttpClientMock
func (*StorageHttpClientMock) CreateApplicationActivity ¶
func (sc *StorageHttpClientMock) CreateApplicationActivity(activity *spdxv1beta1.ApplicationActivity, _ string) error
func (*StorageHttpClientMock) CreateApplicationProfile ¶
func (sc *StorageHttpClientMock) CreateApplicationProfile(profile *v1beta1.ApplicationProfile, _ string) error
func (*StorageHttpClientMock) CreateFilteredSBOM ¶
func (sc *StorageHttpClientMock) CreateFilteredSBOM(SBOM *v1beta1.SBOMSyftFiltered) error
func (*StorageHttpClientMock) CreateNetworkNeighborhood ¶
func (sc *StorageHttpClientMock) CreateNetworkNeighborhood(neighborhood *v1beta1.NetworkNeighborhood, _ string) error
func (*StorageHttpClientMock) CreateNetworkNeighbors ¶
func (sc *StorageHttpClientMock) CreateNetworkNeighbors(networkNeighbors *v1beta1.NetworkNeighbors, _ string) error
func (*StorageHttpClientMock) DecrementImageUse ¶
func (sc *StorageHttpClientMock) DecrementImageUse(imageID string)
func (*StorageHttpClientMock) GetApplicationProfile ¶
func (sc *StorageHttpClientMock) GetApplicationProfile(_, _ string) (*v1beta1.ApplicationProfile, error)
func (*StorageHttpClientMock) GetFilteredSBOM ¶
func (sc *StorageHttpClientMock) GetFilteredSBOM(name string) (*v1beta1.SBOMSyftFiltered, error)
func (*StorageHttpClientMock) GetNetworkNeighborhood ¶
func (sc *StorageHttpClientMock) GetNetworkNeighborhood(_, _ string) (*v1beta1.NetworkNeighborhood, error)
func (*StorageHttpClientMock) GetNetworkNeighbors ¶
func (sc *StorageHttpClientMock) GetNetworkNeighbors(_, name string) (*v1beta1.NetworkNeighbors, error)
func (*StorageHttpClientMock) GetSBOM ¶
func (sc *StorageHttpClientMock) GetSBOM(_ string) (*v1beta1.SBOMSyft, error)
func (*StorageHttpClientMock) IncrementImageUse ¶
func (sc *StorageHttpClientMock) IncrementImageUse(imageID string)
func (*StorageHttpClientMock) PatchApplicationProfile ¶
func (sc *StorageHttpClientMock) PatchApplicationProfile(name, _ string, operations []utils.PatchOperation, _ chan error) error
func (*StorageHttpClientMock) PatchFilteredSBOM ¶
func (sc *StorageHttpClientMock) PatchFilteredSBOM(_ string, _ *spdxv1beta1.SBOMSyftFiltered) error
func (*StorageHttpClientMock) PatchNetworkNeighborhood ¶
func (sc *StorageHttpClientMock) PatchNetworkNeighborhood(name, _ string, operations []utils.PatchOperation, _ chan error) error
func (*StorageHttpClientMock) PatchNetworkNeighborsIngressAndEgress ¶
func (sc *StorageHttpClientMock) PatchNetworkNeighborsIngressAndEgress(_, _ string, _ *v1beta1.NetworkNeighbors) error
func (*StorageHttpClientMock) PatchNetworkNeighborsMatchLabels ¶
func (sc *StorageHttpClientMock) PatchNetworkNeighborsMatchLabels(_, _ string, _ *v1beta1.NetworkNeighbors) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.