-
Notifications
You must be signed in to change notification settings - Fork 28
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
refactor(secret): use server API types for secret #1209
Conversation
@@ -7,12 +7,13 @@ | |||
"reflect" | |||
"testing" | |||
|
|||
"github.com/DATA-DOG/go-sqlmock" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
File is not gci
-ed with --skip-generated -s standard -s default -s blank -s dot -s prefix(github.com/go-vela) --custom-order (gci)
) | ||
|
||
// Create creates a new secret. | ||
func (c *client) Create(ctx context.Context, sType, org, name string, s *library.Secret) (*library.Secret, error) { | ||
func (c *client) Create(ctx context.Context, sType, org, name string, s *api.Secret) (*api.Secret, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
) | ||
|
||
// Get captures a secret. | ||
func (c *client) Get(ctx context.Context, sType, org, name, path string) (s *library.Secret, err error) { | ||
func (c *client) Get(ctx context.Context, sType, org, name, path string) (s *velaAPI.Secret, err error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1209 +/- ##
==========================================
- Coverage 56.17% 55.17% -1.00%
==========================================
Files 584 586 +2
Lines 21291 31488 +10197
==========================================
+ Hits 11960 17374 +5414
- Misses 8717 13500 +4783
Partials 614 614
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Continuing refactor efforts. Only a few more!