Documentation ¶
Index ¶
Constants ¶
View Source
const DebugHandlerPath = "/debug/resource-dependency-graph"
DebugHandlerPath is the HTTP handler path for this debug handler.
Variables ¶
This section is empty.
Functions ¶
func NewDebugHandler ¶
func NewDebugHandler(graph *graph) http.HandlerFunc
NewDebugHandler creates a new HTTP handler for debugging the resource dependency graph.
Types ¶
type Interface ¶
type Interface interface { // Setup registers the event handler functions for the various resource types. Setup(ctx context.Context, c cache.Cache) error // HasPathFrom returns true when there is a path from <from> to <to>. HasPathFrom(fromType VertexType, fromNamespace, fromName string, toType VertexType, toNamespace, toName string) bool }
Interface is used to track resources dependencies.
type VertexType ¶
type VertexType byte
VertexType is a type for specific vertices.
const ( // VertexTypeBackupBucket is a constant for a 'BackupBucket' vertex. VertexTypeBackupBucket VertexType = iota // VertexTypeBackupEntry is a constant for a 'BackupEntry' vertex. VertexTypeBackupEntry // VertexTypeCloudProfile is a constant for a 'CloudProfile' vertex. VertexTypeCloudProfile // VertexTypeConfigMap is a constant for a 'ConfigMap' vertex. VertexTypeConfigMap // VertexTypeControllerInstallation is a constant for a 'ControllerInstallation' vertex. VertexTypeControllerInstallation // VertexTypeControllerRegistration is a constant for a 'ControllerRegistration' vertex. VertexTypeControllerRegistration // VertexTypeManagedSeed is a constant for a 'ManagedSeed' vertex. VertexTypeManagedSeed // VertexTypeNamespace is a constant for a 'Namespace' vertex. VertexTypeNamespace // VertexTypeProject is a constant for a 'Project' vertex. VertexTypeProject // VertexTypeSecret is a constant for a 'Secret' vertex. VertexTypeSecret // VertexTypeSecretBinding is a constant for a 'SecretBinding' vertex. VertexTypeSecretBinding // VertexTypeSeed is a constant for a 'Seed' vertex. VertexTypeSeed // VertexTypeShoot is a constant for a 'Shoot' vertex. VertexTypeShoot // VertexTypeShootState is a constant for a 'ShootState' vertex. VertexTypeShootState )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.