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

Function GetScheduledBackupList

tests/utils/namespaces/namespace.go:388–398  ·  view source on GitHub ↗

GetScheduledBackupList gathers the current list of scheduledBackup in namespace

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

Source from the content-addressed store, hash-verified

386
387// GetScheduledBackupList gathers the current list of scheduledBackup in namespace
388func GetScheduledBackupList(
389 ctx context.Context,
390 crudClient client.Client,
391 namespace string,
392) (*apiv1.ScheduledBackupList, error) {
393 scheduledBackupList := &apiv1.ScheduledBackupList{}
394 err := crudClient.List(
395 ctx, scheduledBackupList, client.InNamespace(namespace),
396 )
397 return scheduledBackupList, err
398}

Callers 1

DumpNamespaceObjectsFunction · 0.85

Calls 1

ListMethod · 0.45

Tested by

no test coverage detected