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

Function List

tests/utils/backups/backup.go:42–52  ·  view source on GitHub ↗

List gathers the current list of backup in namespace

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

Source from the content-addressed store, hash-verified

40
41// List gathers the current list of backup in namespace
42func List(
43 ctx context.Context,
44 crudClient client.Client,
45 namespace string,
46) (*apiv1.BackupList, error) {
47 backupList := &apiv1.BackupList{}
48 err := crudClient.List(
49 ctx, backupList, client.InNamespace(namespace),
50 )
51 return backupList, err
52}
53
54// Create creates a Backup resource for a given cluster name
55func Create(

Callers 4

DumpNamespaceObjectsFunction · 0.92

Calls 1

ListMethod · 0.45

Tested by 1