storage

package
v0.2.205 Latest Latest
Warning

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

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

Documentation

Index

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)
	CreateSBOM(SBOM *v1beta1.SBOMSyft) (*v1beta1.SBOMSyft, error)
	GetSBOM(name string) (*v1beta1.SBOMSyft, error)
	GetSBOMMeta(name string) (*v1beta1.SBOMSyft, error)
	ReplaceSBOM(SBOM *v1beta1.SBOMSyft) (*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
	SyftSBOMs             []*spdxv1beta1.SBOMSyft
	NetworkNeighborhoods  []*v1beta1.NetworkNeighborhood
	NetworkNeighborses    []*v1beta1.NetworkNeighbors
	ImageCounters         map[string]int
	// contains filtered or unexported fields
}

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) CreateNetworkNeighborhood

func (sc *StorageHttpClientMock) CreateNetworkNeighborhood(neighborhood *v1beta1.NetworkNeighborhood, _ string) error

func (*StorageHttpClientMock) CreateNetworkNeighbors

func (sc *StorageHttpClientMock) CreateNetworkNeighbors(networkNeighbors *v1beta1.NetworkNeighbors, _ string) error

func (*StorageHttpClientMock) CreateSBOM added in v0.2.197

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

func (*StorageHttpClientMock) DecrementImageUse

func (sc *StorageHttpClientMock) DecrementImageUse(imageID string)

func (*StorageHttpClientMock) GetApplicationProfile

func (sc *StorageHttpClientMock) GetApplicationProfile(_, _ string) (*v1beta1.ApplicationProfile, 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) GetSBOMMeta added in v0.2.197

func (sc *StorageHttpClientMock) GetSBOMMeta(_ 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) 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

func (*StorageHttpClientMock) ReplaceSBOM added in v0.2.197

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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