Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Add AccountService.Me() method #205

Merged
merged 5 commits into from
Jul 29, 2020
Merged

Conversation

Marton6
Copy link
Member

@Marton6 Marton6 commented Jul 22, 2020

This PR adds the Me method to the AccountService to allow users of the client to get information about the account used by the client, such as whether it is a service account or a user account.

This method is needed by the CLI to allow treating service accounts and user accounts differently when running the secrethub account inspect command.

@Marton6 Marton6 marked this pull request as draft July 22, 2020 10:29
@Marton6 Marton6 changed the title Export client.GetMyAccount() Add AccountService.Me() method Jul 22, 2020
@Marton6 Marton6 marked this pull request as ready for review July 29, 2020 12:47
pkg/secrethub/account.go Outdated Show resolved Hide resolved
pkg/secrethub/account.go Outdated Show resolved Hide resolved
Copy link
Member

@SimonBarendse SimonBarendse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimonBarendse SimonBarendse merged commit 7e33819 into master Jul 29, 2020
@SimonBarendse SimonBarendse deleted the feature/export-get-my-account branch July 29, 2020 13:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants