Documentation
¶
Index ¶
Constants ¶
View Source
const (
VolumeResourceType = "volume"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventContent ¶
type IMonitorService ¶
type IMonitorService interface {
// Reads the array secret from the filepath and populates array.Locker
// with array info and API clients.
UpdateArrays(arrayConfigFilepath string, fs fs.Interface) error
// Starts the service, polling for PowerStore Alerts and Events
// every pollPeriod.
Start(ctx context.Context, pollPeriod time.Duration)
}
func NewMonitorService ¶
func NewMonitorService(ctx context.Context) (IMonitorService, error)
NewMonitorService creates a new monitor service. The Kubernetes client is created using the environment var, identifiers.EnvKubeConfigPath, or in-cluster config, and used to create the EventRecorder and EventBroadcaster.
type PersistentVolumeEvent ¶
type PersistentVolumeEvent struct {
EventContent
Volume corev1.PersistentVolume
}
PersistentVolumeEvent relates a Persistent Volume struct to its most recent Kubernetes event.
type Service ¶
type Service struct {
EventRecorder record.EventRecorderLogger
EventBroadcaster record.EventBroadcaster
array.Locker
// contains filtered or unexported fields
}
Service represents the volume event monitoring service
Click to show internal directories.
Click to hide internal directories.