Discover Packages
github.com/kubescape/opa-utils
score
mocks
package
Version:
v0.0.321
Opens a new window with list of versions in this module.
Published: Nov 25, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
GetInvalidResources fetches examples of invalid resource definitions.
GetResourceByType fetches a resource of the desired type from the resources mock fixture.
For the moment, only 1 mock is available for each resource type.
type Option func(map[string ]interface{})
func WithDesiredNumberScheduled(desired interface{}) Option
WithDesiredNumberScheduled overrides the desired number scheduled in the status section, if any.
WithID overrides the ID of a mock resource
WithName overrides the name of a mock resource
func WithRelatedObjects(related ...map[string ]interface{}) Option
WithRelatedObjects adds related objects to the mocked object.
WithReplicas overrides the replicas in the mock "spec" section, if any.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.