package
Version:
v0.9.2
Opens a new window with list of versions in this module.
Published: Jul 1, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package github fetches SSH public keys from GitHub user profiles.
FetchKeys fetches SSH keys using the default client (backward compat).
Client fetches SSH keys from GitHub's public API.
NewClient creates a GitHub client with a 10s timeout.
FetchKeys retrieves SSH public keys for a GitHub username.
Returns the keys as a slice of strings (one per line from <BaseURL>/<user>.keys).
KeyFetcher fetches SSH public keys for a user.
MockClient is a test double for KeyFetcher.
FetchKeys returns pre-configured keys or error for testing.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.