-
Notifications
You must be signed in to change notification settings - Fork 43
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: add jaas client #540
feat: add jaas client #540
Conversation
7c97c25
to
5e8e75e
Compare
36a5d48
to
d2dd485
Compare
4d78efb
to
dc25c74
Compare
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.
With one nit, I'm happy with the changes.
@alesstimec are you happy with the changes?
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 with a nitpick/suggestion
|
||
type jaasClient struct { | ||
SharedClient | ||
getJaasApiClient func(jujuapi.Connection) JaasAPIClient |
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.
nitpick: we could call this newAPIClient
.. we know it's a JAAS api client as it is a method of the jaasClient
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.
It's at least in line with the naming style used for the other clients, but I see your point.
- Don't leak api types outside of the jaas client. - Cleanup tests
Updated godocs
e356153
to
960de19
Compare
Description
This PR introduces the JAAS client to the provider. A full list of changes:
jimm-go-sdk
module that provides the client.jimm-go-sdk
currently has a dependency on Juju 3.5.3 which Go bumps to when runninggo get github.com/canonical/jimm-go-sdk/v3
jaas.go
file ininternal/juju
which contains the client code. The only methods are a read/add/delete relations.internal/juju/jaas_test.go
which uses GoMock like the tests forsecrets.go
.I recommend reviewing per PR to view the implementation and tests separately.
Type of change
internal/juju/
.Additional notes
Resolves https://warthogs.atlassian.net/browse/CSS-9773