internal/iam: add scope list pagination

This commit is contained in:
Johan Brandhorst-Satzkorn committed 2024-01-05 07:43:21 -08:00
1 parent 85ca909720
commit ad5b34da6b
10 files changed
+1155 -20

No files matched your search

+11
View File
@@ -9,6 +9,7 @@ import (
"strings"
"github.com/hashicorp/boundary/internal/db"
"github.com/hashicorp/boundary/internal/db/timestamp"
"github.com/hashicorp/boundary/internal/errors"
"github.com/hashicorp/boundary/internal/iam/store"
"github.com/hashicorp/boundary/internal/types/action"
@@ -214,3 +215,13 @@ func (s *Scope) TableName() string {
func (s *Scope) SetTableName(n string) {
s.tableName = n
}
type deletedScope struct {
PublicId string `gorm:"primary_key"`
DeleteTime *timestamp.Timestamp
}
// TableName returns the tablename to override the default gorm table name
func (s *deletedScope) TableName() string {
return "iam_scope_deleted"
}