Documentation
¶
Overview ¶
Package events provides event types and publishing interfaces for filesystem mount operations.
This package defines a common event system for tracking and responding to mount-related events such as authentication failures. Events implement the MountEvent interface and can be published through an EventPublisher implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationFailedEvent ¶
type AuthenticationFailedEvent struct {
Reason string
}
AuthenticationFailedEvent represents an authentication failure during mount operations.
type EventPublisher ¶
type EventPublisher interface {
Publish(MountEvent)
}
EventPublisher defines the interface for publishing mount events.
type MountEvent ¶
type MountEvent interface {
// contains filtered or unexported methods
}
MountEvent is the marker interface that all mount events implement.
type NoOpEventPublisher ¶
type NoOpEventPublisher struct{}
NoOpEventPublisher is an EventPublisher that does nothing.
func (*NoOpEventPublisher) Publish ¶
func (p *NoOpEventPublisher) Publish(ev MountEvent)
Publish implements the EventPublisher interface but performs no action.