internal/handlers: add credential pagination support
This commit is contained in:
1 parent
fa898fe87b
commit
9f6ac602ee
8 files changed
+944
-251
No files matched your search
@@ -722,8 +722,8 @@ func (r *Repository) UpdateJsonCredential(ctx context.Context,
|
||||
|
||||
// ListCredentials returns a slice of static credentials
|
||||
// for the storeId. Supports the following options:
|
||||
// - WithLimit
|
||||
// - WithStartPageAfterItem
|
||||
// - credential.WithLimit
|
||||
// - credential.WithStartPageAfterItem
|
||||
func (r *Repository) ListCredentials(ctx context.Context, storeId string, opt ...credential.Option) ([]credential.Static, time.Time, error) {
|
||||
const op = "static.(Repository).ListCredentials"
|
||||
if storeId == "" {
|
||||
@@ -764,8 +764,8 @@ func (r *Repository) ListCredentials(ctx context.Context, storeId string, opt ..
|
||||
|
||||
// ListCredentialRefresh returns a slice of static credentials
|
||||
// for the storeId. Supports the following options:
|
||||
// - WithLimit
|
||||
// - WithStartPageAfterItem
|
||||
// - credential.WithLimit
|
||||
// - credential.WithStartPageAfterItem
|
||||
func (r *Repository) ListCredentialsRefresh(ctx context.Context, storeId string, updatedAfter time.Time, opt ...credential.Option) ([]credential.Static, time.Time, error) {
|
||||
const op = "static.(Repository).ListCredentials"
|
||||
switch {
|
||||
|
||||
Reference in new issue
Block a user