func ListRepo(apiClient pfs.APIClient) ([]*pfs.RepoInfo, error) { repoInfos, err := apiClient.ListRepo( context.Background(), &pfs.ListRepoRequest{}, ) if err != nil { return nil, err } return repoInfos.RepoInfo, nil }