2023-10-23 15:23:22 -07:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
|
|
|
|
package pagination
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/hashicorp/boundary/internal/db/timestamp"
|
|
|
|
|
"github.com/hashicorp/boundary/internal/types/resource"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Item defines a subset of a boundary.Resource that can
|
|
|
|
|
// be used as an input to a DB operation for the purposes
|
|
|
|
|
// of pagination and sorting.
|
|
|
|
|
type Item interface {
|
|
|
|
|
GetPublicId() string
|
2023-11-24 17:20:44 -08:00
|
|
|
GetCreateTime() *timestamp.Timestamp
|
2023-10-23 15:23:22 -07:00
|
|
|
GetUpdateTime() *timestamp.Timestamp
|
|
|
|
|
GetResourceType() resource.Type
|
|
|
|
|
}
|