Skip to content

Feature Request: List User Names by Service #133

@david-mkl

Description

@david-mkl

Hi there, it would be great to have a new method to retrieve a list of user names under a service name (not the secret values themselves).

My use case is that I am using this library in a CLI tool that manages various tokens. For example, the service name is my-cli and it manages various 3rd party tokens for API calls, so the user names are the third party service (github for example).

It would be convenient to allow the user to know which secrets the tool is managing/using, instead of them needing to go and check their keychain.

The interface I think would look like this

type Keyring interface {
    // List of user names for this service
    List(service string) ([]string, error)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions