Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(applications): support filtering application by availability #54

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat(applications): support filtering application by availability
  • Loading branch information
reubenmiller committed Apr 24, 2024
commit 243feba6a1f44d9e7189d0cd2f612eae9a5498f2
17 changes: 9 additions & 8 deletions pkg/c8y/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 16,15 @@ type ApplicationService service
type ApplicationOptions struct {
PaginationOptions

Name string `url:"name,omitempty"`
Owner string `url:"owner,omitempty"`
ProviderFor string `url:"providerFor,omitempty"`
Subscriber string `url:"subscriber,omitempty"`
Tenant string `url:"tenant,omitempty"`
Type string `url:"type,omitempty"`
User string `url:"user,omitempty"`
HasVersions *bool `url:"hasVersions,omitempty"`
Name string `url:"name,omitempty"`
Owner string `url:"owner,omitempty"`
ProviderFor string `url:"providerFor,omitempty"`
Subscriber string `url:"subscriber,omitempty"`
Tenant string `url:"tenant,omitempty"`
Type string `url:"type,omitempty"`
User string `url:"user,omitempty"`
Availability string `url:"availability,omitempty"`
HasVersions *bool `url:"hasVersions,omitempty"`
}

func (o *ApplicationOptions) WithHasVersions(v bool) *ApplicationOptions {
Expand Down
Loading