Documentation
¶
Overview ¶
Package reachable implements reachability tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationLayerTest ¶
type ApplicationLayerTest struct {
reachability.BaseTest
}
ApplicationLayerTest checks if the vulnerability is in the application layer vs infrastructure.
func NewApplicationLayerTest ¶
func NewApplicationLayerTest() *ApplicationLayerTest
NewApplicationLayerTest creates a new test.
func (*ApplicationLayerTest) Evaluate ¶
func (t *ApplicationLayerTest) Evaluate(ctx *reachability.EvalContext) (*reachability.TestResult, error)
Evaluate runs the test.
type CloudDeployedTest ¶
type CloudDeployedTest struct {
reachability.BaseTest
}
CloudDeployedTest checks if the vulnerable container/image is actually deployed.
func NewCloudDeployedTest ¶
func NewCloudDeployedTest() *CloudDeployedTest
NewCloudDeployedTest creates a new test.
func (*CloudDeployedTest) Evaluate ¶
func (t *CloudDeployedTest) Evaluate(ctx *reachability.EvalContext) (*reachability.TestResult, error)
Evaluate runs the test.
type DependencyImportedTest ¶
type DependencyImportedTest struct {
reachability.BaseTest
}
DependencyImportedTest checks if the vulnerable package is imported.
func NewDependencyImportedTest ¶
func NewDependencyImportedTest() *DependencyImportedTest
NewDependencyImportedTest creates a new test.
func (*DependencyImportedTest) Evaluate ¶
func (t *DependencyImportedTest) Evaluate(ctx *reachability.EvalContext) (*reachability.TestResult, error)
Evaluate runs the test.
type DependencyUsedTest ¶
type DependencyUsedTest struct {
reachability.BaseTest
}
DependencyUsedTest checks if vulnerable code is actually called.
func NewDependencyUsedTest ¶
func NewDependencyUsedTest() *DependencyUsedTest
NewDependencyUsedTest creates a new test.
func (*DependencyUsedTest) Evaluate ¶
func (t *DependencyUsedTest) Evaluate(ctx *reachability.EvalContext) (*reachability.TestResult, error)
Evaluate runs the test.
type DirectDependencyTest ¶
type DirectDependencyTest struct {
reachability.BaseTest
}
DirectDependencyTest checks if the vulnerable package is a direct dependency.
func NewDirectDependencyTest ¶
func NewDirectDependencyTest() *DirectDependencyTest
NewDirectDependencyTest creates a new test.
func (*DirectDependencyTest) Evaluate ¶
func (t *DirectDependencyTest) Evaluate(ctx *reachability.EvalContext) (*reachability.TestResult, error)
Evaluate runs the test.
type ExposedByAPITest ¶
type ExposedByAPITest struct {
reachability.BaseTest
}
ExposedByAPITest checks if vulnerable code is reachable from API endpoints.
func NewExposedByAPITest ¶
func NewExposedByAPITest() *ExposedByAPITest
NewExposedByAPITest creates a new test.
func (*ExposedByAPITest) Evaluate ¶
func (t *ExposedByAPITest) Evaluate(ctx *reachability.EvalContext) (*reachability.TestResult, error)
Evaluate runs the test.
type PublicRepositoryTest ¶
type PublicRepositoryTest struct {
reachability.BaseTest
}
PublicRepositoryTest checks if the vulnerable component is in a public repository.
func NewPublicRepositoryTest ¶
func NewPublicRepositoryTest() *PublicRepositoryTest
NewPublicRepositoryTest creates a new test.
func (*PublicRepositoryTest) Evaluate ¶
func (t *PublicRepositoryTest) Evaluate(ctx *reachability.EvalContext) (*reachability.TestResult, error)
Evaluate runs the test.