func CreateRepo(apiClient pfs.APIClient, repoName string) error { _, err := apiClient.CreateRepo( context.Background(), &pfs.CreateRepoRequest{ Repo: NewRepo(repoName), }, ) return err }
func setupPFSRepo(t *testing.T, pfsAPIClient pfs.APIClient, repoName string) *pfs.Repo { repo := &pfs.Repo{ Name: repoName, } _, err := pfsAPIClient.CreateRepo( context.Background(), &pfs.CreateRepoRequest{ Repo: repo, }, ) require.NoError(t, err) return repo }