graph

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildGraph added in v1.3.1

func BuildGraph(outer context.Context, cfg *config.KubehoundConfig, storedb storedb.Provider,
	graphdb graphdb.Provider, cache cache.CacheReader) error

buildGraph will construct the attack graph by calculating and inserting all registered edges in parallel. All I/O operations are performed asynchronously.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder handles the construction of the graph edges once vertices have been ingested via the ingestion pipeline.

func NewBuilder

func NewBuilder(cfg *config.KubehoundConfig, store storedb.Provider, graph graphdb.Provider,
	cache cache.CacheReader, edges *edge.Registry) (*Builder, error)

NewBuilder returns a new builder instance from the provided application config and service dependencies.

func (*Builder) HealthCheck

func (b *Builder) HealthCheck(ctx context.Context) error

HealthCheck provides a mechanism for the caller to check health of the builder dependencies.

func (*Builder) Run

func (b *Builder) Run(ctx context.Context) error

Run constructs all the registered edges in the graph database. NOTE: edges are constructed in parallel using a worker pool with properties configured via the top-level KubeHound config.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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