saltext.github.utils.github

Connection library for GitHub

saltext.github.utils.github.get_user_pubkeys(users)[source]

Retrieve a set of public keys from GitHub for the specified list of users. Expects input in list format. Optionally, a value in the list may be a dict whose value is a list of key IDs to be returned. If this is not done, then all keys will be returned.

Some example data structures that coupld be passed in would look like:

['user1', 'user2', 'user3']

[
    'user1': [
        '12345',
        '67890',
    ],
    'user2',
    'user3',
]