{"modulePath":"github.com/willfantom/sshare","version":"v1.1.7","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package github\n\n## Types\n\n```go\ntype Agent struct {\n\t// contains filtered or unexported fields\n}\n```\nAgent holds a GitHub API client that has been given a user token.\n\n```go\nfunc NewAgent(token string) *Agent\n```\nNewAgent creates a new SSH agent like entity, providing access to the authenticated user's public keys and titles of them.\n\n```go\nfunc (gha *Agent) GetKeys() ([]*keys.Key, error)\n```\nGetKeys returns the SSH keys of the authenticated GitHub user as authorized\\_key style items. If this failed for any reason, such as not being able to contact GitHub or the token not being valid, an error is returned.\n\n","path":"github.com/willfantom/sshare/internal/github","name":"github","synopsis":"","isRedistributable":true}
