-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement support for filters in data sources
- Loading branch information
1 parent
e618936
commit 88a569c
Showing
12 changed files
with
222 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package bw | ||
|
||
type ListObjectsOption func(args *[]string) | ||
type ListObjectsOptionGenerator func(id string) ListObjectsOption | ||
|
||
func WithCollectionID(id string) ListObjectsOption { | ||
return func(args *[]string) { | ||
*args = append(*args, "--collectionid", id) | ||
} | ||
} | ||
|
||
func WithFolderID(id string) ListObjectsOption { | ||
return func(args *[]string) { | ||
*args = append(*args, "--folderid", id) | ||
} | ||
} | ||
|
||
func WithOrganizationID(id string) ListObjectsOption { | ||
return func(args *[]string) { | ||
*args = append(*args, "--organizationid", id) | ||
} | ||
} | ||
|
||
func WithSearch(search string) ListObjectsOption { | ||
return func(args *[]string) { | ||
*args = append(*args, "--search", search) | ||
} | ||
} | ||
|
||
func WithUrl(url string) ListObjectsOption { | ||
return func(args *[]string) { | ||
*args = append(*args, "--url", url) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.