Skip to content

Commit

Permalink
feat: filter providers by urn and type
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <thekushsharma@gmail.com>
  • Loading branch information
kushsharma committed Dec 2, 2023
1 parent cf1c665 commit fca08f5
Show file tree
Hide file tree
Showing 65 changed files with 3,561 additions and 3,044 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ COMMIT := $(shell git rev-parse --short HEAD)
TAG := "$(shell git rev-list --tags --max-count=1)"
VERSION := "$(shell git describe --tags ${TAG})-next"
BUILD_DIR=dist
PROTON_COMMIT := "0568961fb6571a7a9889d5f16eb896e371e39b8e"
PROTON_COMMIT := "bd2a1d201fb4931e7b62d93031cb541016818daa"

.PHONY: all build clean test tidy vet proto setup format generate

Expand Down Expand Up @@ -56,6 +56,7 @@ vet:
go vet ./...

download:
@echo Download go.mod dependencies
@go mod download

generate: ## Run all go generate in the code base
Expand Down Expand Up @@ -83,6 +84,7 @@ setup: ## Install all the dependencies
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@v2.5.0
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.5.0
go install github.com/bufbuild/buf/cmd/buf@v1.29.0
go install github.com/vektra/mockery/v2@v2.38.0

help: ## Display this help message
@cat $(MAKEFILE_LIST) | grep -e "^[a-zA-Z_\-]*: *.*## *" | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
Expand Down
2 changes: 1 addition & 1 deletion api/handler/v1beta1/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type activityService interface {
//go:generate mockery --name=providerService --exported --with-expecter
type providerService interface {
Create(context.Context, *domain.Provider) error
Find(context.Context) ([]*domain.Provider, error)
Find(context.Context, domain.ProviderFilter) ([]*domain.Provider, error)
GetByID(context.Context, string) (*domain.Provider, error)
GetTypes(context.Context) ([]domain.ProviderType, error)
GetOne(ctx context.Context, pType, urn string) (*domain.Provider, error)
Expand Down
14 changes: 13 additions & 1 deletion api/handler/v1beta1/mocks/activityService.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 33 additions & 1 deletion api/handler/v1beta1/mocks/appealService.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion api/handler/v1beta1/mocks/approvalService.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 29 additions & 1 deletion api/handler/v1beta1/mocks/grantService.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion api/handler/v1beta1/mocks/namespaceService.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion api/handler/v1beta1/mocks/policyService.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fca08f5

Please sign in to comment.