storage

package
v0.2.111 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxApplicationProfileSize  = 10000
	DefaultMaxNetworkNeighborhoodSize = 1000
	KubeConfig                        = "KUBECONFIG"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	StorageClient spdxv1beta1.SpdxV1beta1Interface
	// contains filtered or unexported fields
}

func CreateFakeStorage

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

func CreateStorage

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

func (Storage) CreateApplicationActivity

func (sc Storage) CreateApplicationActivity(activity *v1beta1.ApplicationActivity, namespace string) error

func (Storage) CreateApplicationProfile

func (sc Storage) CreateApplicationProfile(profile *v1beta1.ApplicationProfile, namespace string) error

func (Storage) CreateFilteredSBOM

func (sc Storage) CreateFilteredSBOM(SBOM *v1beta1.SBOMSyftFiltered) error

func (Storage) CreateNetworkNeighborhood

func (sc Storage) CreateNetworkNeighborhood(neighborhood *v1beta1.NetworkNeighborhood, namespace string) error

func (Storage) CreateNetworkNeighbors

func (sc Storage) CreateNetworkNeighbors(networkNeighbors *v1beta1.NetworkNeighbors, namespace string) error

func (Storage) DecrementImageUse

func (sc Storage) DecrementImageUse(_ string)

func (Storage) GetApplicationProfile

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

func (Storage) GetFilteredSBOM

func (sc Storage) GetFilteredSBOM(name string) (*v1beta1.SBOMSyftFiltered, error)

func (Storage) GetNetworkNeighborhood

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

func (Storage) GetNetworkNeighbors

func (sc Storage) GetNetworkNeighbors(namespace, name string) (*v1beta1.NetworkNeighbors, error)

func (Storage) GetSBOM

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

func (Storage) IncrementImageUse

func (sc Storage) IncrementImageUse(_ string)

func (Storage) PatchApplicationProfile

func (sc Storage) PatchApplicationProfile(name, namespace string, operations []utils.PatchOperation, channel chan error) error

func (Storage) PatchFilteredSBOM

func (sc Storage) PatchFilteredSBOM(name string, SBOM *v1beta1.SBOMSyftFiltered) error

func (Storage) PatchNetworkNeighborhood

func (sc Storage) PatchNetworkNeighborhood(name, namespace string, operations []utils.PatchOperation, channel chan error) error

func (Storage) PatchNetworkNeighborsIngressAndEgress

func (sc Storage) PatchNetworkNeighborsIngressAndEgress(name, namespace string, networkNeighbors *v1beta1.NetworkNeighbors) error

func (Storage) PatchNetworkNeighborsMatchLabels

func (sc Storage) PatchNetworkNeighborsMatchLabels(_, namespace string, networkNeighbors *v1beta1.NetworkNeighbors) error

Jump to

Keyboard shortcuts

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