List gathers the current list of backup in namespace
( ctx context.Context, crudClient client.Client, namespace string, )
| 40 | |
| 41 | // List gathers the current list of backup in namespace |
| 42 | func 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 |
| 55 | func Create( |