CleanFiles removes every object under the given `bucket[/prefix]` path
(storeEnv *Env, path string)
| 788 | |
| 789 | // CleanFiles removes every object under the given `bucket[/prefix]` path |
| 790 | func CleanFiles(storeEnv *Env, path string) (string, error) { |
| 791 | var stdout string |
| 792 | stdout, _, err := run.Unchecked(fmt.Sprintf( |
| 793 | "kubectl exec -n %v %v -- %v", |
| 794 | storeEnv.Namespace, |
| 795 | storeEnv.ClientPodRef(), |
| 796 | composeCleanFiles(path))) |
| 797 | if err != nil { |
| 798 | return "", err |
| 799 | } |
| 800 | return strings.Trim(stdout, "\n"), nil |
| 801 | } |
| 802 | |
| 803 | // GetFilePath gets the glob matching WAL/backup objects in a configured bucket |
| 804 | func GetFilePath(serverName, fileName string) string { |
no test coverage detected