MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / GetEventList

Function GetEventList

tests/utils/namespaces/namespace.go:375–385  ·  view source on GitHub ↗

GetEventList gathers the current list of events in a namespace

(
	ctx context.Context,
	crudClient client.Client,
	namespace string,
)

Source from the content-addressed store, hash-verified

373
374// GetEventList gathers the current list of events in a namespace
375func GetEventList(
376 ctx context.Context,
377 crudClient client.Client,
378 namespace string,
379) (*eventsv1.EventList, error) {
380 eventList := &eventsv1.EventList{}
381 err := crudClient.List(
382 ctx, eventList, client.InNamespace(namespace),
383 )
384 return eventList, err
385}
386
387// GetScheduledBackupList gathers the current list of scheduledBackup in namespace
388func GetScheduledBackupList(

Callers 2

PrintClusterResourcesFunction · 0.92
DumpNamespaceObjectsFunction · 0.85

Calls 1

ListMethod · 0.45

Tested by

no test coverage detected