Skip to content

Commit

Permalink
Add data sources protobuf
Browse files Browse the repository at this point in the history
This adds the protobuf definition of data sources. We'll re-use this
protobuf around Minder to create the CRUD interface and reason about the
rest of the implementation.

Signed-off-by: Juan Antonio Osorio <[email protected]>
  • Loading branch information
JAORMX committed Nov 13, 2024
1 parent 84d517a commit 2d2c1b4
Show file tree
Hide file tree
Showing 5 changed files with 3,661 additions and 2,909 deletions.
67 changes: 67 additions & 0 deletions docs/docs/ref/proto.md

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

28 changes: 14 additions & 14 deletions pkg/api/openapi/minder/v1/minder.swagger.json

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

27 changes: 27 additions & 0 deletions pkg/api/protobuf/go/minder/v1/api_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package v1

import (
"fmt"
"github.com/stretchr/testify/assert"
"io"
"testing"
)

func TestParseResourceProto(t *testing.T) {
type args struct {
r io.Reader
rm ResourceMeta
}
tests := []struct {
name string
args args
wantErr assert.ErrorAssertionFunc
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
tt.wantErr(t, ParseResourceProto(tt.args.r, tt.args.rm), fmt.Sprintf("ParseResourceProto(%v, %v)", tt.args.r, tt.args.rm))

Check failure on line 24 in pkg/api/protobuf/go/minder/v1/api_test.go

View workflow job for this annotation

GitHub Actions / lint / Run golangci-lint

undefined: ParseResourceProto (typecheck)

Check failure on line 24 in pkg/api/protobuf/go/minder/v1/api_test.go

View workflow job for this annotation

GitHub Actions / lint / Run golangci-lint

undefined: ParseResourceProto) (typecheck)

Check failure on line 24 in pkg/api/protobuf/go/minder/v1/api_test.go

View workflow job for this annotation

GitHub Actions / test / Unit testing

undefined: ParseResourceProto
})
}
}
Loading

0 comments on commit 2d2c1b4

Please sign in to comment.