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 // HasVertex returns true when the given vertex exists in the graph. HasVertex(vertexType VertexType, vertexNamespace, vertexName string) bool // 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 // VertexTypeBastion is a constant for a 'Bastion' vertex. VertexTypeBastion // VertexTypeCertificateSigningRequest is a constant for a 'CertificateSigningRequest' vertex. VertexTypeCertificateSigningRequest // VertexTypeCloudProfile is a constant for a 'CloudProfile' vertex. VertexTypeCloudProfile // VertexTypeClusterRoleBinding is a constant for a 'ClusterRoleBinding' vertex. VertexTypeClusterRoleBinding // VertexTypeConfigMap is a constant for a 'ConfigMap' vertex. VertexTypeConfigMap // VertexTypeControllerDeployment is a constant for a 'ControllerDeployment' vertex. VertexTypeControllerDeployment // VertexTypeControllerInstallation is a constant for a 'ControllerInstallation' vertex. VertexTypeControllerInstallation // VertexTypeControllerRegistration is a constant for a 'ControllerRegistration' vertex. VertexTypeControllerRegistration // VertexTypeExposureClass is a constant for a 'ExposureClass' vertex. VertexTypeExposureClass // VertexTypeInternalSecret is a constant for a 'InternalSecret' vertex. VertexTypeInternalSecret // VertexTypeLease is a constant for a 'Lease' vertex. VertexTypeLease // 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 // VertexTypeServiceAccount is a constant for a 'ServiceAccount' vertex. VertexTypeServiceAccount // VertexTypeShoot is a constant for a 'Shoot' vertex. VertexTypeShoot // VertexTypeShootState is a constant for a 'ShootState' vertex. VertexTypeShootState )
Source Files ¶
- debug.go
- doc.go
- eventhandler_backupbucket.go
- eventhandler_backupentry.go
- eventhandler_bastion.go
- eventhandler_certificatesigningrequest.go
- eventhandler_controllerinstallation.go
- eventhandler_managedseed.go
- eventhandler_project.go
- eventhandler_secretbinding.go
- eventhandler_seed.go
- eventhandler_serviceaccount.go
- eventhandler_shoot.go
- graph.go
- metrics.go
- vertices.go
Click to show internal directories.
Click to hide internal directories.