internal/pagination: stop using unknown resource type
This commit is contained in:
1 parent
d453a2a48a
commit
bcddef87a2
4 files changed
+204
-204
No files matched your search
@@ -35,7 +35,7 @@ func (e *ExampleResource) GetCreateTime() *timestamp.Timestamp {
|
||||
}
|
||||
|
||||
func (e *ExampleResource) GetResourceType() resource.Type {
|
||||
return resource.Unknown
|
||||
return resource.Target
|
||||
}
|
||||
|
||||
func ExampleList() {
|
||||
@@ -122,7 +122,7 @@ func ExampleListPage() {
|
||||
listToken, err := listtoken.NewPagination( // Normally from incoming request
|
||||
context.Background(),
|
||||
time.Now(),
|
||||
resource.Unknown,
|
||||
resource.Target,
|
||||
grantsHash,
|
||||
"ttcp_1234567890",
|
||||
time.Now().Add(-time.Hour),
|
||||
@@ -216,7 +216,7 @@ func ExampleListRefresh() {
|
||||
listToken, err := listtoken.NewStartRefresh( // Normally from incoming request
|
||||
context.Background(),
|
||||
time.Now(),
|
||||
resource.Unknown,
|
||||
resource.Target,
|
||||
grantsHash,
|
||||
time.Now().Add(-2*time.Hour),
|
||||
time.Now().Add(-time.Hour),
|
||||
@@ -325,7 +325,7 @@ func ExampleListRefreshPage() {
|
||||
listToken, err := listtoken.NewRefresh( // Normally from incoming request
|
||||
context.Background(),
|
||||
time.Now(),
|
||||
resource.Unknown,
|
||||
resource.Target,
|
||||
grantsHash,
|
||||
time.Now().Add(-time.Hour),
|
||||
time.Now().Add(-2*time.Hour),
|
||||
|
||||
Reference in new issue
Block a user