Refresh code templates and regenerate go files

Mostly minor changes related to go 1.19 comment formatting.
This commit is contained in:
Denis Arh
2022-11-27 10:57:03 +01:00
parent a1a3137a6b
commit 207f01daf5
71 changed files with 670 additions and 2254 deletions
@@ -275,7 +275,8 @@ func rbacResourceValidator(r string, oo ...string) error {
// resourceLoader loads resource from store
//
// function assumes existence of loader functions for all resource types
// # Notes
// Function assumes existence of loader functions for all resource types
//
// This function is auto-generated
func (svc accessControl) resourceLoader(ctx context.Context, resource string) (rbac.Resource, error) {
@@ -330,6 +331,7 @@ func rbacResourceOperations(r string) map[string]bool {
// {{ .funcName }} checks validity of RBAC resource and operations
//
// # Notes
// Can be called without operations to check for validity of resource string only
//
// This function is auto-generated
@@ -513,6 +513,7 @@ func (s *Store) Query{{ .expIdentPlural }}(
{{ with .api.sortableFields }}
// {{ .fnIdent }} returns all {{ .expIdent }} columns flagged as sortable
//
// # Notes
// With optional string arg, all columns are returned aliased
//
// This function is auto-generated
@@ -532,9 +533,10 @@ func (Store) {{ .fnIdent }}() map[string]string {
// Values that are collected must come from sortable, unique or primary columns/fields
// At least one of the collected columns must be flagged as unique, otherwise fn appends primary keys at the end
//
// Known issue:
// when collecting cursor values for query that sorts by unique column with partial index (ie: unique handle on
// undeleted items)
// # Known issues:
//
// When collecting cursor values for query that sorts by unique column with partial index (ie: unique handle on
// undeleted items)
//
// This function is auto-generated
func (s *Store) {{ .fnIdent }}(res *{{ .goType }}, cc ...*filter.SortExpr) *filter.PagingCursor {